Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Moved to kustomize based conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Feb 25, 2021
1 parent be165df commit 3b27618
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ k8s-undeploy-theia: requires-k8s ## Undeploy all theia pods and services from ku
kubectl delete pods,services -l app.kubernetes.io/component=theia --namespace=${NAMESPACE}

k8s-update-templates-config: requires-k8s ## Creates or replaces the `templates` config map from `conf/k8s/overlays/ENV/templates`
kubectl create configmap playground-templates --namespace=${NAMESPACE} --from-file=conf/k8s/overlays/${ENV}/templates/ --dry-run=client -o yaml | kubectl apply -f -
kustomize build --load-restrictor LoadRestrictionsNone conf/k8s/overlays/${ENV}/templates/ | kubectl apply -f -

k8s-update-users-config: requires-k8s ## Creates or replaces the `users` config map from `conf/k8s/overlays/ENV/users`
kubectl create configmap playground-users --namespace=${NAMESPACE} --from-file=conf/k8s/overlays/${ENV}/users/ --dry-run=client -o yaml | kubectl apply -f -
Expand Down
10 changes: 10 additions & 0 deletions conf/k8s/overlays/berkeley-sp21/templates/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: playground-templates
files:
- ../../../../templates/node-template
1 change: 0 additions & 1 deletion conf/k8s/overlays/berkeley-sp21/templates/node-template

This file was deleted.

1 change: 0 additions & 1 deletion conf/k8s/overlays/industry-connect/templates/assignement

This file was deleted.

10 changes: 10 additions & 0 deletions conf/k8s/overlays/industry-connect/templates/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: playground-templates
files:
- ../../../../templates/assignement
11 changes: 11 additions & 0 deletions conf/k8s/overlays/production/templates/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: playground-templates
files:
- ../../../../templates/node-template
- ../../../../templates/recipes
1 change: 0 additions & 1 deletion conf/k8s/overlays/production/templates/node-template

This file was deleted.

1 change: 0 additions & 1 deletion conf/k8s/overlays/production/templates/recipes

This file was deleted.

12 changes: 12 additions & 0 deletions conf/k8s/overlays/staging/templates/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: playground-templates
files:
- ../../../../templates/node-template
- ../../../../templates/recipes
- ../../../../templates/substrate
1 change: 0 additions & 1 deletion conf/k8s/overlays/staging/templates/node-template

This file was deleted.

1 change: 0 additions & 1 deletion conf/k8s/overlays/staging/templates/recipes

This file was deleted.

1 change: 0 additions & 1 deletion conf/k8s/overlays/staging/templates/substrate

This file was deleted.

0 comments on commit 3b27618

Please sign in to comment.