Skip to content

Commit

Permalink
fix: rename connection
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Aug 29, 2024
1 parent 8a2e3f6 commit 0d266c2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/ctrlplane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: ctrlplane
description: Ctrlplane Helm chart for Kubernetes
type: application
version: 0.1.10
version: 0.1.11
appVersion: "1.16.0"

maintainers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ spec:
- name: REDIS_URL
valueFrom:
secretKeyRef:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
key: REDIS_URL
- name: POSTGRES_URL
valueFrom:
secretKeyRef:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
key: POSTGRES_URL
{{- include "ctrlplane.extraEnv" . | nindent 12 }}
{{- include "ctrlplane.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- name: POSTGRES_URL
valueFrom:
secretKeyRef:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
key: POSTGRES_URL
{{- include "ctrlplane.extraEnv" . | nindent 16 }}
{{- include "ctrlplane.extraEnvFrom" (dict "root" $ "local" .) | nindent 16 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/ctrlplane/charts/migrations/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
- name: POSTGRES_URL
valueFrom:
secretKeyRef:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
key: POSTGRES_URL
{{- include "ctrlplane.extraEnv" . | nindent 12 }}
{{- include "ctrlplane.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/ctrlplane/charts/webservice/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ spec:
- name: REDIS_URL
valueFrom:
secretKeyRef:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
key: REDIS_URL
- name: POSTGRES_URL
valueFrom:
secretKeyRef:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
key: POSTGRES_URL
- name: AUTH_SECRET
valueFrom:
Expand Down
4 changes: 3 additions & 1 deletion charts/ctrlplane/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "ctrlplane.chart" . }}-connections
name: {{ .Release.Name }}-connections
labels:
{{- include "ctrlplane.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
data:
POSTGRES_URL: {{ include "ctrlplane.postgresqlUrl" . | b64enc }}
REDIS_URL: {{ include "ctrlplane.redisUrl" . | b64enc }}

0 comments on commit 0d266c2

Please sign in to comment.