forked from dragonflydb/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: DFLY_PASSWORD environment variable deprecation (dragonflydb#2539)
* If the image.tag version is equal to 14.0.0 or greater then specify the DFLY_requirepass environment variable. Otherwise use the DFLY_PASSWORD environment variable. Signed-off-by: Michael Primeaux <[email protected]> * Corrected version logic and added golden test Signed-off-by: Michael Primeaux <[email protected]> * Updated golden file for TLS + image.tag Signed-off-by: Michael Primeaux <[email protected]> * fix CI for chart linting test * rename new test specific to password * use v1.13.0 * update golden chart --------- Signed-off-by: Michael Primeaux <[email protected]> Signed-off-by: Michael Primeaux <[email protected]> Co-authored-by: Tarun Pothulapati <[email protected]>
- Loading branch information
1 parent
eaca66b
commit 951b089
Showing
7 changed files
with
139 additions
and
3 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
contrib/charts/dragonfly/ci/password-old-env-values.golden.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
--- | ||
# Source: dragonfly/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.14.2" | ||
app.kubernetes.io/managed-by: Helm | ||
--- | ||
# Source: dragonfly/templates/extra-manifests.yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: dfly-password | ||
stringData: | ||
password: foobar | ||
--- | ||
# Source: dragonfly/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.14.2" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 6379 | ||
targetPort: dragonfly | ||
protocol: TCP | ||
name: dragonfly | ||
selector: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
--- | ||
# Source: dragonfly/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.14.2" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
template: | ||
metadata: | ||
annotations: | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
spec: | ||
serviceAccountName: test-dragonfly | ||
containers: | ||
- name: dragonfly | ||
image: "docker.dragonflydb.io/dragonflydb/dragonfly:v1.13.0" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: dragonfly | ||
containerPort: 6379 | ||
protocol: TCP | ||
livenessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- /usr/local/bin/healthcheck.sh | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
readinessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- /usr/local/bin/healthcheck.sh | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
args: | ||
- "--alsologtostderr" | ||
resources: | ||
limits: {} | ||
requests: {} | ||
|
||
env: | ||
- name: DFLY_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: dfly-password | ||
key: password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
image: | ||
tag: "v1.13.0" | ||
|
||
extraObjects: | ||
- apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: dfly-password | ||
stringData: | ||
password: foobar | ||
|
||
passwordFromSecret: | ||
enable: true | ||
existingSecret: | ||
name: dfly-password | ||
key: password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= | ||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= |