Skip to content

Commit f389731

Browse files
Merge pull request #77 from elgnay/support-placement
add placementImagePullSpec into ClusterManager spec
2 parents cc5aa10 + 9b4f52b commit f389731

3 files changed

+18
-3
lines changed

operator/v1/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,21 @@ spec:
3737
that govern registration and work distribution for attached Klusterlets.
3838
type: object
3939
properties:
40+
placementImagePullSpec:
41+
description: PlacementImagePullSpec represents the desired image configuration
42+
of placement controller/webhook installed on hub.
43+
type: string
44+
default: quay.io/open-cluster-management/placement
4045
registrationImagePullSpec:
4146
description: RegistrationImagePullSpec represents the desired image
4247
of registration controller/webhook installed on hub.
4348
type: string
49+
default: quay.io/open-cluster-management/registration
4450
workImagePullSpec:
4551
description: WorkImagePullSpec represents the desired image configuration
4652
of work controller/webhook installed on hub.
4753
type: string
54+
default: quay.io/open-cluster-management/work
4855
status:
4956
description: Status represents the current status of controllers that
5057
govern the lifecycle of managed clusters.

operator/v1/types.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@ type ClusterManager struct {
2727
// ClusterManagerSpec represents a desired deployment configuration of controllers that govern registration and work distribution for attached Klusterlets.
2828
type ClusterManagerSpec struct {
2929
// RegistrationImagePullSpec represents the desired image of registration controller/webhook installed on hub.
30-
// +required
31-
RegistrationImagePullSpec string `json:"registrationImagePullSpec"`
30+
// +optional
31+
// +kubebuilder:default=quay.io/open-cluster-management/registration
32+
RegistrationImagePullSpec string `json:"registrationImagePullSpec,omitempty"`
3233

3334
// WorkImagePullSpec represents the desired image configuration of work controller/webhook installed on hub.
34-
// +required
35+
// +optional
36+
// +kubebuilder:default=quay.io/open-cluster-management/work
3537
WorkImagePullSpec string `json:"workImagePullSpec,omitempty"`
38+
39+
// PlacementImagePullSpec represents the desired image configuration of placement controller/webhook installed on hub.
40+
// +optional
41+
// +kubebuilder:default=quay.io/open-cluster-management/placement
42+
PlacementImagePullSpec string `json:"placementImagePullSpec,omitempty"`
3643
}
3744

3845
// ClusterManagerStatus represents the current status of the registration and work distribution controllers running on the hub.

operator/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)