From 48d91b72d07cf1b3ee0f55f66c361b3975112fad Mon Sep 17 00:00:00 2001 From: Sergio Ballesteros Date: Tue, 6 Sep 2022 17:48:35 +0200 Subject: [PATCH] Bump to v1.2.0 --- Makefile | 2 +- README.md | 13 ++++++++----- charts/redisoperator/Chart.yaml | 4 ++-- charts/redisoperator/values.yaml | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 90752ef54..4b586d52a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := v1.2.0-rc1 +VERSION := v1.2.0 # Name of this service/application SERVICE_NAME := redis-operator diff --git a/README.md b/README.md index 653e4ba9e..9a3fbad6c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Redis Operator creates/configures/manages redis-failovers atop Kubernetes. ## Requirements -Redis Operator is meant to be run on Kubernetes 1.19+. +Redis operator is being tested against kubernetes 1.22 1.23 1.24 All dependencies have been vendored, so there's no need to any additional download. ## Operator deployment on Kubernetes @@ -30,7 +30,8 @@ helm install redis-operator redis-operator/redis-operator Helm chart only manage the creation of CRD in the first install. In order to update the CRD you will need to apply directly. ``` -kubectl apply -f https://raw.githubusercontent.com/spotahome/redis-operator/master/manifests/databases.spotahome.com_redisfailovers.yaml +REDIS_OPERATOR_VERSION=v1.2.0 +kubectl replace -f https://raw.githubusercontent.com/spotahome/redis-operator/${REDIS_OPERATOR_VERSION}/manifests/databases.spotahome.com_redisfailovers.yaml ``` ``` @@ -41,8 +42,9 @@ helm upgrade redis-operator redis-operator/redis-operator To create the operator, you can directly create it with kubectl: ``` -kubectl apply -f https://raw.githubusercontent.com/spotahome/redis-operator/master/manifests/databases.spotahome.com_redisfailovers.yaml -kubectl apply -f https://raw.githubusercontent.com/spotahome/redis-operator/master/example/operator/all-redis-operator-resources.yaml +REDIS_OPERATOR_VERSION=v1.2.0 +kubectl create -f https://raw.githubusercontent.com/spotahome/redis-operator/${REDIS_OPERATOR_VERSION}/manifests/databases.spotahome.com_redisfailovers.yaml +kubectl apply -f https://raw.githubusercontent.com/spotahome/redis-operator/${REDIS_OPERATOR_VERSION}/example/operator/all-redis-operator-resources.yaml ``` This will create a deployment named `redisoperator`. @@ -93,7 +95,8 @@ Once the operator is deployed inside a Kubernetes cluster, a new API will be acc In order to deploy a new redis-failover a [specification](example/redisfailover/basic.yaml) has to be created: ``` -kubectl create -f https://raw.githubusercontent.com/spotahome/redis-operator/master/example/redisfailover/basic.yaml +REDIS_OPERATOR_VERSION=v1.2.0 +kubectl create -f https://raw.githubusercontent.com/spotahome/redis-operator/${REDIS_OPERATOR_VERSION}/example/redisfailover/basic.yaml ``` This redis-failover will be managed by the operator, resulting in the following elements created inside Kubernetes: diff --git a/charts/redisoperator/Chart.yaml b/charts/redisoperator/Chart.yaml index 46cf6e419..70ca3e356 100644 --- a/charts/redisoperator/Chart.yaml +++ b/charts/redisoperator/Chart.yaml @@ -1,10 +1,10 @@ annotations: category: Redis Operator -appVersion: 1.1.1 +appVersion: 1.2.0 apiVersion: v1 description: A Helm chart for the Spotahome Redis Operator name: redis-operator -version: 3.1.6 +version: 3.2.0 home: https://github.com/spotahome/redis-operator keywords: - "golang" diff --git a/charts/redisoperator/values.yaml b/charts/redisoperator/values.yaml index 9d6d70459..dbc144913 100644 --- a/charts/redisoperator/values.yaml +++ b/charts/redisoperator/values.yaml @@ -5,8 +5,8 @@ # Name of the image repository to pull the container image from. image: repository: quay.io/spotahome/redis-operator - pullPolicy: Always - tag: v1.1.1 + pullPolicy: IfNotPresent + tag: v1.2.0 imageCredentials: create: false