Create a namespace withing a chart

This commit is contained in:
Nikolai Rodionov 2023-02-25 21:01:16 +01:00
parent 84305e1e0e
commit fc92125a03
4 changed files with 12 additions and 1 deletions

View File

@ -2,5 +2,5 @@ apiVersion: v2
name: badhouseplants-net name: badhouseplants-net
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
type: application type: application
version: 0.3.6 version: 0.3.7
appVersion: "1.16.0" appVersion: "1.16.0"

View File

@ -0,0 +1,6 @@
{{- if .Values.istio.enabled -}}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.namespace.name }}
{{- end }}

View File

@ -1,5 +1,9 @@
replicaCount: 1 replicaCount: 1
namespace:
enabled: true
name: badhouseplants-application
nginx: nginx:
container: container:
name: nginx name: nginx

View File

@ -3,6 +3,7 @@
branch: $ARGO_APP_BRANCH branch: $ARGO_APP_BRANCH
chart_version: $ARGO_APP_CHART_VERSION chart_version: $ARGO_APP_CHART_VERSION
value: | value: |
namespace: badhouseplants-$ARGO_APP_BRANCH
istio: istio:
hosts: hosts:
- $ARGO_APP_HOSTNAME - $ARGO_APP_HOSTNAME