From 92972b0353430344c7dc1b9f7abc152f08bdc4f2 Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Thu, 8 Mar 2018 18:22:32 -0800 Subject: [PATCH] fix typo in docs and fake --- docs/chart_tests.md | 2 +- pkg/helm/fake.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/chart_tests.md b/docs/chart_tests.md index 0d2ae3ee7..d1cfe5017 100644 --- a/docs/chart_tests.md +++ b/docs/chart_tests.md @@ -2,7 +2,7 @@ A chart contains a number of Kubernetes resources and components that work together. As a chart author, you may want to write some tests that validate that your chart works as expected when it is installed. These tests also help the chart consumer understand what your chart is supposed to do. -A **test** in a helm chart lives under the `templates/` directory and is a pod definition that specifies a container with a given command to run. The container should exit successfully (exit 0) for a test to be considered a success. The pod definition must contain one of the helm test hook annotations: `helm.sh/hooks: test-success` or `helm.sh/hooks: test-failure`. +A **test** in a helm chart lives under the `templates/` directory and is a pod definition that specifies a container with a given command to run. The container should exit successfully (exit 0) for a test to be considered a success. The pod definition must contain one of the helm test hook annotations: `helm.sh/hook: test-success` or `helm.sh/hook: test-failure`. Example tests: - Validate that your configuration from the values.yaml file was properly injected. diff --git a/pkg/helm/fake.go b/pkg/helm/fake.go index dbb488610..0a9e77c44 100644 --- a/pkg/helm/fake.go +++ b/pkg/helm/fake.go @@ -194,7 +194,7 @@ var MockHookTemplate = `apiVersion: v1 kind: Job metadata: annotations: - "helm.sh/hooks": pre-install + "helm.sh/hook": pre-install ` // MockManifest is the manifest used for all mock release objects.