diff --git a/Jenkinsfile b/Jenkinsfile index 082d1e9c..3f70177e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline { AEROSPIKE_CUSTOM_INIT_REGISTRY="568976754000.dkr.ecr.ap-south-1.amazonaws.com" AEROSPIKE_CUSTOM_INIT_REGISTRY_NAMESPACE="aerospike" - AEROSPIKE_CUSTOM_INIT_NAME_TAG="aerospike-kubernetes-init:2.2.3" + AEROSPIKE_CUSTOM_INIT_NAME_TAG="aerospike-kubernetes-init:2.2.4-dev1" } stages { diff --git a/api/v1/aerospikecluster_mutating_webhook.go b/api/v1/aerospikecluster_mutating_webhook.go index a38daabc..ddc1fb4e 100644 --- a/api/v1/aerospikecluster_mutating_webhook.go +++ b/api/v1/aerospikecluster_mutating_webhook.go @@ -118,9 +118,7 @@ func (c *AerospikeCluster) setDefaults(asLog logr.Logger) (admission.Warnings, e } // Set defaults for pod spec - if err := c.Spec.PodSpec.SetDefaults(); err != nil { - return warn, err - } + c.Spec.PodSpec.SetDefaults() // Validation policy if c.Spec.ValidationPolicy == nil { diff --git a/api/v1/utils.go b/api/v1/utils.go index 5d7c7a76..a96d363d 100644 --- a/api/v1/utils.go +++ b/api/v1/utils.go @@ -74,7 +74,7 @@ const ( AerospikeInitContainerNameTagEnvVar = "AEROSPIKE_KUBERNETES_INIT_NAME_TAG" AerospikeInitContainerDefaultRegistry = "docker.io" AerospikeInitContainerDefaultRegistryNamespace = "aerospike" - AerospikeInitContainerDefaultNameAndTag = "aerospike-kubernetes-init:2.2.3" + AerospikeInitContainerDefaultNameAndTag = "aerospike-kubernetes-init:2.2.4-dev1" AerospikeAppLabel = "app" AerospikeAppLabelValue = "aerospike-cluster" AerospikeCustomResourceLabel = "aerospike.com/cr" diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 045f2311..797fdee6 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -66,7 +66,7 @@ spec: value: aerospike - name: AEROSPIKE_KUBERNETES_INIT_NAME_TAG # this is the name and tag of aerospike-init image - value: aerospike-kubernetes-init:2.2.3 + value: aerospike-kubernetes-init:2.2.4-dev1 serviceAccountName: controller-manager terminationGracePeriodSeconds: 10 diff --git a/config/samples/aerospikebackupservice.yaml b/config/samples/aerospikebackupservice.yaml index 9a368460..2de00f30 100644 --- a/config/samples/aerospikebackupservice.yaml +++ b/config/samples/aerospikebackupservice.yaml @@ -4,7 +4,7 @@ metadata: name: aerospikebackupservice-sample namespace: aerospike spec: - image: aerospike/aerospike-backup-service:2.0.0 + image: aerospike/aerospike-backup-service:3.0.0 config: service: http: diff --git a/helm-charts/aerospike-backup-service/README.md b/helm-charts/aerospike-backup-service/README.md index 95a58423..13f768a8 100644 --- a/helm-charts/aerospike-backup-service/README.md +++ b/helm-charts/aerospike-backup-service/README.md @@ -41,7 +41,7 @@ helm install aerospike-backup-service aerospike/aerospike-backup-service \ | Name | Description | Default | |------------------------------|-------------------------------------------------------------------------------|--------------------------------------| | `image.repository` | Aerospike backup service container image repository | `aerospike/aerospike-backup-service` | -| `image.tag` | Aerospike backup service container image tag | `2.0.0` | +| `image.tag` | Aerospike backup service container image tag | `3.0.0` | | `customLabels` | Custom labels to add on the AerospikeBackupService resource | `{}` (nil) | | `serviceAccount.create` | Enable ServiceAccount creation for Aerospike backup service. | true | | `serviceAccount.annotations` | ServiceAccount annotations | `{}` (nil) | diff --git a/helm-charts/aerospike-backup-service/values.yaml b/helm-charts/aerospike-backup-service/values.yaml index 6eb799de..73e0b897 100644 --- a/helm-charts/aerospike-backup-service/values.yaml +++ b/helm-charts/aerospike-backup-service/values.yaml @@ -11,7 +11,7 @@ nameOverride: "" ## Image is the image for the backup service. image: repository: aerospike/aerospike-backup-service - tag: "2.0.0" + tag: "3.0.0" ## Custom labels that will be applied on the AerospikeBackupService resource customLabels: {} diff --git a/helm-charts/aerospike-kubernetes-operator/values.yaml b/helm-charts/aerospike-kubernetes-operator/values.yaml index 3bc6c50d..d482fc61 100644 --- a/helm-charts/aerospike-kubernetes-operator/values.yaml +++ b/helm-charts/aerospike-kubernetes-operator/values.yaml @@ -37,7 +37,7 @@ aerospikeKubernetesInitRegistry: "docker.io" aerospikeKubernetesInitRegistryNamespace: "aerospike" # Name and tag of aerospike-init image -aerospikeKubernetesInitNameTag: "aerospike-kubernetes-init:2.2.3" +aerospikeKubernetesInitNameTag: "aerospike-kubernetes-init:2.2.4-dev1" ## Resources - limits / requests resources: diff --git a/test/backup/test_utils.go b/test/backup/test_utils.go index 3002ee60..05bb2dbc 100644 --- a/test/backup/test_utils.go +++ b/test/backup/test_utils.go @@ -114,7 +114,7 @@ func getBackupConfigInMap(prefix string) map[string]interface{} { asdbv1beta1.BackupRoutinesKey: map[string]interface{}{ fmt.Sprintf("%s-%s", prefix, "test-routine"): map[string]interface{}{ "backup-policy": "test-policy", - "interval-cron": "*/1 * * * * *", + "interval-cron": "*/30 * * * * *", "incr-interval-cron": "@hourly", "namespaces": []string{"test"}, "source-cluster": fmt.Sprintf("%s-%s", prefix, "test-cluster"), diff --git a/test/backup_service/test_utils.go b/test/backup_service/test_utils.go index 838af4ef..cb66d377 100644 --- a/test/backup_service/test_utils.go +++ b/test/backup_service/test_utils.go @@ -23,7 +23,7 @@ import ( "github.com/aerospike/aerospike-kubernetes-operator/test" ) -const BackupServiceImage = "abhishekdwivedi3060/aerospike-backup-service:3.0.0.3" +const BackupServiceImage = "aerospike/aerospike-backup-service:3.0.0" const BackupServiceVersion2Image = "aerospike/aerospike-backup-service:2.0.0" const ( diff --git a/test/cluster/podspec_test.go b/test/cluster/podspec_test.go index 614f682a..cb0527e4 100644 --- a/test/cluster/podspec_test.go +++ b/test/cluster/podspec_test.go @@ -459,7 +459,7 @@ var _ = Describe( "Should be able to set/update aerospike-init custom registry, namespace and name", func() { operatorEnvVarRegistry := "docker.io" operatorEnvVarRegistryNamespace := "aerospike" - operatorEnvVarNameAndTag := "aerospike-kubernetes-init:2.2.3" + operatorEnvVarNameAndTag := "aerospike-kubernetes-init:2.2.4-dev1" customRegistry := getEnvVar(customInitRegistryEnvVar) customRegistryNamespace := getEnvVar(customInitRegistryNamespaceEnvVar) customInitNameAndTag := getEnvVar(customInitNameAndTagEnvVar) @@ -516,7 +516,7 @@ var _ = Describe( func() { operatorEnvVarRegistry := "docker.io" operatorEnvVarRegistryNamespace := "aerospike" - operatorEnvVarNameAndTag := "aerospike-kubernetes-init:2.2.3" + operatorEnvVarNameAndTag := "aerospike-kubernetes-init:2.2.4-dev1" incorrectCustomRegistryNamespace := "incorrectnamespace" By("Using incorrect registry namespace in CR") diff --git a/test/test.sh b/test/test.sh index 6c5cfa13..38893a81 100755 --- a/test/test.sh +++ b/test/test.sh @@ -30,7 +30,7 @@ done CRED_PATH=${CRED_PATH:-$HOME/.docker/config.json} REGISTRY=${REGISTRY:-568976754000.dkr.ecr.ap-south-1.amazonaws.com} REGISTRY_NAMESPACE=${REGISTRY_NAMESPACE:-aerospike} -INIT_IMAGE_NAME_TAG=${INIT_IMAGE_NAME_TAG:-aerospike-kubernetes-init:2.2.3} +INIT_IMAGE_NAME_TAG=${INIT_IMAGE_NAME_TAG:-aerospike-kubernetes-init:2.2.4-dev1} DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"