Skip to content

Commit

Permalink
chore(refactor): Replace validation by default kubebuilder validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucass4 committed Jan 23, 2023
1 parent ece2bb8 commit f33cb7a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pkg/apis/crds/karpenter.sh_machines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ spec:
grace period (in seconds) to use when terminating pods in response
to soft eviction thresholds being met.
format: int32
maximum: 100
minimum: 1
type: integer
evictionSoft:
additionalProperties:
Expand Down
2 changes: 0 additions & 2 deletions pkg/apis/crds/karpenter.sh_provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ spec:
grace period (in seconds) to use when terminating pods in response
to soft eviction thresholds being met.
format: int32
maximum: 100
minimum: 1
type: integer
evictionSoft:
additionalProperties:
Expand Down
2 changes: 0 additions & 2 deletions pkg/apis/v1alpha5/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ type KubeletConfiguration struct {
EvictionSoftGracePeriod map[string]metav1.Duration `json:"evictionSoftGracePeriod,omitempty"`
// EvictionMaxPodGracePeriod is the maximum allowed grace period (in seconds) to use when terminating pods in
// response to soft eviction thresholds being met.
// +kubebuilder:validation:Minimum:=1
// +kubebuilder:validation:Maximum:=100
// +optional
EvictionMaxPodGracePeriod *int32 `json:"evictionMaxPodGracePeriod,omitempty"`
// ImageGCHighThresholdPercent is the percent of disk usage after which image
Expand Down

0 comments on commit f33cb7a

Please sign in to comment.