From c0915aba331236f9fd400675389cc7b0bdc16544 Mon Sep 17 00:00:00 2001 From: Alexander Buntakov Date: Tue, 1 Jun 2021 17:33:13 +0300 Subject: [PATCH] add touchin docs starter --- .../{touch-docs => touchin-docs}/.helmignore | 0 .../{touch-docs => touchin-docs}/Chart.yaml | 0 .../templates/NOTES.txt | 0 .../templates/_helpers.tpl | 27 ------------------- .../templates/deployment.yaml | 1 - .../templates/hpa.yaml | 0 .../templates/ingress.yaml | 0 .../templates/service.yaml | 0 .../templates/serviceaccount.yaml | 0 .../{touch-docs => touchin-docs}/values.yaml | 0 .../.helmignore | 0 .../Chart.yaml | 0 .../templates/NOTES.txt | 0 .../templates/_helpers.tpl | 0 .../templates/deployment.yaml | 0 .../templates/hpa.yaml | 0 .../templates/ingress.yaml | 0 .../templates/service.yaml | 0 .../templates/serviceaccount.yaml | 0 .../values.yaml | 0 20 files changed, 28 deletions(-) rename starters/{touch-docs => touchin-docs}/.helmignore (100%) rename starters/{touch-docs => touchin-docs}/Chart.yaml (100%) rename starters/{touch-docs => touchin-docs}/templates/NOTES.txt (100%) rename starters/{touch-server => touchin-docs}/templates/_helpers.tpl (73%) rename starters/{touch-docs => touchin-docs}/templates/deployment.yaml (97%) rename starters/{touch-docs => touchin-docs}/templates/hpa.yaml (100%) rename starters/{touch-docs => touchin-docs}/templates/ingress.yaml (100%) rename starters/{touch-docs => touchin-docs}/templates/service.yaml (100%) rename starters/{touch-docs => touchin-docs}/templates/serviceaccount.yaml (100%) rename starters/{touch-docs => touchin-docs}/values.yaml (100%) rename starters/{touch-server => touchin-server}/.helmignore (100%) rename starters/{touch-server => touchin-server}/Chart.yaml (100%) rename starters/{touch-server => touchin-server}/templates/NOTES.txt (100%) rename starters/{touch-docs => touchin-server}/templates/_helpers.tpl (100%) rename starters/{touch-server => touchin-server}/templates/deployment.yaml (100%) rename starters/{touch-server => touchin-server}/templates/hpa.yaml (100%) rename starters/{touch-server => touchin-server}/templates/ingress.yaml (100%) rename starters/{touch-server => touchin-server}/templates/service.yaml (100%) rename starters/{touch-server => touchin-server}/templates/serviceaccount.yaml (100%) rename starters/{touch-server => touchin-server}/values.yaml (100%) diff --git a/starters/touch-docs/.helmignore b/starters/touchin-docs/.helmignore similarity index 100% rename from starters/touch-docs/.helmignore rename to starters/touchin-docs/.helmignore diff --git a/starters/touch-docs/Chart.yaml b/starters/touchin-docs/Chart.yaml similarity index 100% rename from starters/touch-docs/Chart.yaml rename to starters/touchin-docs/Chart.yaml diff --git a/starters/touch-docs/templates/NOTES.txt b/starters/touchin-docs/templates/NOTES.txt similarity index 100% rename from starters/touch-docs/templates/NOTES.txt rename to starters/touchin-docs/templates/NOTES.txt diff --git a/starters/touch-server/templates/_helpers.tpl b/starters/touchin-docs/templates/_helpers.tpl similarity index 73% rename from starters/touch-server/templates/_helpers.tpl rename to starters/touchin-docs/templates/_helpers.tpl index 654464e..039985f 100644 --- a/starters/touch-server/templates/_helpers.tpl +++ b/starters/touchin-docs/templates/_helpers.tpl @@ -57,10 +57,6 @@ app.kubernetes.io/releaseName: {{ .Values.releaseName }} {{- if .Values.component }} app.kubernetes.io/component: {{ .Values.component }} {{- end }} -{{- if and .Values.db .Values.db.platform }} -app.kubernetes.io/database: {{ .Values.db.platform.name }} -app.kubernetes.io/database/version: {{ .Values.db.platform.version | quote }} -{{- end }} {{- end }} {{/* @@ -74,26 +70,3 @@ Create the name of the service account to use {{- end }} {{- end }} -{{/* -Create db environments -*/}} -{{- define ".db.environments" -}} -{{- if eq .Values.db.platform.name "postgres" }} -- name: PGPASSWORD - valueFrom: - secretKeyRef: - name: "postgres{{ .Values.db.platform.version }}-postgresql" - key: postgres-password -- name: PGHOST - value: "postgres{{ .Values.db.platform.version }}" -- name: PGUSER - value: "postgres" -{{- end }} -{{- end }} - -{{/* -Get db name -*/}} -{{- define ".db.name" -}} -{{ .Values.db.name }}{{- if .Values.releaseName}}--{{ .Values.releaseName }}{{- end }} -{{- end }} diff --git a/starters/touch-docs/templates/deployment.yaml b/starters/touchin-docs/templates/deployment.yaml similarity index 97% rename from starters/touch-docs/templates/deployment.yaml rename to starters/touchin-docs/templates/deployment.yaml index b5cb22f..053fcb7 100644 --- a/starters/touch-docs/templates/deployment.yaml +++ b/starters/touchin-docs/templates/deployment.yaml @@ -1,4 +1,3 @@ -{{- $dbName := include ".db.name" . -}} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/starters/touch-docs/templates/hpa.yaml b/starters/touchin-docs/templates/hpa.yaml similarity index 100% rename from starters/touch-docs/templates/hpa.yaml rename to starters/touchin-docs/templates/hpa.yaml diff --git a/starters/touch-docs/templates/ingress.yaml b/starters/touchin-docs/templates/ingress.yaml similarity index 100% rename from starters/touch-docs/templates/ingress.yaml rename to starters/touchin-docs/templates/ingress.yaml diff --git a/starters/touch-docs/templates/service.yaml b/starters/touchin-docs/templates/service.yaml similarity index 100% rename from starters/touch-docs/templates/service.yaml rename to starters/touchin-docs/templates/service.yaml diff --git a/starters/touch-docs/templates/serviceaccount.yaml b/starters/touchin-docs/templates/serviceaccount.yaml similarity index 100% rename from starters/touch-docs/templates/serviceaccount.yaml rename to starters/touchin-docs/templates/serviceaccount.yaml diff --git a/starters/touch-docs/values.yaml b/starters/touchin-docs/values.yaml similarity index 100% rename from starters/touch-docs/values.yaml rename to starters/touchin-docs/values.yaml diff --git a/starters/touch-server/.helmignore b/starters/touchin-server/.helmignore similarity index 100% rename from starters/touch-server/.helmignore rename to starters/touchin-server/.helmignore diff --git a/starters/touch-server/Chart.yaml b/starters/touchin-server/Chart.yaml similarity index 100% rename from starters/touch-server/Chart.yaml rename to starters/touchin-server/Chart.yaml diff --git a/starters/touch-server/templates/NOTES.txt b/starters/touchin-server/templates/NOTES.txt similarity index 100% rename from starters/touch-server/templates/NOTES.txt rename to starters/touchin-server/templates/NOTES.txt diff --git a/starters/touch-docs/templates/_helpers.tpl b/starters/touchin-server/templates/_helpers.tpl similarity index 100% rename from starters/touch-docs/templates/_helpers.tpl rename to starters/touchin-server/templates/_helpers.tpl diff --git a/starters/touch-server/templates/deployment.yaml b/starters/touchin-server/templates/deployment.yaml similarity index 100% rename from starters/touch-server/templates/deployment.yaml rename to starters/touchin-server/templates/deployment.yaml diff --git a/starters/touch-server/templates/hpa.yaml b/starters/touchin-server/templates/hpa.yaml similarity index 100% rename from starters/touch-server/templates/hpa.yaml rename to starters/touchin-server/templates/hpa.yaml diff --git a/starters/touch-server/templates/ingress.yaml b/starters/touchin-server/templates/ingress.yaml similarity index 100% rename from starters/touch-server/templates/ingress.yaml rename to starters/touchin-server/templates/ingress.yaml diff --git a/starters/touch-server/templates/service.yaml b/starters/touchin-server/templates/service.yaml similarity index 100% rename from starters/touch-server/templates/service.yaml rename to starters/touchin-server/templates/service.yaml diff --git a/starters/touch-server/templates/serviceaccount.yaml b/starters/touchin-server/templates/serviceaccount.yaml similarity index 100% rename from starters/touch-server/templates/serviceaccount.yaml rename to starters/touchin-server/templates/serviceaccount.yaml diff --git a/starters/touch-server/values.yaml b/starters/touchin-server/values.yaml similarity index 100% rename from starters/touch-server/values.yaml rename to starters/touchin-server/values.yaml