Skip to content

Commit b100ffa

Browse files
feat(k8s): use structs for node taints (#1964)
Co-authored-by: Jules Castéran <[email protected]>
1 parent 81beee1 commit b100ffa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

api/k8s/v1/k8s_sdk.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,15 @@ type CreatePoolRequestUpgradePolicy struct {
876876
MaxSurge *uint32 `json:"max_surge"`
877877
}
878878

879+
// ExternalNodeCoreV1Taint: external node core v1 taint.
880+
type ExternalNodeCoreV1Taint struct {
881+
Key string `json:"key"`
882+
883+
Value string `json:"value"`
884+
885+
Effect string `json:"effect"`
886+
}
887+
879888
// ClusterType: cluster type.
880889
type ClusterType struct {
881890
// Name: cluster type name.
@@ -1330,7 +1339,7 @@ type ExternalNode struct {
13301339

13311340
NodeLabels map[string]string `json:"node_labels"`
13321341

1333-
NodeTaints map[string]string `json:"node_taints"`
1342+
NodeTaints []*ExternalNodeCoreV1Taint `json:"node_taints"`
13341343
}
13351344

13361345
// GetClusterKubeConfigRequest: get cluster kube config request.

0 commit comments

Comments
 (0)