Skip to content

Commit

Permalink
config/types_node: add minimumKubeletVersion
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hunt <[email protected]>
  • Loading branch information
haircommander committed Oct 21, 2024
1 parent dece706 commit 0908b45
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 2 deletions.
7 changes: 7 additions & 0 deletions config/v1/types_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ type NodeSpec struct {
// the status and corresponding reaction of the cluster
// +optional
WorkerLatencyProfile WorkerLatencyProfileType `json:"workerLatencyProfile,omitempty"`

// MinimumKubeletVersion is the lowest version of a kubelet that can join the cluster.
// Specifically, the apiserver will deny any authorization requests of kubelets that are older
// than the specified version.
// +kubebuilder:validation:Pattern=`^[0-9]*\.[0-9]*\.[0-9]*$`
// +optional
MinimumKubeletVersion string `json:"minimumKubeletVersion,omitempty"`
}

type NodeStatus struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ spec:
- v2
- ""
type: string
minimumKubeletVersion:
description: |-
MinimumKubeletVersion is the lowest version of a kubelet that can join the cluster.
Specifically, the apiserver will deny any authorization requests of kubelets that are older
than the specified version.
pattern: ^[0-9]*\.[0-9]*\.[0-9]*$
type: string
workerLatencyProfile:
description: |-
WorkerLatencyProfile determins the how fast the kubelet is updating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ spec:
- v2
- ""
type: string
minimumKubeletVersion:
description: |-
MinimumKubeletVersion is the lowest version of a kubelet that can join the cluster.
Specifically, the apiserver will deny any authorization requests of kubelets that are older
than the specified version.
pattern: ^[0-9]*\.[0-9]*\.[0-9]*$
type: string
workerLatencyProfile:
description: |-
WorkerLatencyProfile determins the how fast the kubelet is updating
Expand Down
5 changes: 3 additions & 2 deletions config/v1/zz_generated.swagger_doc_generated.go

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

7 changes: 7 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

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

4 changes: 4 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8270,6 +8270,10 @@
"description": "CgroupMode determines the cgroups version on the node",
"type": "string"
},
"minimumKubeletVersion": {
"description": "MinimumKubeletVersion is the lowest version of a kubelet that can join the cluster. Specifically, the apiserver will deny any authorization requests of kubelets that are older than the specified version.",
"type": "string"
},
"workerLatencyProfile": {
"description": "WorkerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the cluster",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ spec:
- v2
- ""
type: string
minimumKubeletVersion:
description: |-
MinimumKubeletVersion is the lowest version of a kubelet that can join the cluster.
Specifically, the apiserver will deny any authorization requests of kubelets that are older
than the specified version.
pattern: ^[0-9]*\.[0-9]*\.[0-9]*$
type: string
workerLatencyProfile:
description: |-
WorkerLatencyProfile determins the how fast the kubelet is updating
Expand Down

0 comments on commit 0908b45

Please sign in to comment.