Skip to content

modify cluster-type usage #230

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

Merged
merged 1 commit into from
May 28, 2025
Merged

modify cluster-type usage #230

merged 1 commit into from
May 28, 2025

Conversation

kaiiyvwu
Copy link

What type of PR is this?

/kind documentation

What this PR does / why we need it:

If the cluster type is ACKManaged and a new node is not tainted with karpenter.sh/unregistered:NoExecute, then the node will not be managed by Karpenter afterward.

Which issue(s) this PR fixes:

Fixes #none

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Copy link
Contributor

gitautomator bot commented May 28, 2025

Thanks to your contribution, the maintainers will review it as soon as they can!

Copy link
Contributor

gitautomator bot commented May 28, 2025

The release note is either empty or incomplete, please consider: If the cluster type is ACKManaged and a new node is not tainted with karpenter.sh/unregistered:NoExecute, then the node will not be managed by Karpenter afterward.

@gitautomator gitautomator bot added the documentation Improvements or additions to documentation label May 28, 2025
@@ -53,7 +53,7 @@ func (o *Options) AddFlags(fs *coreoptions.FlagSet) {
fs.BoolVar(&o.Interruption, "interruption", env.WithDefaultBool("INTERRUPTION", true), "Enable interruption handling.")
fs.BoolVar(&o.TelemetryShare, "telemetry-share", env.WithDefaultBool("TELEMETRY_SHARE", true), "Enable telemetry sharing.")
fs.IntVar(&o.APGCreationQPS, "apg-qps", int(env.WithDefaultInt64("APG_CREATION_QPS", 100)), "The QPS limit for creating AutoProvisionGroup.")
fs.StringVar(&o.ClusterType, "cluster-type", env.WithDefaultString("CLUSTER_TYPE", "ACKManaged"), "Type of cluster, which specifies the method to generate userdata. The default is ACKManaged, with an option for Custom configuration.")
fs.StringVar(&o.ClusterType, "cluster-type", env.WithDefaultString("CLUSTER_TYPE", "ACKManaged"), "Type of cluster, which specifies the method to generate userdata. The default is ACKManaged, with an option for Custom configuration. If your cluster-type is not default or ACKManaged, you need to add taint(karpenter.sh/unregistered:NoExecute) before the node is ready")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a controller to do it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, I will do it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kaiiyvwu , can you help create a issue to track the feature?

@daimaxiaxie
Copy link
Contributor

/lgtm

@jwcesign
Copy link
Contributor

Will implement the controller next, let's merge this first.

/approve

@gitautomator gitautomator bot merged commit 776d09e into cloudpilot-ai:main May 28, 2025
1 check passed
@gitautomator gitautomator bot added the LGTM label May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation LGTM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants