Skip to content

Commit

Permalink
Moving secret generation back to the base kustomization file
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Oct 19, 2023
1 parent 02b6a33 commit 124d63e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions k8s/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

secretGenerator:
- name: trident-credentials
namespace: #{Project.K8s.Namespace}
literals:
- connectionstring="#{Project.Connection.String}"

resources:
- trident-deployment.yaml
- trident-app-cluster-ip-service.yaml
Expand Down
6 changes: 0 additions & 6 deletions k8s/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ kind: Kustomization
resources:
- ../../base

secretGenerator:
- name: trident-credentials
namespace: development
literals:
- connectionstring="#{Project.Connection.String}"

patches:
- target:
kind: Deployment
Expand Down
6 changes: 0 additions & 6 deletions k8s/overlays/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ kind: Kustomization
resources:
- ../../base

secretGenerator:
- name: trident-credentials
namespace: production
literals:
- connectionstring="#{Project.Connection.String}"

patches:
- target:
kind: Deployment
Expand Down
6 changes: 0 additions & 6 deletions k8s/overlays/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ kind: Kustomization
resources:
- ../../base

secretGenerator:
- name: trident-credentials
namespace: staging
literals:
- connectionstring="#{Project.Connection.String}"

patches:
- target:
kind: Deployment
Expand Down
6 changes: 0 additions & 6 deletions k8s/overlays/test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ kind: Kustomization
resources:
- ../../base

secretGenerator:
- name: trident-credentials
namespace: test
literals:
- connectionstring="#{Project.Connection.String}"

patches:
- target:
kind: Deployment
Expand Down

0 comments on commit 124d63e

Please sign in to comment.