Skip to content

Commit 1e74134

Browse files
committed
chore(charts): use condition
1 parent 49bb439 commit 1e74134

6 files changed

Lines changed: 2 additions & 19 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if eq .Values.global.valkeyLocation "on-cluster" }}
21
apiVersion: v1
32
kind: Secret
43
metadata:
@@ -8,4 +7,3 @@ metadata:
87
heritage: drycc
98
data:
109
password: {{ include "common.secrets.lookup" (dict "secret" "valkey-creds" "key" "password" "defaultValue" (randAlphaNum 32) "context" $) }}
11-
{{- end }}

charts/valkey/templates/valkey-statefulset.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if eq .Values.global.valkeyLocation "on-cluster" }}
21
apiVersion: apps/v1
32
kind: StatefulSet
43
metadata:
@@ -251,4 +250,3 @@ spec:
251250
requests:
252251
storage: {{ .Values.persistence.size | quote }}
253252
{{- end }}
254-
{{- end }}

charts/valkey/templates/valkey-svc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if eq .Values.global.valkeyLocation "on-cluster" }}
21
apiVersion: v1
32
kind: Service
43
metadata:
@@ -27,4 +26,3 @@ spec:
2726
protocol: TCP
2827
selector:
2928
app: drycc-valkey
30-
{{- end }}

charts/valkey/values.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ podAntiAffinityPreset:
3939
# The following parameters are configured only when using an on-cluster Valkey instance
4040
replicas: 3
4141

42-
# The following parameters are configured only when using an off-cluster Valkey instance
43-
addrs: "" # A list of clusters: "127.0.0.1:7001/1,127.0.0.2:7002/1"
44-
password: "valkey password" # "" == no password
45-
4642
# Service
4743
service:
4844
# Provide any additional service annotations
@@ -60,10 +56,3 @@ global:
6056
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
6157
# It must start and end with a lowercase letter or digit.
6258
clusterDomain: "cluster.local"
63-
# Set the location of Workflow's valkey instance
64-
#
65-
# Valid values are:
66-
# - on-cluster: Run Valkey within the Kubernetes cluster
67-
# - off-cluster: Run Valkey outside the Kubernetes cluster (configure in valkey section)
68-
valkeyLocation: "on-cluster"
69-

rootfs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM registry.drycc.cc/drycc/base:${CODENAME}
44
ENV DRYCC_UID=1001 \
55
DRYCC_GID=1001 \
66
DRYCC_HOME_DIR=/data \
7-
VALKEY_VERSION="8.1.0" \
7+
VALKEY_VERSION="8.1.1" \
88
VALKEY_SENTINEL_PROXY_VERSION="1.0.2"
99

1010
RUN groupadd drycc --gid ${DRYCC_GID} \

rootfs/bin/valkey-start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ start_valkey_sentinel() {
9898
else
9999
printf "\nsentinel monitor drycc %s %s 2" "${announce_ip}" "${SERVER_PORT}" >> ${VALKEY_SENTINEL_CONFIG_FILE}
100100
fi
101-
exec valkey-sentinel $VALKEY_SENTINEL_CONFIG_FILE
101+
exec valkey-server $VALKEY_SENTINEL_CONFIG_FILE --sentinel
102102
}
103103

104104
command="$1"

0 commit comments

Comments
 (0)