This is an automated email from the ASF dual-hosted git repository. guoshoujing pushed a commit to branch rename-pkg in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-computer.git
commit c9b74556f255c79256d51cf92bb83e0d7f48221d Author: 枫川 <[email protected]> AuthorDate: Mon Oct 24 19:11:10 2022 +0800 rename package --- computer-k8s-operator/README.md | 4 ++-- computer-k8s-operator/crd-generate/Makefile | 4 ++-- computer-k8s-operator/crd-generate/api/v1/groupversion_info.go | 10 +++++----- .../crd-generate/config/crd/kustomization.yaml | 4 ++-- computer-k8s-operator/crd-generate/config/rbac/role.yaml | 6 +++--- computer-k8s-operator/crd-generate/go.mod | 2 +- computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml | 4 ++-- .../manifest/hugegraph-computer-crd.v1beta1.yaml | 4 ++-- .../manifest/hugegraph-computer-operator.yaml | 6 +++--- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/computer-k8s-operator/README.md b/computer-k8s-operator/README.md index 90751e48..8cc22aaa 100644 --- a/computer-k8s-operator/README.md +++ b/computer-k8s-operator/README.md @@ -16,7 +16,7 @@ kubectl apply -f https://raw.githubusercontent.com/hugegraph/hugegraph-computer/ kubectl get crd NAME CREATED AT -hugegraphcomputerjobs.hugegraph.baidu.com 2021-09-16T08:01:08Z +hugegraphcomputerjobs.hugegraph.apache.org 2021-09-16T08:01:08Z ``` ## Install hugegraph-computer-operator&etcd-server @@ -39,7 +39,7 @@ hugegraph-computer-operator-etcd-28lm67jxk5 1/1 Runnin ```yaml cat <<EOF | kubectl apply --filename - -apiVersion: hugegraph.baidu.com/v1 +apiVersion: hugegraph.apache.org/v1 kind: HugeGraphComputerJob metadata: namespace: hugegraph-computer-system diff --git a/computer-k8s-operator/crd-generate/Makefile b/computer-k8s-operator/crd-generate/Makefile index 6f59715a..ed81fbc4 100644 --- a/computer-k8s-operator/crd-generate/Makefile +++ b/computer-k8s-operator/crd-generate/Makefile @@ -39,8 +39,8 @@ gen-all: gen-code manifests gen-jsonschema ## Generate code containing DeepCopy, manifests: controller-gen kustomize ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases #$(KUSTOMIZE) build config/crd > ../manifest/hugegraph-computer-crd.yaml - cp config/crd/bases/hugegraph.baidu.com_hugegraphcomputerjobs.yaml ../manifest/hugegraph-computer-crd.v1.yaml - cp config/crd/bases/hugegraph.baidu.com_hugegraphcomputerjobs.v1beta1.yaml ../manifest/hugegraph-computer-crd.v1beta1.yaml + cp config/crd/bases/hugegraph.apache.org_hugegraphcomputerjobs.yaml ../manifest/hugegraph-computer-crd.v1.yaml + cp config/crd/bases/hugegraph.apache.org_hugegraphcomputerjobs.v1beta1.yaml ../manifest/hugegraph-computer-crd.v1beta1.yaml $(KUSTOMIZE) build config/default > ../manifest/hugegraph-computer-operator.yaml rm -rf config/crd/bases diff --git a/computer-k8s-operator/crd-generate/api/v1/groupversion_info.go b/computer-k8s-operator/crd-generate/api/v1/groupversion_info.go index 0914e8d3..00466a34 100644 --- a/computer-k8s-operator/crd-generate/api/v1/groupversion_info.go +++ b/computer-k8s-operator/crd-generate/api/v1/groupversion_info.go @@ -19,7 +19,7 @@ under the License. // Package v1 contains API Schema definitions for the computer v1 API group //+kubebuilder:object:generate=true -//+groupName=hugegraph.baidu.com +//+groupName=hugegraph.apache.org package v1 import ( @@ -29,9 +29,9 @@ import ( // +kubebuilder:rbac:groups=core,resources=secrets,verbs=get // +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;create;update -// +kubebuilder:rbac:groups=hugegraph.baidu.com,resources=hugegraphcomputerjobs,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=hugegraph.baidu.com,resources=hugegraphcomputerjobs/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=hugegraph.baidu.com,resources=hugegraphcomputerjobs/finalizers,verbs=update +// +kubebuilder:rbac:groups=hugegraph.apache.org,resources=hugegraphcomputerjobs,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=hugegraph.apache.org,resources=hugegraphcomputerjobs/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=hugegraph.apache.org,resources=hugegraphcomputerjobs/finalizers,verbs=update // +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=apps,resources=deployments/status,verbs=get // +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete @@ -52,7 +52,7 @@ import ( var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{ - Group: "hugegraph.baidu.com", Version: "v1", + Group: "hugegraph.apache.org", Version: "v1", } // SchemeBuilder is used to add go types to the GroupVersionKind scheme diff --git a/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml b/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml index 8927fa42..c5c8d3d8 100644 --- a/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml +++ b/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml @@ -2,8 +2,8 @@ # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default resources: -- bases/hugegraph.baidu.com_hugegraphcomputerjobs.yaml -- bases/hugegraph.baidu.com_hugegraphcomputerjobs.v1beta1.yaml +- bases/hugegraph.apache.org_hugegraphcomputerjobs.yaml +- bases/hugegraph.apache.org_hugegraphcomputerjobs.v1beta1.yaml #+kubebuilder:scaffold:crdkustomizeresource patchesStrategicMerge: diff --git a/computer-k8s-operator/crd-generate/config/rbac/role.yaml b/computer-k8s-operator/crd-generate/config/rbac/role.yaml index 9e0a78ca..f2c39b55 100644 --- a/computer-k8s-operator/crd-generate/config/rbac/role.yaml +++ b/computer-k8s-operator/crd-generate/config/rbac/role.yaml @@ -163,7 +163,7 @@ rules: verbs: - get - apiGroups: - - hugegraph.baidu.com + - hugegraph.apache.org resources: - hugegraphcomputerjobs verbs: @@ -175,13 +175,13 @@ rules: - update - watch - apiGroups: - - hugegraph.baidu.com + - hugegraph.apache.org resources: - hugegraphcomputerjobs/finalizers verbs: - update - apiGroups: - - hugegraph.baidu.com + - hugegraph.apache.org resources: - hugegraphcomputerjobs/status verbs: diff --git a/computer-k8s-operator/crd-generate/go.mod b/computer-k8s-operator/crd-generate/go.mod index e11d00ac..011bc6fc 100644 --- a/computer-k8s-operator/crd-generate/go.mod +++ b/computer-k8s-operator/crd-generate/go.mod @@ -1,4 +1,4 @@ -module hugegraph.baidu.com/operator +module hugegraph.apache.org/operator go 1.16 diff --git a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml index c40236e4..33a072d8 100644 --- a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml +++ b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.5.0 creationTimestamp: null - name: hugegraphcomputerjobs.hugegraph.baidu.com + name: hugegraphcomputerjobs.hugegraph.apache.org spec: - group: hugegraph.baidu.com + group: hugegraph.apache.org names: kind: HugeGraphComputerJob listKind: HugeGraphComputerJobList diff --git a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml index 42f18007..8999550c 100644 --- a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml +++ b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml @@ -6,7 +6,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.5.0 creationTimestamp: null - name: hugegraphcomputerjobs.hugegraph.baidu.com + name: hugegraphcomputerjobs.hugegraph.apache.org spec: additionalPrinterColumns: - JSONPath: .spec.jobId @@ -24,7 +24,7 @@ spec: - JSONPath: .status.jobState.lastSuperstepStat name: SuperstepStat type: string - group: hugegraph.baidu.com + group: hugegraph.apache.org names: kind: HugeGraphComputerJob listKind: HugeGraphComputerJobList diff --git a/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml b/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml index a41ca218..e4b98607 100644 --- a/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml +++ b/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml @@ -222,7 +222,7 @@ rules: verbs: - get - apiGroups: - - hugegraph.baidu.com + - hugegraph.apache.org resources: - hugegraphcomputerjobs verbs: @@ -234,13 +234,13 @@ rules: - update - watch - apiGroups: - - hugegraph.baidu.com + - hugegraph.apache.org resources: - hugegraphcomputerjobs/finalizers verbs: - update - apiGroups: - - hugegraph.baidu.com + - hugegraph.apache.org resources: - hugegraphcomputerjobs/status verbs:
