-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
deploy: remove leading and trailing spaces from images #14744
Conversation
@tnozicka PTAL |
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.
small nit, lgtm
pkg/deploy/util/util.go
Outdated
@@ -266,6 +266,13 @@ func MakeDeployment(config *deployapi.DeploymentConfig, codec runtime.Codec) (*a | |||
return nil, fmt.Errorf("couldn't clone podSpec: %v", err) | |||
} | |||
|
|||
// Fix trailing and leading whitespace in the image field | |||
// This is needed to sanitize old deployment configs where spaces were permitted but | |||
// kuberneted 3.7 tightened the validation of container image fields. |
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.
s/kuberneted/kubernetes
maybe a ref to a PR making this change
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.
fixed.
41b9a83
to
cd7a677
Compare
[test] |
befbcd2
to
8968bde
Compare
8968bde
to
9cfb037
Compare
re-[test] |
Evaluated for origin test up to 9cfb037 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2422/) (Base Commit: e50d999) (PR Branch Commit: 9cfb037) |
[merge][severity:blocker] |
Evaluated for origin merge up to 9cfb037 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1077/) (Base Commit: 7461c10) (PR Branch Commit: 9cfb037) (Extended Tests: blocker) (Image: devenv-rhel7_6392) |
Fixes: #14659