diff --git a/blue-green/Chart.yaml b/blue-green/Chart.yaml index 6fac831..7aef0a0 100644 --- a/blue-green/Chart.yaml +++ b/blue-green/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -name: helm-guestbook -description: A Helm chart for Kubernetes +name: argotest +description: A test service for argocd # A chart can be either an 'application' or a 'library' chart. # diff --git a/blue-green/templates/_helpers.tpl b/blue-green/templates/_helpers.tpl index 20f5d8e..15bd8f7 100644 --- a/blue-green/templates/_helpers.tpl +++ b/blue-green/templates/_helpers.tpl @@ -2,7 +2,7 @@ {{/* Expand the name of the chart. */}} -{{- define "helm-guestbook.name" -}} +{{- define "argotest.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -11,7 +11,7 @@ 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). If release name contains chart name it will be used as a full name. */}} -{{- define "helm-guestbook.fullname" -}} +{{- define "argotest.fullname" -}} {{- if .Values.fullnameOverride -}} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} {{- else -}} @@ -27,6 +27,6 @@ If release name contains chart name it will be used as a full name. {{/* Create chart name and version as used by the chart label. */}} -{{- define "helm-guestbook.chart" -}} +{{- define "argotest.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} diff --git a/blue-green/templates/services.yaml b/blue-green/templates/services.yaml index 0f4d0e0..113b588 100644 --- a/blue-green/templates/services.yaml +++ b/blue-green/templates/services.yaml @@ -2,10 +2,10 @@ apiVersion: v1 kind: Service metadata: - name: {{ template "helm-guestbook.fullname" . }} + name: {{ template "argotest.fullname" . }} labels: - app: {{ template "helm-guestbook.name" . }} - chart: {{ template "helm-guestbook.chart" . }} + app: {{ template "argotest.name" . }} + chart: {{ template "argotest.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: @@ -16,16 +16,16 @@ spec: protocol: TCP name: http selector: - app: {{ template "helm-guestbook.name" . }} + app: {{ template "argotest.name" . }} release: {{ .Release.Name }} --- apiVersion: v1 kind: Service metadata: - name: {{ template "helm-guestbook.fullname" . }}-preview + name: {{ template "argotest.fullname" . }}-preview labels: - app: {{ template "helm-guestbook.name" . }} - chart: {{ template "helm-guestbook.chart" . }} + app: {{ template "argotest.name" . }} + chart: {{ template "argotest.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: @@ -36,5 +36,5 @@ spec: protocol: TCP name: http selector: - app: {{ template "helm-guestbook.name" . }} + app: {{ template "argotest.name" . }} release: {{ .Release.Name }} diff --git a/blue-green/values.yaml b/blue-green/values.yaml index 3666712..7efc049 100644 --- a/blue-green/values.yaml +++ b/blue-green/values.yaml @@ -5,8 +5,8 @@ replicaCount: 1 image: - repository: gcr.io/heptio-images/ks-guestbook-demo - tag: 0.1 + repository: teddykim612/argotest + tag: 0.0.1 pullPolicy: IfNotPresent service: