Use Helm's built-in support for namespaces

Remove our non-standard namespace variable and use .Release.Namespace
to put fission deployments and services into.

(We still need the functionNamespace parameter, to customize what
namespace fission puts functions into.)
This commit is contained in:
Soam Vasani
2017-02-16 12:01:26 -08:00
parent 41baa7b6bf
commit d4dc166039
4 changed files with 16 additions and 18 deletions
-1
View File
@@ -35,7 +35,6 @@ The following table lists the configurable parameters of the Fission chart and t
| `imageTag` | Fission image tag | `alpha20170124` | | `imageTag` | Fission image tag | `alpha20170124` |
| `controllerPort` | Fission Controller Service Port | `31313` | | `controllerPort` | Fission Controller Service Port | `31313` |
| `routerPort` | Fission Router Service Port | `31314` | | `routerPort` | Fission Router Service Port | `31314` |
| `namespace` | Namespace for Fission deployments/services | `fission` |
| `functionNamespace` | Namespace for Fission functions | `fission-function` | | `functionNamespace` | Namespace for Fission functions | `fission-function` |
+8 -8
View File
@@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: {{ .Values.namespace }} name: {{ .Release.Namespace }}
labels: labels:
name: fission name: fission
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -20,7 +20,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: controller name: controller
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -41,7 +41,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: router name: router
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -62,7 +62,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: poolmgr name: poolmgr
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
svc: poolmgr svc: poolmgr
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -78,7 +78,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: poolmgr name: poolmgr
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -99,7 +99,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: kubewatcher name: kubewatcher
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
@@ -120,7 +120,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: etcd name: etcd
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
svc: etcd svc: etcd
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -136,7 +136,7 @@ apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
metadata: metadata:
name: etcd name: etcd
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec: spec:
+2 -2
View File
@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: router name: router
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
svc: router svc: router
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -20,7 +20,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: controller name: controller
namespace: {{ .Values.namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
svc: controller svc: controller
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+6 -7
View File
@@ -3,22 +3,21 @@
# #
## Kubernetes configuration ## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer ## For minikube, set this to NodePort, elsewhere use LoadBalancer.
##
serviceType: LoadBalancer serviceType: LoadBalancer
## Fission image repostiroy ## Fission image repostiroy
image: fission/fission-bundle image: fission/fission-bundle
## Fission image version ## Fission image version
imageTag: alpha20170124 imageTag: alpha20170124
## Port at which Fission controller service should be exposed ## Port at which Fission controller service should be exposed
controllerPort: 31313 controllerPort: 31313
## Port at which Fission controller service should be exposed
## Port at which Fission router service should be exposed
routerPort: 31314 routerPort: 31314
## Namespace in which to run fission deployments and services ## Namespace in which to run fission functions (this is different from
fissionNamespace: fission ## the release namespace)
## Namespace in which to run fission functions
fissionFunctionNamespace: fission-function fissionFunctionNamespace: fission-function