Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add importer config in clustermanager #352

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading