From 01529001caf3f4aa7105d7537f1cf36f522cde8e Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Thu, 18 Aug 2016 11:13:40 -0700 Subject: [PATCH] simplify example container names This encourages people from making container names depend on release names. --- docs/charts.md | 2 +- docs/examples/nginx/templates/deployment.yaml | 2 +- docs/examples/nginx/templates/post-install-job.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/charts.md b/docs/charts.md index 03eecba04..810d85872 100644 --- a/docs/charts.md +++ b/docs/charts.md @@ -483,7 +483,7 @@ spec: spec: restartPolicy: Never containers: - - name: {{template "fullname" .}}-job + - name: post-install-job image: "alpine:3.3" command: ["/bin/sleep","{{default "10" .Values.sleepyTime}}"] diff --git a/docs/examples/nginx/templates/deployment.yaml b/docs/examples/nginx/templates/deployment.yaml index 1443a5136..a65600e10 100644 --- a/docs/examples/nginx/templates/deployment.yaml +++ b/docs/examples/nginx/templates/deployment.yaml @@ -23,7 +23,7 @@ spec: release: {{.Release.Name | quote }} spec: containers: - - name: {{template "fullname" .}} + - name: nginx # Making image configurable is not necessary. Making imageTag configurable # is a nice option for the user. Especially in the strange cases like # nginx where the base distro is determined by the tag. Using :latest diff --git a/docs/examples/nginx/templates/post-install-job.yaml b/docs/examples/nginx/templates/post-install-job.yaml index 7a21b2408..a2281a8f5 100644 --- a/docs/examples/nginx/templates/post-install-job.yaml +++ b/docs/examples/nginx/templates/post-install-job.yaml @@ -25,7 +25,7 @@ spec: # more conventional syntax: {{.restartPolicy | default "Never"}} restartPolicy: Never containers: - - name: {{template "fullname" .}}-job + - name: post-install-job image: "alpine:3.3" # All we're going to do is sleep for a minute, then exit. command: ["/bin/sleep","{{default "10" .Values.sleepyTime}}"]