Skip to content

Commit 2ca2d75

Browse files
[BugFix][Change] Fixed secret whitespace issue in redis password (#300)
* Fixed rbac policy for PDB Signed-off-by: iamabhishek-dubey <abhishekbhardwaj510@gmail.com> * Fixed whitespace in redis secret Signed-off-by: iamabhishek-dubey <abhishekbhardwaj510@gmail.com>
1 parent 24209e6 commit 2ca2d75

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
### v0.11.0
2+
##### July 5, 2022
3+
4+
#### :beetle: Bug Fixes
5+
6+
- Fix Redis cluster and Redis CRD
7+
- Fixed TLS authentication between redis cluster
8+
- Fixed RBAC policy for PDB
9+
- Redis exporter exception handled
10+
- External service fix
11+
112
### v0.10.0
213
##### January 26, 2022
314

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Current Operator version
2-
VERSION ?= 0.10.0
2+
VERSION ?= 0.11.0
33
# Default bundle image tag
44
BUNDLE_IMG ?= controller-bundle:$(VERSION)
55
# Options for 'bundle-build'
@@ -12,7 +12,7 @@ endif
1212
BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
1313

1414
# Image URL to use all building/pushing image targets
15-
IMG ?= quay.io/opstree/redis-operator:v0.10.0
15+
IMG ?= quay.io/opstree/redis-operator:v0.11.0
1616
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
1717
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
1818

k8sutils/secrets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"crypto/tls"
66
"crypto/x509"
77
redisv1beta1 "redis-operator/api/v1beta1"
8+
"strings"
89

910
"github.com/go-logr/logr"
1011
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -23,7 +24,7 @@ func getRedisPassword(namespace, name, secretKey string) (string, error) {
2324
}
2425
for key, value := range secretName.Data {
2526
if key == secretKey {
26-
return string(value), nil
27+
return strings.TrimSpace(string(value)), nil
2728
}
2829
}
2930
return "", nil

0 commit comments

Comments
 (0)