File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,9 @@ func SetDefaults_RollingDeploymentStrategyParams(obj *RollingDeploymentStrategyP
100
100
func SetDefaults_DeploymentConfig (obj * DeploymentConfig ) {
101
101
for _ , t := range obj .Spec .Triggers {
102
102
if t .ImageChangeParams != nil {
103
+ // Default unconditionally for transforming old data.
103
104
t .ImageChangeParams .From .Kind = "ImageStreamTag"
104
- if len (t .ImageChangeParams .From .Name ) > 0 && len ( t . ImageChangeParams . From . Namespace ) == 0 {
105
+ if len (t .ImageChangeParams .From .Namespace ) == 0 {
105
106
t .ImageChangeParams .From .Namespace = obj .Namespace
106
107
}
107
108
}
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ func validateImageChangeParams(params *deployapi.DeploymentTriggerImageChangePar
439
439
func validateImageStreamTagName (istag string ) error {
440
440
name , _ , ok := imageapi .SplitImageStreamTag (istag )
441
441
if ! ok {
442
- return fmt .Errorf ("invalid ImageStreamTag: %s" , istag )
442
+ return fmt .Errorf ("must be in the form of <name>:<tag>" )
443
443
}
444
444
if reasons := imageval .ValidateImageStreamName (name , false ); len (reasons ) != 0 {
445
445
return errors .New (strings .Join (reasons , ", " ))
You can’t perform that action at this time.
0 commit comments