Skip to content

Commit

Permalink
DO NOT MERGE: force IngressControllerImage to openshift/router#639
Browse files Browse the repository at this point in the history
  • Loading branch information
frobware committed Nov 19, 2024
1 parent 515eef4 commit 9b67449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ingress-operator/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func NewStartCommand() *cobra.Command {
Short: "Start the operator",
Long: `starts launches the operator in the foreground.`,
Run: func(cmd *cobra.Command, args []string) {
options.IngressControllerImage = "quay.io/amcdermo/ocpbugs-43745-idle-close-on-response@sha256:ac3424d4e19555da28f0b1b32564ac331d5161c208c6e3e2634b8fda98929499"
if err := start(&options); err != nil {
log.Error(err, "error starting")
os.Exit(1)
Expand Down
3 changes: 3 additions & 0 deletions pkg/operator/controller/ingress/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ func desiredRouterDeployment(ci *operatorv1.IngressController, ingressController
}

deployment.Spec.Template.Spec.Containers[0].Image = ingressControllerImage
deployment.Spec.Template.Spec.Containers[0].ImagePullPolicy = corev1.PullAlways

deployment.Spec.Template.Spec.DNSPolicy = corev1.DNSClusterFirst

var (
Expand Down Expand Up @@ -1638,6 +1640,7 @@ func deploymentConfigChanged(current, expected *appsv1.Deployment) (bool, *appsv
updated.Spec.Template.Spec.Containers[0].SecurityContext = expected.Spec.Template.Spec.Containers[0].SecurityContext
updated.Spec.Template.Spec.Containers[0].Env = expected.Spec.Template.Spec.Containers[0].Env
updated.Spec.Template.Spec.Containers[0].Image = expected.Spec.Template.Spec.Containers[0].Image
updated.Spec.Template.Spec.Containers[0].ImagePullPolicy = expected.Spec.Template.Spec.Containers[0].ImagePullPolicy
copyProbe(expected.Spec.Template.Spec.Containers[0].LivenessProbe, updated.Spec.Template.Spec.Containers[0].LivenessProbe, true)
copyProbe(expected.Spec.Template.Spec.Containers[0].ReadinessProbe, updated.Spec.Template.Spec.Containers[0].ReadinessProbe, true)
copyProbe(expected.Spec.Template.Spec.Containers[0].StartupProbe, updated.Spec.Template.Spec.Containers[0].StartupProbe, true)
Expand Down

0 comments on commit 9b67449

Please sign in to comment.