We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7df1815 + a7adc66 commit 093f975Copy full SHA for 093f975
pkg/image/trigger/deploymentconfigs/deploymentconfigs.go
@@ -66,7 +66,7 @@ func calculateDeploymentConfigTrigger(t appsapi.DeploymentTriggerPolicy, dc *app
66
})
67
}
68
for _, index := range indicesForContainerNames(dc.Spec.Template.Spec.InitContainers, t.ImageChangeParams.ContainerNames) {
69
- fieldPath := fmt.Sprintf("spec.template.spec.initContainers[@name==\"%s\"].image", dc.Spec.Template.Spec.Containers[index].Name)
+ fieldPath := fmt.Sprintf("spec.template.spec.initContainers[@name==\"%s\"].image", dc.Spec.Template.Spec.InitContainers[index].Name)
70
triggers = append(triggers, triggerapi.ObjectFieldTrigger{
71
From: triggerapi.ObjectReference{
72
Name: from.Name,
0 commit comments