Skip to content

Commit

Permalink
fix(tide): fix fields typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh1996 committed Jan 8, 2024
1 parent dd61252 commit 3dff47b
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,25 +257,18 @@ spec:
try to evict some pods. For example: "100000", "10%".'
pattern: ^(0|[1-9]\d*)(\.\d+)?%?$|^\d+$
type: string
podMinimumUsedThreshold:
description: 'PodMinimumUsedThreshold is a threshold for
all pods. The eviction manager will ignore this pod
if its rootfs used in bytes is lower than this threshold.
For example: "200Gi", "1%".'
pattern: ^(0|[1-9][0-9]*)(\.[0-9]+)?%?$|^(0|[1-9][0-9]*)([kKmMGTPeE]i?)$
type: string
podMinimumInodesUsedThreshold:
description: 'PodMinimumInodesUsedThreshold is a threshold
for all pods. The eviction manager will ignore this
pod if its rootfs inodes used is lower than this threshold.
For example: "1000", "1%".'
pattern: ^(0|[1-9]\d*)(\.\d+)?%?$|^\d+$
type: string
reclaimedQoSPodUsedPriorityThreshold:
description: 'ReclaimedQoSPodUsedPriorityThreshold is
a threshold for all offline pods. The eviction manager
will prioritize the eviction of offline pods that reach
this threshold. For example: "100Gi", "1%".'
podMinimumUsedThreshold:
description: 'PodMinimumUsedThreshold is a threshold for
all pods. The eviction manager will ignore this pod
if its rootfs used in bytes is lower than this threshold.
For example: "200Gi", "1%".'
pattern: ^(0|[1-9][0-9]*)(\.[0-9]+)?%?$|^(0|[1-9][0-9]*)([kKmMGTPeE]i?)$
type: string
reclaimedQoSPodInodesUsedPriorityThreshold:
Expand All @@ -285,6 +278,13 @@ spec:
reach this threshold. For example: "500", "1%".'
pattern: ^(0|[1-9]\d*)(\.\d+)?%?$|^\d+$
type: string
reclaimedQoSPodUsedPriorityThreshold:
description: 'ReclaimedQoSPodUsedPriorityThreshold is
a threshold for all offline pods. The eviction manager
will prioritize the eviction of offline pods that reach
this threshold. For example: "100Gi", "1%".'
pattern: ^(0|[1-9][0-9]*)(\.[0-9]+)?%?$|^(0|[1-9][0-9]*)([kKmMGTPeE]i?)$
type: string
type: object
systemLoadPressureEvictionConfig:
description: SystemLoadPressureEvictionConfig is the config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
properties:
type:
type: string
waterFlow:
watermark:
properties:
evictOfflinePodTaint:
properties:
Expand Down
10 changes: 5 additions & 5 deletions pkg/apis/tide/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ type TideNodePoolSpec struct {
type EvictStrategy struct {
Type string `json:"type"`
// +optional
WaterFlow WaterFlow `json:"waterFlow,omitempty"`
Watermark Watermark `json:"watermark,omitempty"`
}

type EvictStrategyType string

const (
WaterFlowStrategy EvictStrategyType = "water-flow"
WatermarkStrategy EvictStrategyType = "watermark"
)

type WaterFlow struct {
type Watermark struct {
// +optional
EvictOnlinePodTaint *TaintOption `json:"evictOnlinePodTaint,omitempty"`
// +optional
Expand Down Expand Up @@ -87,12 +87,12 @@ type TideNodePoolStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
// +optional
ReverseNodes ReverseNodes `json:"reverseNodes,omitempty"`
ReserveNodes ReserveNodes `json:"reverseNodes,omitempty"`
// +optional
TideNodes TideNodes `json:"tideNodes,omitempty"`
}

type ReverseNodes struct {
type ReserveNodes struct {
OnlineNodes []string `json:"onlineNodes,omitempty"`
OfflineNodes []string `json:"offlineNodes,omitempty"`
}
Expand Down
20 changes: 10 additions & 10 deletions pkg/apis/tide/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions pkg/client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions pkg/client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3dff47b

Please sign in to comment.