Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions incubator/etcd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: etcd
home: https://github.com/coreos/etcd
version: 0.2.2
description: Distributed reliable key-value store for the most critical data of a distributed system.
version: 0.3.2
description: Distributed reliable key-value store for the most critical data of a
distributed system.
icon: https://raw.githubusercontent.com/coreos/etcd/master/logos/etcd-horizontal-color.png
sources:
- https://github.com/coreos/etcd
- https://github.com/coreos/etcd
maintainers:
- name: Lachlan Evenson
email: [email protected]
- name: Lachlan Evenson
email: [email protected]
2 changes: 1 addition & 1 deletion incubator/etcd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Create a default fully qualified app name.
We truncate at 64 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- define "etcd.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
12 changes: 6 additions & 6 deletions incubator/etcd/templates/etcd-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
metadata:
name: {{ template "fullname" . }}
name: {{ template "etcd.fullname" . }}
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
Expand All @@ -23,18 +23,18 @@ spec:
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: {{ template "fullname" . }}
name: {{ template "etcd.fullname" . }}
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
spec:
serviceName: {{ template "fullname" . }}
serviceName: {{ template "etcd.fullname" . }}
replicas: {{ default 3 .Values.Replicas }}
template:
metadata:
name: {{ template "fullname" . }}
name: {{ template "etcd.fullname" . }}
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
Expand All @@ -44,7 +44,7 @@ spec:
pod.alpha.kubernetes.io/initialized: "true"
spec:
containers:
- name: {{ template "fullname" . }}
- name: {{ template "etcd.fullname" . }}
image: "{{ .Values.Image }}:{{ .Values.ImageTag }}"
imagePullPolicy: "{{ .Values.ImagePullPolicy }}"
ports:
Expand All @@ -60,7 +60,7 @@ spec:
- name: INITIAL_CLUSTER_SIZE
value: {{ default 3 .Values.Replicas | quote }}
- name: SET_NAME
value: {{ template "fullname" . }}
value: {{ template "etcd.fullname" . }}
volumeMounts:
- name: datadir
mountPath: /var/run/etcd
Expand Down