Fix breaking changes after upgrading openshift/api
Handler was renamed to ProbeHandler in corev1 API.
@@ -498,7 +498,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
},
},
ReadinessProbe: &corev1.Probe{
- Handler: corev1.Handler{
+ ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/healthz",
Port: intstr.Parse("healthz"),
@@ -506,7 +506,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
},
},
LivenessProbe: &corev1.Probe{
- Handler: corev1.Handler{
+ ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/readyz",
Port: intstr.Parse("healthz"),
@@ -540,7 +540,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
ContainerPort: defaultMachineHealthPort,
}},
ReadinessProbe: &corev1.Probe{
- Handler: corev1.Handler{
+ ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/healthz",
Port: intstr.Parse("healthz"),
@@ -548,7 +548,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
},
},
LivenessProbe: &corev1.Probe{
- Handler: corev1.Handler{
+ ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/readyz",
Port: intstr.Parse("healthz"),
@@ -590,7 +590,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
},
},
ReadinessProbe: &corev1.Probe{
- Handler: corev1.Handler{
+ ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/healthz",
Port: intstr.Parse("healthz"),
@@ -598,7 +598,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co
},
},
LivenessProbe: &corev1.Probe{
- Handler: corev1.Handler{
+ ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/readyz",
Port: intstr.Parse("healthz"),
