-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount agent-upgrade credentials default location in filesystem #1044
Conversation
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.
LGTM, just 1 suggestion to reduce duplication, but not blocking
new() | ||
{ | ||
Name = "agent-upgrade", | ||
Secret = new V1SecretVolumeSource | ||
{ | ||
SecretName = "agent-upgrade-secret", | ||
Items = new List<V1KeyToPath>() | ||
{ | ||
new() | ||
{ | ||
Key = ".dockerconfigjson", | ||
Path = "config.json" | ||
} | ||
}, | ||
Optional = true, | ||
}, | ||
}, |
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.
Can we define this as a method in the base KubernetesScriptPodCreator
, so we don't have it defined twice?
Background
To avoid rate-limiting when polling docker for agent versions/charts - helm must be provided with credentials via the
~/.config/helm/registry/config.json
file (though will fallback to docker config/env).This change is responsible for mapping the secret in the helm chart, into the filesystem of the script-pod.
It is optional, such that if the secret does not exist, and empty directory is mounted instead.
The change was required to be made to both raw, and normal script pods (though there should be a nicer way of doing this to avoid string-matching across files :( ).
Fixes: #1045
How to review this PR
Quality ✔️
Pre-requisites