Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

enable secrets in non-python k8s tasks #401

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

hamersaw
Copy link
Contributor

@hamersaw hamersaw commented Sep 6, 2023

TL;DR

Merging objectMeta with the TaskExecutionMetadata labels and annotations. Per this comment the required annotations to support Flytes secret injection will be present as set here.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

^^^

Tracking Issue

fixes flyteorg/flyte#3907

Follow-up issue

NA

@fellhorn
Copy link

fellhorn commented Sep 8, 2023

Thanks @hamersaw ! As pointed out in the (now closed) other PR, I think this is the cleaner solution and should be preferred! Is there a good spot to have some tests for this?

Signed-off-by: Daniel Rammer <[email protected]>
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 88.23% and project coverage change: +1.37% 🎉

Comparison is base (552f145) 62.83% compared to head (229174a) 64.21%.
Report is 1 commits behind head on master.

❗ Current head 229174a differs from pull request most recent head 27cff08. Consider uploading reports for the commit 27cff08 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #401      +/-   ##
==========================================
+ Coverage   62.83%   64.21%   +1.37%     
==========================================
  Files         156      156              
  Lines       13116    10657    -2459     
==========================================
- Hits         8242     6843    -1399     
+ Misses       4253     3192    -1061     
- Partials      621      622       +1     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
go/tasks/plugins/array/awsbatch/transformer.go 81.45% <60.00%> (+2.33%) ⬆️
go/tasks/plugins/k8s/kfoperators/mpi/mpi.go 74.49% <100.00%> (+3.14%) ⬆️
...o/tasks/plugins/k8s/kfoperators/pytorch/pytorch.go 79.22% <100.00%> (+1.80%) ⬆️
...s/plugins/k8s/kfoperators/tensorflow/tensorflow.go 77.18% <100.00%> (+2.74%) ⬆️
go/tasks/plugins/k8s/ray/ray.go 77.56% <100.00%> (-0.71%) ⬇️

... and 131 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hamersaw hamersaw merged commit 8eddca3 into master Sep 11, 2023
7 checks passed
@hamersaw hamersaw deleted the bug/secrets-in-non-python-tasks branch September 11, 2023 15:39
eapolinario pushed a commit that referenced this pull request Sep 28, 2023
* enabling secrets in non-python k8s tasks

Signed-off-by: Daniel Rammer <[email protected]>

* added unit tests

Signed-off-by: Daniel Rammer <[email protected]>

---------

Signed-off-by: Daniel Rammer <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Non-python tasks don't support passing secrets
3 participants