Skip to content

Commit abaf09c

Browse files
authored
✨ support klusterlet priorityclass (#319)
Signed-off-by: Yang Le <[email protected]>
1 parent e7bd1bd commit abaf09c

4 files changed

+15
-0
lines changed

crdsv1beta1/0001_00_operator.open-cluster-management.io_klusterlets.crd.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ spec:
111111
value:
112112
description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
113113
type: string
114+
priorityClassName:
115+
description: PriorityClassName is the name of the PriorityClass that will be used by the deployed klusterlet agent. It will be ignored when the PriorityClass/v1 API is not available on the managed cluster.
116+
type: string
114117
registrationConfiguration:
115118
description: RegistrationConfiguration contains the configuration of registration
116119
type: object

operator/v1/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ spec:
172172
type: object
173173
type: array
174174
type: object
175+
priorityClassName:
176+
description: PriorityClassName is the name of the PriorityClass that
177+
will be used by the deployed klusterlet agent. It will be ignored
178+
when the PriorityClass/v1 API is not available on the managed cluster.
179+
type: string
175180
registrationConfiguration:
176181
description: RegistrationConfiguration contains the configuration
177182
of registration

operator/v1/types_klusterlet.go

+6
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ type KlusterletSpec struct {
9393
// It applies to all the containers in the deployments.
9494
// +optional
9595
ResourceRequirement *ResourceRequirement `json:"resourceRequirement,omitempty"`
96+
97+
// PriorityClassName is the name of the PriorityClass that will be used by the
98+
// deployed klusterlet agent. It will be ignored when the PriorityClass/v1 API
99+
// is not available on the managed cluster.
100+
// +optional
101+
PriorityClassName string `json:"priorityClassName,omitempty"`
96102
}
97103

98104
// ServerURL represents the apiserver url and ca bundle that is accessible externally

operator/v1/zz_generated.swagger_doc_generated.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)