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 Dec 24, 2024
1 parent 40d1040 commit 49e561e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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:7f4d7db86584674f969e6fbd68f7dab2d70b4b22f7fc0ceceb9cdfc307356b43"
if err := start(&options); err != nil {
log.Error(err, "error starting")
os.Exit(1)
Expand All @@ -86,7 +87,6 @@ func NewStartCommand() *cobra.Command {
}

func start(opts *StartOptions) error {

kubeConfig, err := config.GetConfig()
if err != nil {
return fmt.Errorf("failed to get kube config: %v", err)
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 @@ -734,6 +734,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 @@ -1682,6 +1684,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 49e561e

Please sign in to comment.