diff --git a/apis/apps/v1alpha1/nebulacluster_types.go b/apis/apps/v1alpha1/nebulacluster_types.go index cea53d24..6dc6369c 100644 --- a/apis/apps/v1alpha1/nebulacluster_types.go +++ b/apis/apps/v1alpha1/nebulacluster_types.go @@ -70,7 +70,7 @@ type NebulaClusterSpec struct { // +optional EnablePVReclaim *bool `json:"enablePVReclaim,omitempty"` - // +kubebuilder:default=IfNotPresent + // +kubebuilder:default=Always ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` // +optional diff --git a/charts/nebula-cluster/values.yaml b/charts/nebula-cluster/values.yaml index cc67b3e2..04337b0c 100644 --- a/charts/nebula-cluster/values.yaml +++ b/charts/nebula-cluster/values.yaml @@ -1,6 +1,6 @@ nebula: version: v2.0.1 - imagePullPolicy: IfNotPresent + imagePullPolicy: Always storageClassName: "" schedulerName: default-scheduler # nebula-scheduler reference: diff --git a/charts/nebula-operator/crds/nebulacluster.yaml b/charts/nebula-operator/crds/nebulacluster.yaml index 1c4a202a..719a79f0 100644 --- a/charts/nebula-operator/crds/nebulacluster.yaml +++ b/charts/nebula-operator/crds/nebulacluster.yaml @@ -209,7 +209,7 @@ spec: type: string type: object imagePullPolicy: - default: IfNotPresent + default: Always type: string imagePullSecrets: items: diff --git a/charts/nebula-operator/values.yaml b/charts/nebula-operator/values.yaml index 12251ea0..c00c4c29 100644 --- a/charts/nebula-operator/values.yaml +++ b/charts/nebula-operator/values.yaml @@ -1,13 +1,13 @@ image: nebulaOperator: image: vesoft/nebula-operator:latest - imagePullPolicy: IfNotPresent + imagePullPolicy: Always kubeRBACProxy: image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0 - imagePullPolicy: IfNotPresent + imagePullPolicy: Always kubeScheduler: image: k8s.gcr.io/kube-scheduler:v1.18.8 - imagePullPolicy: IfNotPresent + imagePullPolicy: Always imagePullSecrets: [] kubernetesClusterDomain: "" diff --git a/config/crd/bases/apps.nebula-graph.io_nebulaclusters.yaml b/config/crd/bases/apps.nebula-graph.io_nebulaclusters.yaml index 83c8f187..2cd53177 100644 --- a/config/crd/bases/apps.nebula-graph.io_nebulaclusters.yaml +++ b/config/crd/bases/apps.nebula-graph.io_nebulaclusters.yaml @@ -211,7 +211,7 @@ spec: type: string type: object imagePullPolicy: - default: IfNotPresent + default: Always type: string imagePullSecrets: items: diff --git a/config/samples/apps_v1alpha1_nebulacluster.yaml b/config/samples/apps_v1alpha1_nebulacluster.yaml index 4e2a3a3f..dc4bf6d5 100644 --- a/config/samples/apps_v1alpha1_nebulacluster.yaml +++ b/config/samples/apps_v1alpha1_nebulacluster.yaml @@ -58,4 +58,4 @@ spec: name: statefulsets.apps version: v1 schedulerName: default-scheduler - imagePullPolicy: IfNotPresent \ No newline at end of file + imagePullPolicy: Always \ No newline at end of file diff --git a/doc/user/nebula_cluster_helm_guide.md b/doc/user/nebula_cluster_helm_guide.md index 03ad7f37..76fda769 100644 --- a/doc/user/nebula_cluster_helm_guide.md +++ b/doc/user/nebula_cluster_helm_guide.md @@ -76,7 +76,7 @@ The following table lists is the configurable parameters of the chart and their |:---------|:-----------|:-------| | `nameOverride` | Override the name of the chart | `nil` | | `nebula.version` | Nebula version | `v2.0.1` | -| `nebula.imagePullPolicy` | Nebula image pull policy | `IfNotPresent` | +| `nebula.imagePullPolicy` | Nebula image pull policy | `Always` | | `nebula.storageClassName` | PersistentVolume class, default to use the default StorageClass | `nil` | | `nebula.schedulerName` | Scheduler for nebula component | `default-scheduler` | | `nebula.reference` | Reference for nebula component | `{"name": "statefulsets.apps", "version": "v1"}` | diff --git a/tests/e2e/nebulacluster/util.go b/tests/e2e/nebulacluster/util.go index 22b39215..18eb867f 100644 --- a/tests/e2e/nebulacluster/util.go +++ b/tests/e2e/nebulacluster/util.go @@ -45,7 +45,7 @@ import ( ) func getNebulaCluster(runtimeClient client.Client, namespace, name string) *v1alpha1.NebulaCluster { - imagePullPolicy := corev1.PullIfNotPresent + imagePullPolicy := corev1.PullAlways storageClassName := getStorageClassName(runtimeClient) nebulaVersion := e2econfig.TestConfig.NebulaVersion return &v1alpha1.NebulaCluster{