Skip to content

Commit f783611

Browse files
authored
Fixed a typo in the validation tag for Prometheus port (#649)
1 parent 22e51f2 commit f783611

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

manifest/crds/sparkoperator.k8s.io_scheduledsparkapplications.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,8 @@ spec:
19031903
type: string
19041904
port:
19051905
format: int32
1906-
minimum: 49151
1906+
minimum: 1024
1907+
maximum: 49151
19071908
type: integer
19081909
required:
19091910
- jmxExporterJar

manifest/crds/sparkoperator.k8s.io_sparkapplications.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,8 @@ spec:
18891889
type: string
18901890
port:
18911891
format: int32
1892-
minimum: 49151
1892+
minimum: 1024
1893+
maximum: 49151
18931894
type: integer
18941895
required:
18951896
- jmxExporterJar

pkg/apis/sparkoperator.k8s.io/v1beta2/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ type PrometheusSpec struct {
543543
// Optional.
544544
// If not specified, 8090 will be used as the default.
545545
// +kubebuilder:validation:Minimum=1024
546-
// +kubebuilder:validation:Minimum=49151
546+
// +kubebuilder:validation:Maximum=49151
547547
Port *int32 `json:"port,omitempty"`
548548
// ConfigFile is the path to the custom Prometheus configuration file provided in the Spark image.
549549
// ConfigFile takes precedence over Configuration, which is shown below.

0 commit comments

Comments
 (0)