Skip to content

Commit

Permalink
Support annotations for etcdCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanying committed May 7, 2018
1 parent 6b40e62 commit ddc10d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions templates/etcd-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ apiVersion: "etcd.database.coreos.com/v1beta2"
kind: "EtcdCluster"
metadata:
name: {{ template "kubernetes.fullname" . }}-etcd
# Adding this annotation make this cluster managed by clusterwide operators
# namespaced operators ignore it
labels:
app: {{ template "kubernetes.name" . }}-etcd
chart: {{ template "kubernetes.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.etcdCluster.annotations }}
annotations:
etcd.database.coreos.com/scope: clusterwide
{{ toYaml . | indent 4 }}
{{- end }}
spec:
size: {{ .Values.etcdCluster.replicaCount }}
version: {{ .Values.etcdCluster.version }}
4 changes: 3 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ image:
pullPolicy: IfNotPresent

etcdCluster:
replicaCount: 1
size: 1
version: "3.2.13"
annotations: {}
# etcd.database.coreos.com/scope: clusterwide

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit ddc10d0

Please sign in to comment.