diff --git a/README.md b/README.md index 3cc879d3..a19a37fc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Nebula Operator manages [NebulaGraph](https://github.com/vesoft-inc/nebula-graph It evolved from [NebulaGraph Cloud Service](https://www.nebula-cloud.io/), makes NebulaGraph a truly cloud-native database. ## Quick Start + - [Install Nebula Operator](#install-nebula-operator) - [Create and Destroy](#create-and-destroy-a-nebula-cluster) - [Resize](#resize-a-nebula-cluster) @@ -18,7 +19,7 @@ $ kubectl create -f config/samples/apps_v1alpha1_nebulacluster.yaml ``` A none ha-mode nebula cluster will be created. ```bash -$ kubectl get pods -l app.kubernetes.io/instance=nebula +$ kubectl get pods -l app.kubernetes.io/cluster=nebula NAME READY STATUS RESTARTS AGE nebula-graphd-0 1/1 Running 0 1m nebula-metad-0 1/1 Running 0 1m @@ -63,7 +64,7 @@ Modify the file and change `replicas` from 3 to 5. memory: "1Gi" replicas: 5 image: vesoft/nebula-storaged - version: v2.5.0 + version: v2.5.1 storageClaim: resources: requests: @@ -78,7 +79,7 @@ $ kubectl apply -f config/samples/apps_v1alpha1_nebulacluster.yaml The storaged cluster will scale to 5 members (5 pods): ```bash -$ kubectl get pods -l app.kubernetes.io/instance=nebula +$ kubectl get pods -l app.kubernetes.io/cluster=nebula NAME READY STATUS RESTARTS AGE nebula-graphd-0 1/1 Running 0 2m nebula-metad-0 1/1 Running 0 2m @@ -101,7 +102,7 @@ Similarly we can decrease the size of the cluster from 5 back to 3 by changing t memory: "1Gi" replicas: 3 image: vesoft/nebula-storaged - version: v2.5.0 + version: v2.5.1 storageClaim: resources: requests: @@ -111,7 +112,7 @@ Similarly we can decrease the size of the cluster from 5 back to 3 by changing t We should see that storaged cluster will eventually reduce to 3 pods: ```bash -$ kubectl get pods -l app.kubernetes.io/instance=nebula +$ kubectl get pods -l app.kubernetes.io/cluster=nebula NAME READY STATUS RESTARTS AGE nebula-graphd-0 1/1 Running 0 10m nebula-metad-0 1/1 Running 0 10m @@ -139,7 +140,7 @@ $ kubectl delete pod nebula-storaged-2 --now The nebula operator will recover the failure by creating a new pod `nebula-storaged-2`: ```bash -$ kubectl get pods -l app.kubernetes.io/instance=nebula +$ kubectl get pods -l app.kubernetes.io/cluster=nebula NAME READY STATUS RESTARTS AGE nebula-graphd-0 1/1 Running 0 15m nebula-metad-0 1/1 Running 0 15m diff --git a/charts/index.yaml b/charts/index.yaml index 0329f9be..84b717c9 100644 --- a/charts/index.yaml +++ b/charts/index.yaml @@ -3,9 +3,9 @@ entries: nebula-cluster: - apiVersion: v2 appVersion: 0.8.0 - created: "2021-09-22T12:01:46.067787+08:00" + created: "2021-09-24T11:53:52.508186+08:00" description: Nebula Cluster Helm chart for Kubernetes - digest: 08f8f836ea930f798ecda9faab8133734fb6735d56e38a8b862424fc20c64149 + digest: a066917e40d489bfb10396155101bec78ef8f4f6b0c8c5e900149d13af8d91ce home: https://nebula-graph.io keywords: - kubernetes @@ -29,9 +29,9 @@ entries: nebula-operator: - apiVersion: v2 appVersion: 0.8.0 - created: "2021-09-22T12:01:46.068321+08:00" + created: "2021-09-24T11:53:52.509111+08:00" description: Nebula Operator Helm chart for Kubernetes - digest: 088c9e02bc3051ff8acf338411d4978c389939c9e445cdd06ff2cf5cdfb91554 + digest: f45a7a804622614d3401b85f72ccd96955fdf7e4a1dfb1dd56cacda5365330d8 home: https://nebula-graph.io keywords: - kubernetes @@ -50,4 +50,4 @@ entries: urls: - https://vesoft-inc.github.io/nebula-operator/charts/nebula-operator-0.8.0.tgz version: 0.8.0 -generated: "2021-09-22T12:01:46.06719+08:00" +generated: "2021-09-24T11:53:52.507102+08:00" diff --git a/charts/nebula-cluster-0.8.0.tgz b/charts/nebula-cluster-0.8.0.tgz index 8af6c677..e4d0faff 100644 Binary files a/charts/nebula-cluster-0.8.0.tgz and b/charts/nebula-cluster-0.8.0.tgz differ diff --git a/charts/nebula-cluster/values.yaml b/charts/nebula-cluster/values.yaml index 88b18d96..c94d6f65 100644 --- a/charts/nebula-cluster/values.yaml +++ b/charts/nebula-cluster/values.yaml @@ -1,5 +1,5 @@ nebula: - version: v2.5.0 + version: v2.5.1 imagePullPolicy: IfNotPresent storageClassName: "" schedulerName: default-scheduler # nebula-scheduler diff --git a/charts/nebula-operator-0.8.0.tgz b/charts/nebula-operator-0.8.0.tgz index 494e635a..0a9a4906 100644 Binary files a/charts/nebula-operator-0.8.0.tgz and b/charts/nebula-operator-0.8.0.tgz differ diff --git a/config/samples/apps_v1alpha1_nebulacluster.yaml b/config/samples/apps_v1alpha1_nebulacluster.yaml index 29c7583e..59a67e22 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: v2.5.0 + version: v2.5.1 service: type: NodePort externalTrafficPolicy: Local @@ -32,7 +32,7 @@ spec: memory: "1Gi" replicas: 1 image: vesoft/nebula-metad - version: v2.5.0 + version: v2.5.1 storageClaim: resources: requests: @@ -48,7 +48,7 @@ spec: memory: "1Gi" replicas: 3 image: vesoft/nebula-storaged - version: v2.5.0 + version: v2.5.1 storageClaim: resources: requests: diff --git a/doc/user/custom_config.md b/doc/user/custom_config.md index 5f9aff92..01e9f715 100644 --- a/doc/user/custom_config.md +++ b/doc/user/custom_config.md @@ -24,7 +24,7 @@ spec: memory: "1Gi" replicas: 1 image: vesoft/nebula-graphd - version: v2.5.0 + version: v2.5.1 storageClaim: resources: requests: diff --git a/doc/user/nebula_cluster_helm_guide.md b/doc/user/nebula_cluster_helm_guide.md index 53fbf621..a2740ecc 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 version | `v2.5.0` | +| `nebula.version` | Nebula version | `v2.5.1` | | `nebula.imagePullPolicy` | Nebula image pull policy | `IfNotPresent` | | `nebula.storageClassName` | PersistentVolume class, default to use the default StorageClass | `nil` | | `nebula.schedulerName` | Scheduler for nebula component | `default-scheduler` | diff --git a/go.mod b/go.mod index 14c203ae..41d31bef 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( k8s.io/cli-runtime v0.19.2 k8s.io/client-go v0.19.2 k8s.io/code-generator v0.19.2 - k8s.io/klog/v2 v2.4.0 + k8s.io/klog/v2 v2.4.0 // indirect k8s.io/kube-scheduler v0.0.0 k8s.io/kubectl v0.0.0 k8s.io/kubernetes v1.19.2 diff --git a/go.sum b/go.sum index 466e8171..ee05d637 100644 --- a/go.sum +++ b/go.sum @@ -554,6 +554,7 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/thecodeteam/goscaleio v0.1.0/go.mod h1:68sdkZAsK8bvEwBlbQnlLS+xU+hvLYM/iQ8KXej1AwM= diff --git a/pkg/controller/nebulacluster/nebula_cluster_control_test.go b/pkg/controller/nebulacluster/nebula_cluster_control_test.go index eb737f4b..8733948f 100644 --- a/pkg/controller/nebulacluster/nebula_cluster_control_test.go +++ b/pkg/controller/nebulacluster/nebula_cluster_control_test.go @@ -124,7 +124,6 @@ func Test_defaultNebulaClusterControl_UpdateNebulaCluster(t *testing.T) { } } -// nolint: gocritic func newFakeNebulaClusterControl() ( ControlInterface, *component.FakeGraphdCluster, @@ -173,7 +172,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster { }, }, Image: "vesoft/graphd", - Version: "v2.5.0", + Version: "v2.5.1", }, }, Metad: &v1alpha1.MetadSpec{ @@ -186,7 +185,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster { }, }, Image: "vesoft/metad", - Version: "v2.5.0", + Version: "v2.5.1", }, }, Storaged: &v1alpha1.StoragedSpec{ @@ -199,7 +198,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster { }, }, Image: "vesoft/storaged", - Version: "v2.5.0", + Version: "v2.5.1", }, }, },