Skip to content

chore: update kustomize #7203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kustomize/auth/.env.secret
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# PHOENIX_SECRET=your-secret-here
16 changes: 11 additions & 5 deletions kustomize/auth/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
bases:
- ../../base

patchesStrategicMerge:
- patches.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
patches:
- path: patches.yaml
secretGenerator:
- envs:
- .env.secret
name: phoenix-secret
type: Opaque
13 changes: 4 additions & 9 deletions kustomize/auth/patches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ spec:
env:
- name: PHOENIX_ENABLE_AUTH
value: "true"
# When enabling Auth, you must provide a secret
# For example, set a Kubernetes Secret with:
# kubectl create secret generic phoenix-secret --from-literal=secret-key='[YOUR-SECRET]'
# then use
# valueFrom:
# secretKeyRef:
# name: phoenix-secret
# key: secret-key
- name: PHOENIX_SECRET
value: "3413f9a7735bb780c6b8e4db7d946a492b64d26112a955cdea6a797f4c833593"
valueFrom:
secretKeyRef:
name: phoenix-secret
key: PHOENIX_SECRET
13 changes: 6 additions & 7 deletions kustomize/backends/postgres/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
bases:
- ../../base

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- postgres.yaml

patchesStrategicMerge:
- patches.yaml
- postgres.yaml
- ../../base
patches:
- path: patches.yaml
4 changes: 3 additions & 1 deletion kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- phoenix.yaml
- phoenix.yaml