Create a namespace withing a chart
This commit is contained in:
		@@ -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"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								chart/templates/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								chart/templates/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					{{- if .Values.istio.enabled -}}
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: {{ .Values.namespace.name }}
 | 
				
			||||||
 | 
					{{- end }}
 | 
				
			||||||
@@ -1,5 +1,9 @@
 | 
				
			|||||||
replicaCount: 1
 | 
					replicaCount: 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: 
 | 
				
			||||||
 | 
					  enabled: true
 | 
				
			||||||
 | 
					  name: badhouseplants-application
 | 
				
			||||||
 | 
					
 | 
				
			||||||
nginx: 
 | 
					nginx: 
 | 
				
			||||||
  container:
 | 
					  container:
 | 
				
			||||||
    name: nginx
 | 
					    name: nginx
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user