Skip to content

Commit

Permalink
Add importer config in clustermanager
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Qiu <[email protected]>
  • Loading branch information
qiujian16 committed Dec 18, 2024
1 parent 0ba6809 commit 8b8288a
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,21 @@ spec:
- feature
type: object
type: array
importerConfiguration:
description: |-
ImporterConfiguration is the configuration to import managed clusters from the hub cluster. It applies only when
feature gate ClusterImporter is enabled.
properties:
agentImage:
description: |-
AgentImage is the image of the klusterlet agent. If it is not set, the default image
will be used with the corresponding version.
type: string
hubAPIServerURL:
description: HubAPIServer is the apiserver endpoint of the
hub cluster.
type: string
type: object
type: object
registrationImagePullSpec:
default: quay.io/open-cluster-management/registration
Expand Down
16 changes: 16 additions & 0 deletions operator/v1/types_clustermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ type RegistrationHubConfiguration struct {
// he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.
// +optional
FeatureGates []FeatureGate `json:"featureGates,omitempty"`

// ImporterConfiguration is the configuration to import managed clusters from the hub cluster. It applies only when
// feature gate ClusterImporter is enabled.
// +optional
ImporterConfiguration ImporterConfiguration `json:"importerConfiguration,omitempty"`
}

type ImporterConfiguration struct {
// AgentImage is the image of the klusterlet agent. If it is not set, the default image
// will be used with the corresponding version.
// +optional
AgentImage string `json:"agentImage,omitempty"`

// HubAPIServer is the apiserver endpoint of the hub cluster.
// +optional
HubAPIServerURL string `json:"hubAPIServerURL,omitempty"`
}

type WorkConfiguration struct {
Expand Down
17 changes: 17 additions & 0 deletions operator/v1/zz_generated.deepcopy.go

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

14 changes: 12 additions & 2 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 8b8288a

Please sign in to comment.