diff --git a/helm/githubapp/templates/statefulset.yaml b/helm/githubapp/templates/statefulset.yaml index 9100f18..50a8c93 100644 --- a/helm/githubapp/templates/statefulset.yaml +++ b/helm/githubapp/templates/statefulset.yaml @@ -67,6 +67,18 @@ spec: name: {{ .Values.secrets.secretName }} key: WIRE_SDK_CRYPTOGRAPHY_STORAGE_PASSWORD {{- end }} + {{ - if .Values.redis }} + - name: GHAPP_REDIS_HOST + valueFrom: + secretKeyRef: + name: {{ .Values.redis.secretName }} + key: {{ .Values.redis.hostKey }} + - name: GHAPP_REDIS_PORT + valueFrom: + secretKeyRef: + name: {{ .Values.redis.secretName }} + key: {{ .Values.redis.portKey }} + {{ - end }} volumeMounts: - name: data mountPath: /opt/githubapp/storage diff --git a/helm/githubapp/values.yaml b/helm/githubapp/values.yaml index 1977c38..77e67db 100644 --- a/helm/githubapp/values.yaml +++ b/helm/githubapp/values.yaml @@ -29,6 +29,11 @@ secrets: secretName: "githubapp-secrets" mountPath: "/etc/secrets" +redis: + secretName: "githubapp-valkey-secrets" + hostKey: "host" + portKey: "port" + # Persistent storage configuration persistence: enabled: true @@ -66,10 +71,6 @@ env: value: "" - name: GHAPP_SERVER_PORT value: "" - - name: GHAPP_REDIS_HOST - value: "" - - name: GHAPP_REDIS_PORT - value: "" # Health check configuration (latest Kubernetes spec) livenessProbe: