-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Optional pull secret #2910
Optional pull secret #2910
Conversation
debug mode is also present
}, | ||
} | ||
if clusterDetails.PullSecretName != "" { |
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.
this function is becoming really long, can we refactor this into
if clusterDetails.PullSecretName != "" {
vms, vs := getVolumeMountsAndVolumes()
pod.Spec.Containers[0].VolumeMounts = vms
pod.Spec.Volumes = vs
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.
ya sure
@prary do you mind if I add a test to this PR? |
@priyawadhwa that would be great :D |
Looks like current tests actually cover these changes! I've just refactored the code a little and it should be good to go. |
Codecov Report
|
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
Dropping PR #2897
pull secret should be optional
Resolving issue #2888