Skip to content

Commit

Permalink
Added missing omitempty tag for port (kubeflow#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyinan926 authored Sep 17, 2019
1 parent a4f77b7 commit 522ae38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ spec:
group: sparkoperator.k8s.io
names:
kind: ScheduledSparkApplication
listKind: ScheduledSparkApplicationList
plural: scheduledsparkapplications
shortNames:
- scheduledsparkapp
singular: scheduledsparkapplication
scope: Namespaced
subresources:
status: {}
Expand Down Expand Up @@ -1898,7 +1900,6 @@ spec:
type: integer
required:
- jmxExporterJar
- port
type: object
required:
- exposeDriverMetrics
Expand Down Expand Up @@ -1949,6 +1950,9 @@ spec:
type: string
sparkVersion:
type: string
timeToLiveSeconds:
format: int64
type: integer
type:
enum:
- Java
Expand Down
6 changes: 5 additions & 1 deletion manifest/crds/sparkoperator.k8s.io_sparkapplications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ spec:
group: sparkoperator.k8s.io
names:
kind: SparkApplication
listKind: SparkApplicationList
plural: sparkapplications
shortNames:
- sparkapp
singular: sparkapplication
scope: Namespaced
subresources:
status: {}
Expand Down Expand Up @@ -1884,7 +1886,6 @@ spec:
type: integer
required:
- jmxExporterJar
- port
type: object
required:
- exposeDriverMetrics
Expand Down Expand Up @@ -1935,6 +1936,9 @@ spec:
type: string
sparkVersion:
type: string
timeToLiveSeconds:
format: int64
type: integer
type:
enum:
- Java
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 @@ -533,7 +533,7 @@ type PrometheusSpec struct {
// If not specified, 8090 will be used as the default.
// +kubebuilder:validation:Minimum=1024
// +kubebuilder:validation:Minimum=49151
Port *int32 `json:"port"`
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.
ConfigFile *string `json:"configFile,omitempty"`
Expand Down

0 comments on commit 522ae38

Please sign in to comment.