Skip to content
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

Merged
merged 13 commits into from
Sep 23, 2019

Conversation

prary
Copy link
Contributor

@prary prary commented Sep 19, 2019

Dropping PR #2897
pull secret should be optional
Resolving issue #2888

},
}
if clusterDetails.PullSecretName != "" {
Copy link
Member

@tejal29 tejal29 Sep 19, 2019

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  

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya sure

@priyawadhwa
Copy link
Contributor

@prary do you mind if I add a test to this PR?

@prary
Copy link
Contributor Author

prary commented Sep 20, 2019

@priyawadhwa that would be great :D

@priyawadhwa
Copy link
Contributor

Looks like current tests actually cover these changes! I've just refactored the code a little and it should be good to go.

@priyawadhwa priyawadhwa added the kokoro:run runs the kokoro jobs on a PR label Sep 23, 2019
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Sep 23, 2019
@codecov
Copy link

codecov bot commented Sep 23, 2019

Codecov Report

Merging #2910 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted Files Coverage Δ
pkg/skaffold/build/cluster/sources/sources.go 90.9% <100%> (-0.68%) ⬇️
pkg/skaffold/schema/defaults/defaults.go 91.02% <100%> (ø) ⬆️
pkg/skaffold/jib/jib.go 73.48% <0%> (ø) ⬆️

@priyawadhwa priyawadhwa added the kokoro:run runs the kokoro jobs on a PR label Sep 23, 2019
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Sep 23, 2019
Copy link
Contributor

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@priyawadhwa priyawadhwa merged commit cc7dcc3 into GoogleContainerTools:master Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants