Skip to content

Commit 2496e9b

Browse files
authored
Merge pull request #211 from hangscer8/rename_crd
rename crds
2 parents 4a39b21 + e847740 commit 2496e9b

File tree

438 files changed

+9205
-9210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+9205
-9210
lines changed

.github/workflows/call-offline-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
KUBEAN_TAG: ${{ github.ref_name }}
3838
KUBESPRAY_TAG: ${{ env.SPRAY_SHA_SHORT }}
3939
run: |
40-
bash artifacts/manage_version_cr.sh create_infomanifest
41-
bash artifacts/manage_version_cr.sh create_offlineversion
40+
bash artifacts/manage_version_cr.sh create_manifest
41+
bash artifacts/manage_version_cr.sh create_localartifactset
4242
4343
echo "kubeanofflineversion cr output:"
4444
cat ${KUBEAN_TAG}/kubeanofflineversion.cr.yaml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ helm install kubean kubean-io/kubean --create-namespace -n kubean-system
1717

1818
Then check kubean-operator status by `kubectl get pods -n kubean-system | grep 'kubean'`.
1919

20-
## Start KuBeanClusterOps for cluster.yml playbook
20+
## Start ClusterOperation for cluster.yml playbook
2121

2222
We cloud use the example in folder `artifacts/demo` which uses online resources to install k8s cluster.
2323

File renamed without changes.

api/apis/kubeancluster/v1alpha1/types.go renamed to api/apis/cluster/v1alpha1/types.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
// +kubebuilder:subresource:status
1414
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
1515

16-
// KuBeanCluster represents the desire state and status of a member cluster.
17-
type KuBeanCluster struct {
16+
// Cluster represents the desire state and status of a member cluster.
17+
type Cluster struct {
1818
metav1.TypeMeta `json:",inline"`
1919
metav1.ObjectMeta `json:"metadata,omitempty"`
2020

@@ -53,7 +53,7 @@ const (
5353
)
5454

5555
type ClusterCondition struct {
56-
// ClusterOps refers to the name of KuBeanClusterOps.
56+
// ClusterOps refers to the name of ClusterOperation.
5757
// +required
5858
ClusterOps string `json:"clusterOps"`
5959
// +optional
@@ -72,11 +72,11 @@ type Status struct {
7272

7373
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
7474

75-
// KuBeanClusterList contains a list of member cluster.
76-
type KuBeanClusterList struct {
75+
// ClusterList contains a list of member cluster.
76+
type ClusterList struct {
7777
metav1.TypeMeta `json:",inline"`
7878
metav1.ListMeta `json:"metadata,omitempty"`
7979

80-
// Items holds a list of KuBeanCluster.
81-
Items []KuBeanCluster `json:"items"`
80+
// Items holds a list of Cluster.
81+
Items []Cluster `json:"items"`
8282
}

api/apis/kubeancluster/v1alpha1/zz_generated.deepcopy.go renamed to api/apis/cluster/v1alpha1/zz_generated.deepcopy.go

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/kubean.io/api/apis/kubeanclusterops/v1alpha1/types.go renamed to api/apis/clusteroperation/v1alpha1/types.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
// +kubebuilder:subresource:status
1414
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
1515

16-
// KuBeanClusterOps represents the desire state and status of a member cluster.
17-
type KuBeanClusterOps struct {
16+
// ClusterOperation represents the desire state and status of a member cluster.
17+
type ClusterOperation struct {
1818
metav1.TypeMeta `json:",inline"`
1919
metav1.ObjectMeta `json:"metadata,omitempty"`
2020

@@ -34,9 +34,9 @@ const (
3434

3535
// Spec defines the desired state of a member cluster.
3636
type Spec struct {
37-
// KuBeanCluster the name of KuBeanCluster.
37+
// Cluster the name of Cluster.kubean.io.
3838
// +required
39-
KuBeanCluster string `json:"kuBeanCluster"`
39+
Cluster string `json:"cluster"`
4040
// HostsConfRef will be filled by operator when it performs backup.
4141
// +optional
4242
HostsConfRef *apis.ConfigMapRef `json:"hostsConfRef"`
@@ -109,11 +109,11 @@ type Status struct {
109109

110110
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
111111

112-
// KuBeanClusterOpsList contains a list of member cluster.
113-
type KuBeanClusterOpsList struct {
112+
// ClusterOperationList contains a list of member cluster.
113+
type ClusterOperationList struct {
114114
metav1.TypeMeta `json:",inline"`
115115
metav1.ListMeta `json:"metadata,omitempty"`
116116

117-
// Items holds a list of KuBeanClusterOps.
118-
Items []KuBeanClusterOps `json:"items"`
117+
// Items holds a list of ClusterOperation.
118+
Items []ClusterOperation `json:"items"`
119119
}
Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/apis/kubeanclusterops/v1alpha1/zz_generated.register.go renamed to api/apis/clusteroperation/v1alpha1/zz_generated.register.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)