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
12 changes: 7 additions & 5 deletions stable/consul/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: consul
home: https://github.com/hashicorp/consul
version: 1.0.0
version: 1.1.0
appVersion: 1.0.0
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
description: Highly available and distributed service discovery and key-value store
designed with support for the modern data center to make distributed systems and
configuration easy.
icon: https://raw.githubusercontent.com/hashicorp/consul/bce3809dfca37b883828c3715b84143dd71c0f85/website/source/assets/images/favicons/android-chrome-512x512.png
sources:
- https://github.com/kelseyhightower/consul-on-kubernetes
- https://github.com/kelseyhightower/consul-on-kubernetes
maintainers:
- name: lachie83
email: [email protected]
- name: lachie83
email: [email protected]
4 changes: 2 additions & 2 deletions stable/consul/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- define "consul.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- define "consul.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
2 changes: 1 addition & 1 deletion stable/consul/templates/consul-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
volumes:
- name: tests
configMap:
name: {{ template "fullname" . }}-tests
name: {{ template "consul.fullname" . }}-tests
- name: tools
emptyDir: {}
restartPolicy: Never
20 changes: 10 additions & 10 deletions stable/consul/templates/consul.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ template "fullname" . }}-gossip-key
name: {{ template "consul.fullname" . }}-gossip-key
type: Opaque
data:
gossip-key: {{ randAlphaNum 24 | b64enc }}
Expand All @@ -10,7 +10,7 @@ data:
apiVersion: v1
kind: Service
metadata:
name: "{{ template "fullname" . }}-ui"
name: "{{ template "consul.fullname" . }}-ui"
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
Expand All @@ -29,7 +29,7 @@ spec:
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: "{{ template "fullname" . }}-pdb"
name: "{{ template "consul.fullname" . }}-pdb"
spec:
maxUnavailable: {{ .Values.maxUnavailable }}
selector:
Expand All @@ -40,7 +40,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: "{{ template "fullname" . }}"
name: "{{ template "consul.fullname" . }}"
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
Expand Down Expand Up @@ -80,20 +80,20 @@ spec:
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: "{{ template "fullname" . }}"
name: "{{ template "consul.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 "consul.fullname" . }}"
replicas: {{ default 3 .Values.Replicas }}
updateStrategy:
type: RollingUpdate
template:
metadata:
name: "{{ template "fullname" . }}"
name: "{{ template "consul.fullname" . }}"
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
Expand Down Expand Up @@ -128,7 +128,7 @@ spec:
- "{{ .Release.Name }}-{{ .Values.Component }}"
{{- end }}
containers:
- name: "{{ template "fullname" . }}"
- name: "{{ template "consul.fullname" . }}"
image: "{{ .Values.Image }}:{{ .Values.ImageTag }}"
imagePullPolicy: "{{ .Values.ImagePullPolicy }}"
ports:
Expand Down Expand Up @@ -161,7 +161,7 @@ spec:
- name: INITIAL_CLUSTER_SIZE
value: {{ default 3 .Values.Replicas | quote }}
- name: STATEFULSET_NAME
value: "{{ template "fullname" . }}"
value: "{{ template "consul.fullname" . }}"
- name: POD_IP
valueFrom:
fieldRef:
Expand Down Expand Up @@ -235,7 +235,7 @@ spec:
volumes:
- name: gossip-key
secret:
secretName: {{ template "fullname" . }}-gossip-key
secretName: {{ template "consul.fullname" . }}-gossip-key
volumeClaimTemplates:
- metadata:
name: datadir
Expand Down
2 changes: 1 addition & 1 deletion stable/consul/templates/test-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "fullname" . }}-tests
name: {{ template "consul.fullname" . }}-tests
data:
run.sh: |-
@test "Testing Consul cluster has quorum" {
Expand Down