diff --git a/apis/druid/v1alpha1/druid_types.go b/apis/druid/v1alpha1/druid_types.go
index b17fe031..fed134f1 100644
--- a/apis/druid/v1alpha1/druid_types.go
+++ b/apis/druid/v1alpha1/druid_types.go
@@ -425,9 +425,9 @@ type DruidNodeSpec struct {
// +optional
ReadinessProbe *v1.Probe `json:"readinessProbe,omitempty"`
- // StartUpProbes
+ // StartUpProbe
// +optional
- StartUpProbes *v1.Probe `json:"startUpProbes,omitempty"`
+ StartUpProbe *v1.Probe `json:"startUpProbe,omitempty"`
// IngressAnnotations `Ingress` annotations to be populated in ingress spec.
// +optional
diff --git a/apis/druid/v1alpha1/zz_generated.deepcopy.go b/apis/druid/v1alpha1/zz_generated.deepcopy.go
index 4d413372..29a32e03 100644
--- a/apis/druid/v1alpha1/zz_generated.deepcopy.go
+++ b/apis/druid/v1alpha1/zz_generated.deepcopy.go
@@ -336,8 +336,8 @@ func (in *DruidNodeSpec) DeepCopyInto(out *DruidNodeSpec) {
*out = new(v1.Probe)
(*in).DeepCopyInto(*out)
}
- if in.StartUpProbes != nil {
- in, out := &in.StartUpProbes, &out.StartUpProbes
+ if in.StartUpProbe != nil {
+ in, out := &in.StartUpProbe, &out.StartUpProbe
*out = new(v1.Probe)
(*in).DeepCopyInto(*out)
}
diff --git a/chart/templates/crds/druid.apache.org_druids.yaml b/chart/templates/crds/druid.apache.org_druids.yaml
index 8b67954f..d3c73c7d 100644
--- a/chart/templates/crds/druid.apache.org_druids.yaml
+++ b/chart/templates/crds/druid.apache.org_druids.yaml
@@ -6512,8 +6512,8 @@ spec:
type: object
type: object
type: array
- startUpProbes:
- description: StartUpProbes
+ startUpProbe:
+ description: StartUpProbe
properties:
exec:
description: Exec specifies the action to take.
diff --git a/config/crd/bases/druid.apache.org_druids.yaml b/config/crd/bases/druid.apache.org_druids.yaml
index 8b67954f..d3c73c7d 100644
--- a/config/crd/bases/druid.apache.org_druids.yaml
+++ b/config/crd/bases/druid.apache.org_druids.yaml
@@ -6512,8 +6512,8 @@ spec:
type: object
type: object
type: array
- startUpProbes:
- description: StartUpProbes
+ startUpProbe:
+ description: StartUpProbe
properties:
exec:
description: Exec specifies the action to take.
diff --git a/config/druid.apache.org_druids.yaml b/config/druid.apache.org_druids.yaml
index ac7dfdc7..70754c52 100644
--- a/config/druid.apache.org_druids.yaml
+++ b/config/druid.apache.org_druids.yaml
@@ -5926,7 +5926,7 @@ spec:
type: object
type: object
type: array
- startUpProbes:
+ startUpProbe:
description: StartupProbe for nodeSpec
properties:
exec:
diff --git a/controllers/druid/handler.go b/controllers/druid/handler.go
index c19099f3..dd7891b9 100644
--- a/controllers/druid/handler.go
+++ b/controllers/druid/handler.go
@@ -1043,7 +1043,7 @@ func setReadinessProbe(nodeSpec *v1alpha1.DruidNodeSpec, m *v1alpha1.Druid) *v1.
func setStartUpProbe(nodeSpec *v1alpha1.DruidNodeSpec, m *v1alpha1.Druid) *v1.Probe {
probeType := "startup"
startUpProbe := updateDefaultPortInProbe(
- firstNonNilValue(nodeSpec.StartUpProbes, m.Spec.StartUpProbe).(*v1.Probe),
+ firstNonNilValue(nodeSpec.StartUpProbe, m.Spec.StartUpProbe).(*v1.Probe),
nodeSpec.DruidPort)
if startUpProbe == nil && m.Spec.DefaultProbes {
startUpProbe = setDefaultProbe(nodeSpec.DruidPort, nodeSpec.NodeType, probeType)
diff --git a/docs/api_specifications/druid.md b/docs/api_specifications/druid.md
index 986633ad..0e173eab 100644
--- a/docs/api_specifications/druid.md
+++ b/docs/api_specifications/druid.md
@@ -1446,7 +1446,7 @@ Port is set to druid.port
if not specified with httpGet handler.
startUpProbes
startUpProbe
StartUpProbes
+StartUpProbe