Skip to content

Commit

Permalink
✨ support klusterlet priorityclass (#319)
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Le <[email protected]>
  • Loading branch information
elgnay authored Feb 5, 2024
1 parent e7bd1bd commit abaf09c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ spec:
value:
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.
type: string
priorityClassName:
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.
type: string
registrationConfiguration:
description: RegistrationConfiguration contains the configuration of registration
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ spec:
type: object
type: array
type: object
priorityClassName:
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.
type: string
registrationConfiguration:
description: RegistrationConfiguration contains the configuration
of registration
Expand Down
6 changes: 6 additions & 0 deletions operator/v1/types_klusterlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ type KlusterletSpec struct {
// It applies to all the containers in the deployments.
// +optional
ResourceRequirement *ResourceRequirement `json:"resourceRequirement,omitempty"`

// 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.
// +optional
PriorityClassName string `json:"priorityClassName,omitempty"`
}

// ServerURL represents the apiserver url and ca bundle that is accessible externally
Expand Down
1 change: 1 addition & 0 deletions operator/v1/zz_generated.swagger_doc_generated.go

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

0 comments on commit abaf09c

Please sign in to comment.