diff --git a/charts/weave-flux/README.md b/charts/weave-flux/README.md index f705bf0..29679a7 100755 --- a/charts/weave-flux/README.md +++ b/charts/weave-flux/README.md @@ -88,6 +88,7 @@ The following tables lists the configurable parameters of the Weave Flux chart a | `helmOperator.repository` | Helm operator image repository | `quay.io/weaveworks/helm-operator` | `helmOperator.tag` | Helm operator image tag | `master-6f427cb` | `helmOperator.pullPolicy` | Helm operator image pull policy | `IfNotPresent` +| `token` | Weave Cloud service token | None Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example: diff --git a/charts/weave-flux/templates/deployment.yaml b/charts/weave-flux/templates/deployment.yaml index 07deabb..a48c6e1 100644 --- a/charts/weave-flux/templates/deployment.yaml +++ b/charts/weave-flux/templates/deployment.yaml @@ -53,6 +53,10 @@ spec: - --git-path={{ .Values.git.path }} - --git-user={{ .Values.git.user }} - --git-email={{ .Values.git.email }} + {{- if .Values.token }} + - --connect=wss://cloud.weave.works/api/flux + - --token={{ .Values.token }} + {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/weave-flux/values.yaml b/charts/weave-flux/values.yaml index 6bb5196..999fe37 100644 --- a/charts/weave-flux/values.yaml +++ b/charts/weave-flux/values.yaml @@ -1,5 +1,8 @@ # Default values for weave-flux. +# Weave Cloud service token +token: "" + replicaCount: 1 image: