diff --git a/Makefile b/Makefile index 65b71480..e5205e95 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,9 @@ LDFLAGS = $(if $(DEBUGGER),,-s -w) $(shell ./hack/version.sh) DOCKER_REGISTRY ?= docker.io DOCKER_REPO ?= ${DOCKER_REGISTRY}/vesoft -IMAGE_TAG ?= latest +IMAGE_TAG ?= v1.6.0 -CHARTS_VERSION ?= 1.5.0 +CHARTS_VERSION ?= 1.6.0 export GO111MODULE := on GOOS := $(if $(GOOS),$(GOOS),linux) diff --git a/README.md b/README.md index 60133192..0baa9889 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Modify the file and change `replicas` from 3 to 5. memory: "1Gi" replicas: 5 image: vesoft/nebula-storaged - version: v3.5.0 + version: v3.6.0 storageClaim: resources: requests: @@ -120,7 +120,7 @@ the change. memory: "1Gi" replicas: 3 image: vesoft/nebula-storaged - version: v3.5.0 + version: v3.6.0 storageClaim: resources: requests: @@ -144,7 +144,7 @@ In addition, you can [Install Nebula Cluster with helm](doc/user/nebula_cluster_ ### Upgrade a nebula cluster -Create a nebula cluster with the version specified (v3.5.0): +Create a nebula cluster with the version specified (v3.6.0): ```bash $ kubectl apply -f config/samples/apps_v1alpha1_nebulacluster.yaml @@ -157,16 +157,16 @@ nebula-storaged-1 1/1 Running 0 24m nebula-storaged-2 1/1 Running 0 25m ``` -The container image version should be v3.5.0: +The container image version should be v3.6.0: ```bash $ kubectl get pods -l app.kubernetes.io/cluster=nebula -o jsonpath="{.items[*].spec.containers[*].image}" |tr -s '[[:space:]]' '\n' |sort |uniq -c - 1 vesoft/nebula-graphd:v3.5.0 - 1 vesoft/nebula-metad:v3.5.0 - 3 vesoft/nebula-storaged:v3.5.0 + 1 vesoft/nebula-graphd:v3.6.0 + 1 vesoft/nebula-metad:v3.6.0 + 3 vesoft/nebula-storaged:v3.6.0 ``` -Now modify the file `apps_v1alpha1_nebulacluster.yaml` and change the `version` from v3.5.0 to v3.5.x: +Now modify the file `apps_v1alpha1_nebulacluster.yaml` and change the `version` from v3.6.0 to v3.6.x: Apply the version change to the cluster CR: diff --git a/apis/go.mod b/apis/go.mod index 958ab7d9..6046bfeb 100644 --- a/apis/go.mod +++ b/apis/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/openkruise/kruise-api v1.3.0 - github.com/vesoft-inc/nebula-go/v3 v3.5.0 + github.com/vesoft-inc/nebula-go/v3 v3.6.0 k8s.io/api v0.26.5 k8s.io/apimachinery v0.26.5 k8s.io/utils v0.0.0-20230209194617-a36077c30491 @@ -12,13 +12,13 @@ require ( ) require ( - github.com/facebook/fbthrift v0.31.1-0.20211129061412-801ed7f9f295 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/google/gofuzz v1.1.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/vesoft-inc/fbthrift v0.0.0-20230214024353-fa2f34755b28 // indirect golang.org/x/net v0.10.0 // indirect golang.org/x/text v0.9.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect diff --git a/apis/go.sum b/apis/go.sum index bb13b897..ae68d8cb 100644 --- a/apis/go.sum +++ b/apis/go.sum @@ -1,8 +1,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/facebook/fbthrift v0.31.1-0.20211129061412-801ed7f9f295 h1:ZA+qQ3d2In0RNzVpk+D/nq1sjDSv+s1Wy2zrAPQAmsg= -github.com/facebook/fbthrift v0.31.1-0.20211129061412-801ed7f9f295/go.mod h1:2tncLx5rmw69e5kMBv/yJneERbzrr1yr5fdlnTbu8lU= github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -34,36 +32,56 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= -github.com/vesoft-inc/nebula-go/v3 v3.5.0 h1:2ZSkoBxtIfs15AXJXqrAPDPd0Z9HrzKR7YKXPqlJcR0= -github.com/vesoft-inc/nebula-go/v3 v3.5.0/go.mod h1:+sXv05jYQBARdTbTcIEsWVXCnF/6ttOlDK35xQ6m54s= +github.com/vesoft-inc/fbthrift v0.0.0-20230214024353-fa2f34755b28 h1:gpoPCGeOEuk/TnoY9nLVK1FoBM5ie7zY3BPVG8q43ME= +github.com/vesoft-inc/fbthrift v0.0.0-20230214024353-fa2f34755b28/go.mod h1:xu7e9za8StcJhBZmCDwK1Hyv4/Y0xFsjS+uqp10ECJg= +github.com/vesoft-inc/nebula-go/v3 v3.6.0 h1:ahwkfkHl9O8G07mhGi0vmnXBCcTTgZjAdPYyjQkysWI= +github.com/vesoft-inc/nebula-go/v3 v3.6.0/go.mod h1:mjMPlpNKnHYhe1pWz4caT7x9R+wKoX7dIm6u1+Rdcws= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/charts/index.yaml b/charts/index.yaml index 95e71260..caf57f1c 100644 --- a/charts/index.yaml +++ b/charts/index.yaml @@ -1,6 +1,30 @@ apiVersion: v1 entries: nebula-cluster: + - apiVersion: v2 + appVersion: 1.6.0 + created: "2023-09-15T15:49:14.391789423+08:00" + description: Nebula Cluster Helm chart for Kubernetes + digest: e6af9ab5c9859c18f91c748266c3712d7c41dcd3f816f78073ef0ccbb92ac15d + home: https://nebula-graph.io + keywords: + - kubernetes + - operator + - nebula-graph + - database + - graph database + maintainers: + - email: vee.zhang@vesoft.com + name: Vee Zhang + - email: kevin.qiao@vesoft.com + name: Kevin Qiao + name: nebula-cluster + sources: + - https://github.com/vesoft-inc/nebula + - https://github.com/vesoft-inc/nebula-operator + urls: + - https://github.com/vesoft-inc/nebula-operator/releases/download/v1.6.0/nebula-cluster-1.6.0.tgz + version: 1.6.0 - apiVersion: v2 appVersion: 1.5.0 created: "2023-08-09T13:32:13.843588041+08:00" @@ -218,6 +242,29 @@ entries: - https://github.com/vesoft-inc/nebula-operator/releases/download/v0.9.0/nebula-cluster-0.9.0.tgz version: 0.9.0 nebula-operator: + - apiVersion: v2 + appVersion: 1.6.0 + created: "2023-09-15T15:49:14.395600009+08:00" + description: Nebula Operator Helm chart for Kubernetes + digest: 35f5b709a77650ab2de6e691bca0aeaa38990aff3678d6a48d4e35ddd7bdec2b + home: https://nebula-graph.io + keywords: + - kubernetes + - operator + - nebula-graph + - database + - graph database + maintainers: + - email: vee.zhang@vesoft.com + name: Vee Zhang + - email: kevin.qiao@vesoft.com + name: Kevin Qiao + name: nebula-operator + sources: + - https://github.com/vesoft-inc/nebula-operator + urls: + - https://github.com/vesoft-inc/nebula-operator/releases/download/v1.6.0/nebula-operator-1.6.0.tgz + version: 1.6.0 - apiVersion: v2 appVersion: 1.5.0 created: "2023-08-09T13:32:13.848166288+08:00" diff --git a/charts/nebula-cluster/values.yaml b/charts/nebula-cluster/values.yaml index 5f99caad..3d5bd1f9 100644 --- a/charts/nebula-cluster/values.yaml +++ b/charts/nebula-cluster/values.yaml @@ -1,5 +1,5 @@ nebula: - version: v3.5.0 + version: v3.6.0 imagePullPolicy: Always storageClassName: "" enablePVReclaim: false diff --git a/charts/nebula-operator/templates/scheduler-configmap.yaml b/charts/nebula-operator/templates/scheduler-configmap.yaml index 34d75982..922b4d3b 100644 --- a/charts/nebula-operator/templates/scheduler-configmap.yaml +++ b/charts/nebula-operator/templates/scheduler-configmap.yaml @@ -10,11 +10,6 @@ metadata: data: scheduler-config.yaml: | apiVersion: kubescheduler.config.k8s.io/v1 - kind: KubeSchedulerConfiguration - leaderElection: - leaderElect: true - resourceNamespace: {{ template "nebula-operator.namespace" . }} - resourceName: {{ .Values.scheduler.schedulerName }} profiles: # Compose all plugins in one profile - schedulerName: {{ .Values.scheduler.schedulerName }} diff --git a/charts/nebula-operator/templates/scheduler-deployment.yaml b/charts/nebula-operator/templates/scheduler-deployment.yaml index fdf3ce74..3fa6d314 100644 --- a/charts/nebula-operator/templates/scheduler-deployment.yaml +++ b/charts/nebula-operator/templates/scheduler-deployment.yaml @@ -26,6 +26,9 @@ spec: command: - /usr/local/bin/scheduler - --config=/etc/kubernetes/scheduler-config.yaml + - --leader-elect + - --leader-elect-resource-name={{ .Values.scheduler.schedulerName }} + - --leader-elect-resource-namespace={{ template "nebula-operator.namespace" . }} - --v={{ .Values.scheduler.verbosity }} {{- if or .Values.kubernetesClusterDomain .Values.scheduler.env }} env: diff --git a/charts/nebula-operator/templates/scheduler-rbac.yaml b/charts/nebula-operator/templates/scheduler-rbac.yaml index 5ba22d19..4c756789 100644 --- a/charts/nebula-operator/templates/scheduler-rbac.yaml +++ b/charts/nebula-operator/templates/scheduler-rbac.yaml @@ -12,6 +12,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ template "scheduler.name" . }}-role + annotations: + rbac.authorization.kubernetes.io/autoupdate: "true" labels: {{- include "scheduler.labels" . | nindent 4 }} rules: @@ -60,8 +62,10 @@ rules: resources: - endpoints verbs: + - delete - get - update + - patch - apiGroups: - "" resources: diff --git a/charts/nebula-operator/values.yaml b/charts/nebula-operator/values.yaml index f98967f5..27e4364a 100644 --- a/charts/nebula-operator/values.yaml +++ b/charts/nebula-operator/values.yaml @@ -1,6 +1,6 @@ image: nebulaOperator: - image: vesoft/nebula-operator:v1.5.0 + image: vesoft/nebula-operator:v1.6.0 imagePullPolicy: Always kubeRBACProxy: image: bitnami/kube-rbac-proxy:0.14.2 @@ -36,7 +36,7 @@ scheduler: requests: cpu: 100m memory: 100Mi - verbosity: 5 + verbosity: 0 plugins: enabled: ["NodeZone"] disabled: [] # only in-tree plugins need to be defined here diff --git a/config/samples/apps_v1alpha1_nebulacluster.yaml b/config/samples/apps_v1alpha1_nebulacluster.yaml index 55b8997a..bddec234 100644 --- a/config/samples/apps_v1alpha1_nebulacluster.yaml +++ b/config/samples/apps_v1alpha1_nebulacluster.yaml @@ -13,7 +13,7 @@ spec: memory: "1Gi" replicas: 1 image: vesoft/nebula-graphd - version: v3.5.0 + version: v3.6.0 service: type: NodePort externalTrafficPolicy: Local @@ -35,7 +35,7 @@ spec: memory: "1Gi" replicas: 1 image: vesoft/nebula-metad - version: v3.5.0 + version: v3.6.0 dataVolumeClaim: resources: requests: @@ -56,7 +56,7 @@ spec: memory: "1Gi" replicas: 3 image: vesoft/nebula-storaged - version: v3.5.0 + version: v3.6.0 dataVolumeClaims: - resources: requests: diff --git a/doc/user/nebula_cluster_helm_guide.md b/doc/user/nebula_cluster_helm_guide.md index 1bb2961b..0af47a27 100644 --- a/doc/user/nebula_cluster_helm_guide.md +++ b/doc/user/nebula_cluster_helm_guide.md @@ -75,7 +75,7 @@ The following table lists is the configurable parameters of the chart and their | Parameter | Description | Default | |:-------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------| | `nameOverride` | Override the name of the chart | `nil` | -| `nebula.version` | Nebula image tag | `v3.5.0` | +| `nebula.version` | Nebula image tag | `v3.6.0` | | `nebula.imagePullPolicy` | Nebula image pull policy | `Always` | | `enablePVReclaim` | Flag to enable/disable PV reclaim while the Nebula cluster deleted | `false` | | `enableBR` | Flag to enable/disable sidecar container nebula-agent injection | `false` | diff --git a/pkg/controller/nebulacluster/nebula_cluster_control_test.go b/pkg/controller/nebulacluster/nebula_cluster_control_test.go index 5679b0d9..6079760a 100644 --- a/pkg/controller/nebulacluster/nebula_cluster_control_test.go +++ b/pkg/controller/nebulacluster/nebula_cluster_control_test.go @@ -178,7 +178,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster { }, }, Image: "vesoft/graphd", - Version: "v3.5.0", + Version: "v3.6.0", }, }, Metad: &v1alpha1.MetadSpec{ @@ -191,7 +191,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster { }, }, Image: "vesoft/metad", - Version: "v3.5.0", + Version: "v3.6.0", }, }, Storaged: &v1alpha1.StoragedSpec{ @@ -204,7 +204,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster { }, }, Image: "vesoft/storaged", - Version: "v3.5.0", + Version: "v3.6.0", }, }, }, diff --git a/pkg/ngctl/cmd/info/clusterinfo.go b/pkg/ngctl/cmd/info/clusterinfo.go index 952515bb..5490464d 100644 --- a/pkg/ngctl/cmd/info/clusterinfo.go +++ b/pkg/ngctl/cmd/info/clusterinfo.go @@ -72,7 +72,7 @@ func NewNebulaClusterInfo(clusterName, namespace string, runtimeCli client.Clien } var svc corev1.Service - key = client.ObjectKey{Namespace: namespace, Name: nc.GraphdComponent().GetServiceName()} + key = client.ObjectKey{Namespace: namespace, Name: nc.GraphdComponent().GetHeadlessServiceName()} if err := runtimeCli.Get(context.TODO(), key, &svc); err != nil { return nil, err }