From 0f410adcbcba2870725a33c8c78bf6791d727adc Mon Sep 17 00:00:00 2001 From: Samuel Vijaykumar M Date: Thu, 24 Nov 2022 14:52:14 +0530 Subject: [PATCH 1/3] Add an export for password with RReEDISCLI_AUTH --- example/operator/kustomization.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 example/operator/kustomization.yaml diff --git a/example/operator/kustomization.yaml b/example/operator/kustomization.yaml new file mode 100644 index 000000000..d3ed119c4 --- /dev/null +++ b/example/operator/kustomization.yaml @@ -0,0 +1,16 @@ +# Ensure namesapce `redis-failover` is created before you run this +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +images: +- name: quay.io/spotahome/redis-operator + newName: samof76/redis-operator + newTag: b9e55b20161f8355eaa5154b2b8a697fab853de4 + +resources: +- "rolebinding.yaml" +- "roles.yaml" +- "operator.yaml" +- "serviceaccount.yaml" + +namespace: redis-failover From 98ccd3361b617c6b1a6c401a975630360a2ab61b Mon Sep 17 00:00:00 2001 From: Samuel Vijaykumar M Date: Thu, 24 Nov 2022 14:57:47 +0530 Subject: [PATCH 2/3] Fix test failures --- operator/redisfailover/service/generator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/redisfailover/service/generator_test.go b/operator/redisfailover/service/generator_test.go index 7c7cc62dd..8c3ee0574 100644 --- a/operator/redisfailover/service/generator_test.go +++ b/operator/redisfailover/service/generator_test.go @@ -1709,7 +1709,7 @@ func TestRedisEnv(t *testing.T) { expectedRedisEnv: []corev1.EnvVar{ { Name: "REDIS_ADDR", - Value: fmt.Sprintf("redis://localhost:%[1]v", default_port), + Value: fmt.Sprintf("redis://127.0.0.1:%[1]v", default_port), }, { Name: "REDIS_PORT", @@ -1727,7 +1727,7 @@ func TestRedisEnv(t *testing.T) { expectedRedisEnv: []corev1.EnvVar{ { Name: "REDIS_ADDR", - Value: fmt.Sprintf("redis://localhost:%[1]v", default_port), + Value: fmt.Sprintf("redis://127.0.0.1:%[1]v", default_port), }, { Name: "REDIS_PORT", From fa90da60dd0863695a76277320df32511409c33e Mon Sep 17 00:00:00 2001 From: Samuel Vijaykumar M Date: Thu, 24 Nov 2022 14:59:06 +0530 Subject: [PATCH 3/3] Remove kustomization.yaml --- example/operator/kustomization.yaml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 example/operator/kustomization.yaml diff --git a/example/operator/kustomization.yaml b/example/operator/kustomization.yaml deleted file mode 100644 index d3ed119c4..000000000 --- a/example/operator/kustomization.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Ensure namesapce `redis-failover` is created before you run this -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -images: -- name: quay.io/spotahome/redis-operator - newName: samof76/redis-operator - newTag: b9e55b20161f8355eaa5154b2b8a697fab853de4 - -resources: -- "rolebinding.yaml" -- "roles.yaml" -- "operator.yaml" -- "serviceaccount.yaml" - -namespace: redis-failover