This repository was archived by the owner on Oct 9, 2023. It is now read-only.
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 intoflyteorg:masterfrom
Closed
Conversation
This was referenced Jul 8, 2023
7d59b83 to
a2c6d37
Compare
…injection if exists Signed-off-by: Geert Pingen <geertpingen@gmail.com>
Signed-off-by: Geert Pingen <geertpingen@gmail.com>
Signed-off-by: Geert Pingen <geertpingen@gmail.com>
Signed-off-by: Geert Pingen <geertpingen@gmail.com>
Signed-off-by: Geert Pingen <geertpingen@gmail.com>
a2c6d37 to
8724259
Compare
|
|
||
| func NewK8sSecretsInjector() K8sSecretInjector { | ||
| return K8sSecretInjector{} | ||
| func InjectSecretAsEnvVar(p *corev1.Pod, secret *core.Secret, envVarName *string) { |
Contributor
There was a problem hiding this comment.
just curious, is there a reason this is *string instead of just string?
Contributor
wild-endeavor
left a comment
There was a problem hiding this comment.
one comment - @hamersaw could you take a quick look also please?
Contributor
|
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
This file contains hidden or 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
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
Secretobject:env_varfileAllowing users to directly specify a name or mountPath for the Secret, without having to specify a full PodTemplate(name). The old
mount_requirementcan 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