Skip to content

Commit

Permalink
set default value for ProbeThreshold
Browse files Browse the repository at this point in the history
Signed-off-by: Ryotaro Banno <[email protected]>
  • Loading branch information
ushitora-anqou committed Jun 12, 2024
1 parent fcda5ac commit 1c01d73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/pie/v1alpha1/pieprobe_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type PieProbeSpec struct {
//+kubebuilder:validation:Minimum:=1
ProbePeriod int `json:"probePeriod"`

//+kubebuilder:default:="1m"
ProbeThreshold metav1.Duration `json:"probeThreshold"`
}

Expand Down
1 change: 1 addition & 0 deletions charts/pie/templates/pie.topolvm.io_pieprobes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ spec:
minimum: 1
type: integer
probeThreshold:
default: 1m
type: string
required:
- monitoringStorageClass
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/pie.topolvm.io_pieprobes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ spec:
minimum: 1
type: integer
probeThreshold:
default: 1m
type: string
required:
- monitoringStorageClass
Expand Down

0 comments on commit 1c01d73

Please sign in to comment.