Skip to content

Commit

Permalink
Fixed a typo in the validation tag for Prometheus port (kubeflow#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyinan926 authored Oct 2, 2019
1 parent 22e51f2 commit f783611
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,8 @@ spec:
type: string
port:
format: int32
minimum: 49151
minimum: 1024
maximum: 49151
type: integer
required:
- jmxExporterJar
Expand Down
3 changes: 2 additions & 1 deletion manifest/crds/sparkoperator.k8s.io_sparkapplications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,8 @@ spec:
type: string
port:
format: int32
minimum: 49151
minimum: 1024
maximum: 49151
type: integer
required:
- jmxExporterJar
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/sparkoperator.k8s.io/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ type PrometheusSpec struct {
// Optional.
// If not specified, 8090 will be used as the default.
// +kubebuilder:validation:Minimum=1024
// +kubebuilder:validation:Minimum=49151
// +kubebuilder:validation:Maximum=49151
Port *int32 `json:"port,omitempty"`
// ConfigFile is the path to the custom Prometheus configuration file provided in the Spark image.
// ConfigFile takes precedence over Configuration, which is shown below.
Expand Down

0 comments on commit f783611

Please sign in to comment.