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

feat: add capkk CRDs #2409

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

dbbDylan
Copy link

What type of PR is this?

/kind feature
/kind design

What this PR does / why we need it:

Add & Update CRDs which is CAPKK needed.

Special notes for reviewers:

Does this PR introduced a user-facing change?

Add `KKMachine` and `KKCluster` CRDs for CAPKK.

Additional documentation, usage docs, etc.:


@kubesphere-prow kubesphere-prow bot added release-note kind/feature Categorizes issue or PR as related to a new feature. kind/design Categorizes issue or PR as related to design. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 18, 2024
@kubesphere-prow kubesphere-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 18, 2024
Copy link

This PR has multiple commits, and the default merge method is: squash.
You can request commits to be merged using the label: tide/merge-method-merge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

sonarcloud bot commented Sep 18, 2024

Copy link
Collaborator

@redscholar redscholar left a comment

Choose a reason for hiding this comment

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

add make command to generate it.

// +optional
ConfigRef *corev1.ObjectReference `json:"configRef,omitempty"`

// ConfigRef is the reference of Pipeline.
Copy link
Collaborator

Choose a reason for hiding this comment

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

comments are wrong

Comment on lines +160 to +170
// ControlPlaneGroupName is the group name of kubernetes control plane nodes.
// +optional
ControlPlaneGroupName string `json:"controlPlaneGroupName,omitempty"`

// WorkerGroupName is the group name of kubernetes worker nodes.
// +optional
WorkerGroupName string `json:"workerGroupName,omitempty"`

// ClusterGroupName is the group name of kubernetes cluster, which contains control plane group and worker group.
// +optional
ClusterGroupName string `json:"clusterGroupName,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's batter to set it in annotations

ConfigRef *corev1.ObjectReference `json:"configRef,omitempty"`

// ConfigRef is the reference of Pipeline.
PipelineRef *corev1.ObjectReference `json:"pipelineRef,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

it batter set it in annotation or label. It is the pipeline that is created through kkcluster, not that kkcluster’s creation depends on the pipeline.

// can be added as events to the Machine object and/or logged in the
// controller's output.
// +optional
FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

errors.MachineStatusError or errors.ClusterStatusError

@redscholar redscholar added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 10, 2024
@ks-ci-bot ks-ci-bot merged commit 2ff308d into kubesphere:feature-gitops Oct 10, 2024
4 of 5 checks passed
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: dbbDylan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

redscholar added a commit that referenced this pull request Oct 10, 2024
@dbbDylan dbbDylan mentioned this pull request Oct 10, 2024
@dbbDylan
Copy link
Author

All suggestions have been adjusted in PR#2426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/design Categorizes issue or PR as related to design. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants