This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Introduces new "env_var" and "file" fields to Secret to allow specifying name/mountPath on injection #minor #589
Closed
gpgn
wants to merge
5
commits into
flyteorg:master
from
gpgn:feat-add-optional-environment-variable-name-to-secret
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jul 8, 2023
gpgn
force-pushed
the
feat-add-optional-environment-variable-name-to-secret
branch
from
July 8, 2023 16:29
7d59b83
to
a2c6d37
Compare
…injection if exists Signed-off-by: Geert Pingen <[email protected]>
Signed-off-by: Geert Pingen <[email protected]>
Signed-off-by: Geert Pingen <[email protected]>
Signed-off-by: Geert Pingen <[email protected]>
Signed-off-by: Geert Pingen <[email protected]>
gpgn
force-pushed
the
feat-add-optional-environment-variable-name-to-secret
branch
from
July 8, 2023 16:30
a2c6d37
to
8724259
Compare
} | ||
|
||
func NewK8sSecretsInjector() K8sSecretInjector { | ||
return K8sSecretInjector{} | ||
func InjectSecretAsEnvVar(p *corev1.Pod, secret *core.Secret, envVarName *string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious, is there a reason this is *string instead of just string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one comment - @hamersaw could you take a quick look also please?
Hi, we are moving all Flyte development to a monorepo. In order to help the transition period, we're moving open PRs to monorepo automatically and your PR was moved to flyteorg/flyte#4156. Notice that if there are any conflicts in the resulting PR they most likely happen due to the change in the import path of the flyte components. |
8 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
Introduces new fields to the
Secret
object:env_var
file
Allowing users to directly specify a name or mountPath for the Secret, without having to specify a full PodTemplate(name). The old
mount_requirement
can still be used. Example:Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
fixes flyteorg/flyte#3053
Follow-up issue
NA
Linked PRs