Skip to content

Commit

Permalink
proxy: Pass controlplane token as secret
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneable committed Aug 19, 2024
1 parent 20ac05a commit b52f964
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/neon-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: neon-proxy
description: Neon Proxy
type: application
version: 1.7.27
version: 1.7.28
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://neon.tech
Expand Down
2 changes: 1 addition & 1 deletion charts/neon-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# neon-proxy

![Version: 1.7.27](https://img.shields.io/badge/Version-1.7.27-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)
![Version: 1.7.28](https://img.shields.io/badge/Version-1.7.28-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)

Neon Proxy

Expand Down
9 changes: 5 additions & 4 deletions charts/neon-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ spec:
{{- with .Values.settings.awsRegion }}
- --aws-region={{ . }}
{{ end }}


{{- if .Values.settings }}
env:
Expand All @@ -211,10 +211,11 @@ spec:
- name: SENTRY_ENVIRONMENT
value: {{ . }}
{{- end }}
{{- with .Values.settings.controlplane_token }}
- name: NEON_PROXY_TO_CONTROLPLANE_TOKEN
value: {{ . }}
{{- end }}
valueFrom:
secretKeyRef:
name: {{ include "neon-proxy.fullname" . }}-controlplane-token
key: controlplane_token
{{- with .Values.settings.awsAccessKeyId }}
- name: AWS_ACCESS_KEY_ID
value: {{ . }}
Expand Down
9 changes: 9 additions & 0 deletions charts/neon-proxy/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "neon-proxy.fullname" . }}-cplane-token
labels:
{{- include "neon-proxy.labels" . | nindent 4 }}
type: Opaque
data:
controlplane_token: {{ .Values.settings.controlplane_token | b64enc | quote }}

0 comments on commit b52f964

Please sign in to comment.