Skip to content

Commit

Permalink
refactor: rename api group from xline.kvstore.datenlord.com to xline.…
Browse files Browse the repository at this point in the history
…io.datenlord.com

Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 committed Jan 14, 2024
1 parent d479421 commit a0c57b3
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: xline.kvstore.datenlord.com
domain: xline.io.datenlord.com
layout:
- go.kubebuilder.io/v4
projectName: xline-operator
Expand All @@ -12,7 +12,7 @@ resources:
crdVersion: v1
namespaced: true
controller: true
domain: xline.kvstore.datenlord.com
domain: xline.io.datenlord.com
kind: XlineCluster
path: github.com/xline-kv/xline-operator/api/v1alpha1
version: v1alpha1
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// Package v1alpha1 contains API Schema definitions for the v1alpha1 API group
// +kubebuilder:object:generate=true
// +groupName=xline.kvstore.datenlord.com
// +groupName=xline.io.datenlord.com
package v1alpha1

import (
Expand All @@ -26,7 +26,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "xline.kvstore.datenlord.com", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "xline.io.datenlord.com", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
Metrics: metricsserver.Options{BindAddress: metricsAddr},
HealthProbeBindAddress: probeAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "8f6ca976.xline.kvstore.datenlord.com",
LeaderElectionID: "8f6ca976.xline.io.datenlord.com",
// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
// when the Manager ends. This requires the binary to immediately end when the
// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: xlineclusters.xline.kvstore.datenlord.com
name: xlineclusters.xline.io.datenlord.com
spec:
group: xline.kvstore.datenlord.com
group: xline.io.datenlord.com
names:
kind: XlineCluster
listKind: XlineClusterList
Expand Down
2 changes: 1 addition & 1 deletion config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/xline.kvstore.datenlord.com_xlineclusters.yaml
- bases/xline.io.datenlord.com_xlineclusters.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patches:
Expand Down
6 changes: 3 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ rules:
- update
- watch
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters
verbs:
Expand All @@ -49,13 +49,13 @@ rules:
- update
- watch
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters/finalizers
verbs:
- update
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/xlinecluster_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: xlinecluster-editor-role
rules:
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters
verbs:
Expand All @@ -24,7 +24,7 @@ rules:
- update
- watch
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/xlinecluster_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ metadata:
name: xlinecluster-viewer-role
rules:
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters
verbs:
- get
- list
- watch
- apiGroups:
- xline.kvstore.datenlord.com
- xline.io.datenlord.com
resources:
- xlineclusters/status
verbs:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/_v1alpha1_xlinecluster.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: xline.kvstore.datenlord.com/v1alpha1
apiVersion: xline.io.datenlord.com/v1alpha1
kind: XlineCluster
metadata:
labels:
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/xlinecluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type XlineClusterReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=xline.kvstore.datenlord.com,resources=xlineclusters,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=xline.kvstore.datenlord.com,resources=xlineclusters/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=xline.kvstore.datenlord.com,resources=xlineclusters/finalizers,verbs=update
//+kubebuilder:rbac:groups=xline.io.datenlord.com,resources=xlineclusters,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=xline.io.datenlord.com,resources=xlineclusters/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=xline.io.datenlord.com,resources=xlineclusters/finalizers,verbs=update
//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/xlinecluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var _ = Describe("XlineCluster controller", func() {
image := "test-image:latest"
xlineCluster := &xapi.XlineCluster{
TypeMeta: metav1.TypeMeta{
APIVersion: "xline.kvstore.datenlord.com/v1alpha1",
APIVersion: "xline.io.datenlord.com/v1alpha1",
Kind: "XlineCluster",
},
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit a0c57b3

Please sign in to comment.