Skip to content

Commit 8b8288a

Browse files
committed
Add importer config in clustermanager
Signed-off-by: Jian Qiu <[email protected]>
1 parent 0ba6809 commit 8b8288a

4 files changed

+60
-2
lines changed

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

+15
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,21 @@ spec:
255255
- feature
256256
type: object
257257
type: array
258+
importerConfiguration:
259+
description: |-
260+
ImporterConfiguration is the configuration to import managed clusters from the hub cluster. It applies only when
261+
feature gate ClusterImporter is enabled.
262+
properties:
263+
agentImage:
264+
description: |-
265+
AgentImage is the image of the klusterlet agent. If it is not set, the default image
266+
will be used with the corresponding version.
267+
type: string
268+
hubAPIServerURL:
269+
description: HubAPIServer is the apiserver endpoint of the
270+
hub cluster.
271+
type: string
272+
type: object
258273
type: object
259274
registrationImagePullSpec:
260275
default: quay.io/open-cluster-management/registration

operator/v1/types_clustermanager.go

+16
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ type RegistrationHubConfiguration struct {
108108
// he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.
109109
// +optional
110110
FeatureGates []FeatureGate `json:"featureGates,omitempty"`
111+
112+
// ImporterConfiguration is the configuration to import managed clusters from the hub cluster. It applies only when
113+
// feature gate ClusterImporter is enabled.
114+
// +optional
115+
ImporterConfiguration ImporterConfiguration `json:"importerConfiguration,omitempty"`
116+
}
117+
118+
type ImporterConfiguration struct {
119+
// AgentImage is the image of the klusterlet agent. If it is not set, the default image
120+
// will be used with the corresponding version.
121+
// +optional
122+
AgentImage string `json:"agentImage,omitempty"`
123+
124+
// HubAPIServer is the apiserver endpoint of the hub cluster.
125+
// +optional
126+
HubAPIServerURL string `json:"hubAPIServerURL,omitempty"`
111127
}
112128

113129
type WorkConfiguration struct {

operator/v1/zz_generated.deepcopy.go

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

operator/v1/zz_generated.swagger_doc_generated.go

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

0 commit comments

Comments
 (0)