Repository: FairwindsOps/pluto (go)

Issue:
Error message shows wrong flag
```
└─ ./pluto detect-helm --helm-version 2
APIVersions were found, but none were deprecated. Try --show-non-deprecated.
```

Pull request:
Add e2e testing for helm 2. Remove ref to --show-non-deprecated. Add helm2 to readme.
Fixes #28 - Remove ref to --show-non-deprecated.

Patch:
diff --git a/README.md b/README.md
index aeae19d..dc0cf98 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,15 @@ StatefulSet   apps/v1beta1   true         audit-dashboard-prod-rabbitmq-ha
 
 This indicates that the StatefulSet audit-dashboard-prod-rabbitmq-ha was deployed with apps/v1beta1 which is deprecated in 1.16
 
+You can also use Pluto with helm 2:
+
+```
+$ pluto detect-helm --helm-version=2 -A
+KIND         VERSION              DEPRECATED   RESOURCE NAME
+Deployment   extensions/v1beta1   true         invincible-zebu-metrics-server
+Deployment   apps/v1              false        lunging-bat-metrics-server
+```
+
 ### Helm Chart Checking (local files)
 
 You can run `helm template <chart-dir> | pluto detect --show-all -`
diff --git a/pkg/api/output.go b/pkg/api/output.go
index 0532aba..7bd5084 100644
--- a/pkg/api/output.go
+++ b/pkg/api/output.go
@@ -61,7 +61,7 @@ func tabOut(outputs []*Output, showNonDeprecated bool) (*tabwriter.Writer, error
 		}
 	}
 	if len(usableOutputs) == 0 {
-		_, err := fmt.Fprintln(w, "APIVersions were found, but none were deprecated. Try --show-non-deprecated.")
+		_, err := fmt.Fprintln(w, "APIVersions were found, but none were deprecated. Try --show-all.")
 		if err != nil {
 			return nil, err
 		}


Test patch:
diff --git a/e2e/tests/00_static_files.yaml b/e2e/tests/00_static_files.yaml
index 9d3c3c0..92f0595 100644
--- a/e2e/tests/00_static_files.yaml
+++ b/e2e/tests/00_static_files.yaml
@@ -21,18 +21,18 @@ testcases:
 
 - name: helm template show all
   steps:
-  - script: helm template assets/helmchartest | pluto detect -A -
+  - script: helm template assets/helm3chart | pluto detect -A -
     assertions:
     - result.code ShouldEqual 0
     - result.systemout ShouldContainSubstring "KIND         VERSION              DEPRECATED   RESOURCE NAME"
-    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         RELEASE-NAME-helmchartest"
-    - result.systemout ShouldContainSubstring "Deployment   apps/v1              false        RELEASE-NAME-helmchartest"
+    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         RELEASE-NAME-helm3chart"
+    - result.systemout ShouldContainSubstring "Deployment   apps/v1              false        RELEASE-NAME-helm3chart"
 
 - name: helm template
   steps:
-  - script: helm template assets/helmchartest | pluto detect -
+  - script: helm template assets/helm3chart | pluto detect -
     assertions:
     - result.code ShouldEqual 0
     - result.systemout ShouldContainSubstring "KIND         VERSION              DEPRECATED   RESOURCE NAME"
-    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         RELEASE-NAME-helmchartest"
-    - result.systemout ShouldNotContainSubstring "Deployment   apps/v1              false        RELEASE-NAME-helmchartest"
+    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         RELEASE-NAME-helm3chart"
+    - result.systemout ShouldNotContainSubstring "Deployment   apps/v1              false        RELEASE-NAME-helm3chart"
diff --git a/e2e/tests/01_helm-detect.yaml b/e2e/tests/01_helm-detect-3.yaml
similarity index 66%
rename from e2e/tests/01_helm-detect.yaml
rename to e2e/tests/01_helm-detect-3.yaml
index 41e8092..39aa86e 100644
--- a/e2e/tests/01_helm-detect.yaml
+++ b/e2e/tests/01_helm-detect-3.yaml
@@ -3,27 +3,26 @@ name: "Static Code Files (including helm)"
 testcases:
 - name: install helm chart
   steps:
-  - script: helm install test assets/helmchartest
+  - script: helm install test assets/helm3chart
     assertions:
     - result.code ShouldEqual 0
 
 - name: helm detect show all
   steps:
-  - script: pluto detect-helm -A -
+  - script: pluto detect-helm --helm-version=3 -A
     assertions:
     - result.code ShouldEqual 0
     - result.systemout ShouldContainSubstring "KIND         VERSION              DEPRECATED   RESOURCE NAME"
-    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         test-helmchartest-v1beta1"
-    - result.systemout ShouldContainSubstring "Deployment   apps/v1              false        test-helmchartest"
+    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         test-helm3chart-v1beta1"
+    - result.systemout ShouldContainSubstring "Deployment   apps/v1              false        test-helm3chart"
 
 - name: helm detect
   steps:
-  - script: pluto detect-helm
+  - script: pluto detect-helm --helm-version=3
     assertions:
     - result.code ShouldEqual 0
     - result.systemout ShouldContainSubstring "KIND         VERSION              DEPRECATED   RESOURCE NAME"
-    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         test-helmchartest-v1beta1"
-    - result.systemout ShouldNotContainSubstring "Deployment   apps/v1              false        test-helmchartest"
+    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         test-helm3chart-v1beta1"
 - name: cleanup
   steps:
   - script: helm delete test
diff --git a/e2e/tests/02_helm-detect-2.yaml b/e2e/tests/02_helm-detect-2.yaml
new file mode 100644
index 0000000..30ef876
--- /dev/null
+++ b/e2e/tests/02_helm-detect-2.yaml
@@ -0,0 +1,30 @@
+version: "2"
+name: "Static Code Files (including helm)"
+testcases:
+- name: install helm 2 configmaps
+  steps:
+  - script: |
+      kubectl create ns helm-system
+      kubectl apply -f assets/helm2/
+    assertions:
+    - result.code ShouldEqual 0
+
+- name: helm2 detect in-cluster show-all
+  steps:
+  - script: pluto detect-helm --helm-version=2 -A
+    assertions:
+    - result.code ShouldEqual 0
+    - result.systemout ShouldContainSubstring "KIND         VERSION              DEPRECATED   RESOURCE NAME"
+    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         invincible-zebu-metrics-server"
+    - result.systemout ShouldContainSubstring "Deployment   apps/v1              false        lunging-bat-metrics-server"
+
+- name: helm2 detect in-cluster
+  steps:
+  - script: pluto detect-helm --helm-version=2
+    assertions:
+    - result.code ShouldEqual 0
+    - result.systemout ShouldContainSubstring "KIND         VERSION              DEPRECATED   RESOURCE NAME"
+    - result.systemout ShouldContainSubstring "Deployment   extensions/v1beta1   true         invincible-zebu-metrics-server"
+- name: cleanup
+  steps:
+  - script: kubectl delete ns helm-system
diff --git a/e2e/tests/assets/helm2/helm2configmap-deprecated.yaml b/e2e/tests/assets/helm2/helm2configmap-deprecated.yaml
new file mode 100644
index 0000000..daa7416
--- /dev/null
+++ b/e2e/tests/assets/helm2/helm2configmap-deprecated.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+data:
+  release: H4sIAAAAAAAC/+w8QYwkyVHa2xtjJzaY4bjH8Qn3nNnd8Vb1zt16dWq0iLnZtT3y7V5rZ72WtVrdZFdFd6cnq7IuM6tn+mYGgcwP/EBCFjz4IEvwQMICJB48LPjx4gEv3iAQFj9LfHigzKyqzqrq7umZ272bldnHbHdVZGREZGRkRGREk19k6YSlERtwDD7CQb7+n1fI31757JXOX115PEZIUEsWgUI5QQljqmCAmEKMGRdTjEMgZDcFCkM8hISluUYFU5GDGoucxzBAoAOOoAVwpnSBTkGuWDoCPUYYCs7FIUtHJBJJQtO4RwjAQT7ASHMYoYYgkPQQOl2aMdUtEIQH76iQie5ka4CabnVTEaPqkPXPf/aPfvTHP1374m9/7x9/+MobtW+bX9xNlaacQySSjKPGN/7p+1fI37xCfqFAGjgu1++Mtc5Ur9sdMT3OB2Ekkq4hSKaoUQUsjfIB1UJ26+PeuOC4zmfeCrduhVubOw8K6ew5aTMFFCKeK40yOGQxAh2NJI4MDhBDkKhELiOEXNERQkw1Dd9qMNPrkM8JjgmVB7la/xURHjI9/k2VCakljak0RPZ+jXz+ANMU9ZhSRdP11w9C+6EB9+iVydZ3126Fb4d31n98lfyyxiTjVKPqPnz/8f29UB/p9T+7uprWHB8DG0L4hPIcVUgzZnhmEYaRRKoRTk8vk14dHwNyZakyrPbgOyKHMZ0gxEwZQmI753Z/1/LMIgTLBxMpDIUEPWYKJHKkCkOYSUgRM+SQcQ6p0HAo5AGYBaoNgDzlqBz7kUiHbJRLtPOVXG/3d0k5r8i1Mqoihg7JN5AnEI2p1CE5Pg4A0xiC01Oy/udfIK/PVvCDMfI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t4YsVZqmEapfL5zSuMjHSWv1UzF/2gXT1fxgOyE9shPm6XOYspFf2AcwuhHHZlmZAaXcy1NDudc2//QK+aWIdSMWeMq2/vtXNmBn1+ac8jQ1R5pI4evfvH8TDscsGgPlRmGnoMYsU630lXXQbcc72bA/7sFZpJVBYVRrdgBWNjZspkDLxJ8LKjpr5OrxKdn8768Yf4VswJ4d1ayn656n9uOCBR2N3xUKWsVxrUuPOeVzxeVGg0j3ezn1q4zGdI1rjMeMc5SryuQcHeYvpIG86TCs0ij+4oX3/63e81q9V1SptuK8iK7Zy7jnLn+v66pWYX7n/gvpZVq+kM+hGf8TWPdL1U5/5s6oCS+exfwXOENfqGZc5p3+3Ff8DC4vjwa0ypmeb7XSctovXKB0aVXikygx+gQswrzfDSDn/NWAy7jR53XlL+2tn7WLfIwm+jl8LSG7ebNzMVPe6B4lH7939DKu5/k6Pud2OS2Z0L/cv1AD54K2qqU8zvoS57fgrbD75/fIrdygdq50cM/ViSxtT6tVjVzOZrRPonOsdi3vTd2+oK/T1Z5k3qW9J/8F1/erdaBdJirnN7Kt3Jd2dm2Cp4ytKoXZP1uv0HgWGOy1Z2dUMXiAc+oZGm+blQ2N136Nw/NuoVvQ1rakR21p09nTZxdsITvnsdf8lZhP7edfPslDr/UDLhdzDT/F32h564evko0zggSNSq9f7Yv4jVsL1WBB+XvnH66eo/x9BToujdt6WYvWz8j/3L799pySdOdDLKpA37zyuXeuvPtzhbb+XwAAAP//9nkztvhfAAA=
+kind: ConfigMap
+metadata:
+  creationTimestamp: "2020-04-02T21:24:40Z"
+  labels:
+    MODIFIED_AT: "1585862680"
+    NAME: invincible-zebu
+    OWNER: TILLER
+    STATUS: DEPLOYED
+    VERSION: "1"
+  name: invincible-zebu.v1
+  namespace: helm-system
+  resourceVersion: "265249"
+  selfLink: /api/v1/namespaces/helm-system/configmaps/invincible-zebu.v1
+  uid: 362f70c7-91dc-4478-88eb-08a7b368bfd0
diff --git a/e2e/tests/assets/helm2/helm2configmap-no-deprecated.yaml b/e2e/tests/assets/helm2/helm2configmap-no-deprecated.yaml
new file mode 100644
index 0000000..625e028
--- /dev/null
+++ b/e2e/tests/assets/helm2/helm2configmap-no-deprecated.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+data:
+  release: H4sIAAAAAAAC/+x83Y8cSVK4vN7R7y7vd+iY+3hYHojr2cP24Kr211lLgxGzY9/daNfelsfr1cqydrKrortzJ6uyNjNrZnrHg4TEC9IhdEICndBJJ17ghRdOiAceTkj8B/DEA09wSPB6EgIhhDKzqjrro2d6Zu3dsRY/jLurIiMjIiMjIyIjmnyJ5+mEpZNgRPXqzy6Qv77whQu9v7zwaIqQoJYsAoVyDyVMqYIRYgoxZlzMMA6BkK0UKIxxHxKW5hoVzEQOaipyHsMIgY44ghbAmdIFOgW5YukE9BRhLDgX+yydkEgkCU3jASEAu/kII81hghqCQNJ96PVpxlS/QBDuvqFCJvp710eo6fV+KmJUPbL6pS/83l/88OcrX/nxH/zgN17zv6x/ZStVmnIOkUgyjhpf+5PvXyA/eYX8QoEycDyu3p5qnalBvz9hepqPwkgkfUOOTFGjClga5SOqhezXx712xnG9lRvhr4XX1jfvF6LZdqJmCihEPFcaZbDPYgQ6mUicGBQgxiBRiVxGCLmiE4SYahreaPAy6JEvCo4Jlbu5Wv26CPeZnv6WyoTUksZUGhoHv0L+/y6mKeoppYqmq9/YDe2HBtzDV/auf7hyLbwZ3l796UXyVY1JxqlG1X/wzqN726E+0Kt/dnE5lTk8BDaG8DHlOaqQZszwzCIMI4lUIxwdnSelOjwE5MpSZVgdwPsihyndQ4iZMoTEds6N4ZblmUUIlg8mUhgLCXrKFEjkSBWGMJeQImbIPuMcUqFhX8hdMAtUGwB5ylE59iORjtkkl2jnK7neGG6Rcl6Ra2VURYwdku8hTyCaUqlDcngYAKYxBEdHZPXPv0y+MV/BD6bIM5Qq1Blf/f0vHx7212GPJQNQqGHMOOpZhneSXGkaTXEA6/2jI2KgyL2DjKaO/5QmxcRYTlnABRDjmK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8vkF+MWD9igadsq9+/sAabWzZplKepOaJECt99695V2J+yaAqUG4WdgZqyTLXyT9bhtu3jZM3+UgZnkVYGhVGt+YFW2cywmcMsM3cuSOitkIuHR2T9v9aN/0HWYNuOalbF9U9TwXHGsgzv13mCVnlb68aiowCuuJloEGh/d6Z+DeHN1Lh+eMQ4R7msKE7Rpf1CmrCb5/4yzdYvVG7/1ynd1Sm9pDa1deZFNJ2eo112/jtEl7UD3f3uL6QdaPH6PYf29Re73Oeq9/zYfVCTWTyPz89wPr5QZTiHe/q5L/IxzJ2PBW/VF72A8qHFxJ+5Wug8qsGnUerzgjd+V1M9OWVL/Tnaz12d6sf2m8/bNT5BY3kHSwtIbt6vnM1IN7opyRl7Kc/Rup2u8bGzm2jBZP7d+Zl6GBe0Li3kbd73193idsKG7u4/W7r561RJ14Ervzi29atWjHE+G70+ja6s2uW3N3X7GrxOV3uSrqtxT/4LLsmX6+46T1R2N4kt3fN1cgWAp4ytWoD5P1sV0HgWGOy1ZyfUCniAHVUDjbfN+oHGa7+S4Hm3py1oGTum/+vYhq4nT8/YnnXKY635qyif2c+dfEpnXOu3Sk7v5H2GP0Vy4w9fJb98jIevUenVi0MRv3Zt4covKCTv/dXFUxSSn0DDeXA+z2vV9zFpmVu3bnbUcztPYVH59vqFL75x4c3/Vyjn/wYAAP//lnPTc7peAAA=
+kind: ConfigMap
+metadata:
+  creationTimestamp: "2020-04-02T21:18:01Z"
+  labels:
+    MODIFIED_AT: "1585862281"
+    NAME: lunging-bat
+    OWNER: TILLER
+    STATUS: DEPLOYED
+    VERSION: "1"
+  name: lunging-bat.v1
+  namespace: helm-system
+  resourceVersion: "264417"
+  selfLink: /api/v1/namespaces/helm-system/configmaps/lunging-bat.v1
+  uid: 9782c0d6-83f0-401c-be4e-bfad2e5a765d
diff --git a/e2e/tests/assets/helmchartest/.helmignore b/e2e/tests/assets/helm3chart/.helmignore
similarity index 100%
rename from e2e/tests/assets/helmchartest/.helmignore
rename to e2e/tests/assets/helm3chart/.helmignore
diff --git a/e2e/tests/assets/helmchartest/Chart.yaml b/e2e/tests/assets/helm3chart/Chart.yaml
similarity index 97%
rename from e2e/tests/assets/helmchartest/Chart.yaml
rename to e2e/tests/assets/helm3chart/Chart.yaml
index be97cec..c1c93bf 100644
--- a/e2e/tests/assets/helmchartest/Chart.yaml
+++ b/e2e/tests/assets/helm3chart/Chart.yaml
@@ -1,5 +1,5 @@
 apiVersion: v2
-name: helmchartest
+name: helm3chart
 description: A Helm chart for Kubernetes
 
 # A chart can be either an 'application' or a 'library' chart.
diff --git a/e2e/tests/assets/helmchartest/templates/NOTES.txt b/e2e/tests/assets/helm3chart/templates/NOTES.txt
similarity index 74%
rename from e2e/tests/assets/helmchartest/templates/NOTES.txt
rename to e2e/tests/assets/helm3chart/templates/NOTES.txt
index 2715b60..b76558f 100644
--- a/e2e/tests/assets/helmchartest/templates/NOTES.txt
+++ b/e2e/tests/assets/helm3chart/templates/NOTES.txt
@@ -6,16 +6,16 @@
   {{- end }}
 {{- end }}
 {{- else if contains "NodePort" .Values.service.type }}
-  export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "helmchartest.fullname" . }})
+  export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "helm3chart.fullname" . }})
   export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
   echo http://$NODE_IP:$NODE_PORT
 {{- else if contains "LoadBalancer" .Values.service.type }}
      NOTE: It may take a few minutes for the LoadBalancer IP to be available.
-           You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "helmchartest.fullname" . }}'
-  export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "helmchartest.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
+           You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "helm3chart.fullname" . }}'
+  export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "helm3chart.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
   echo http://$SERVICE_IP:{{ .Values.service.port }}
 {{- else if contains "ClusterIP" .Values.service.type }}
-  export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "helmchartest.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
+  export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "helm3chart.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
   echo "Visit http://127.0.0.1:8080 to use your application"
   kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
 {{- end }}
diff --git a/e2e/tests/assets/helmchartest/templates/_helpers.tpl b/e2e/tests/assets/helm3chart/templates/_helpers.tpl
similarity index 74%
rename from e2e/tests/assets/helmchartest/templates/_helpers.tpl
rename to e2e/tests/assets/helm3chart/templates/_helpers.tpl
index 45d88d0..638d79e 100644
--- a/e2e/tests/assets/helmchartest/templates/_helpers.tpl
+++ b/e2e/tests/assets/helm3chart/templates/_helpers.tpl
@@ -2,7 +2,7 @@
 {{/*
 Expand the name of the chart.
 */}}
-{{- define "helmchartest.name" -}}
+{{- define "helm3chart.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 "helmchartest.fullname" -}}
+{{- define "helm3chart.fullname" -}}
 {{- if .Values.fullnameOverride -}}
 {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
 {{- else -}}
@@ -27,16 +27,16 @@ 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 "helmchartest.chart" -}}
+{{- define "helm3chart.chart" -}}
 {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
 {{- end -}}
 
 {{/*
 Common labels
 */}}
-{{- define "helmchartest.labels" -}}
-helm.sh/chart: {{ include "helmchartest.chart" . }}
-{{ include "helmchartest.selectorLabels" . }}
+{{- define "helm3chart.labels" -}}
+helm.sh/chart: {{ include "helm3chart.chart" . }}
+{{ include "helm3chart.selectorLabels" . }}
 {{- if .Chart.AppVersion }}
 app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
 {{- end }}
@@ -46,17 +46,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
 {{/*
 Selector labels
 */}}
-{{- define "helmchartest.selectorLabels" -}}
-app.kubernetes.io/name: {{ include "helmchartest.name" . }}
+{{- define "helm3chart.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "helm3chart.name" . }}
 app.kubernetes.io/instance: {{ .Release.Name }}
 {{- end -}}
 
 {{/*
 Create the name of the service account to use
 */}}
-{{- define "helmchartest.serviceAccountName" -}}
+{{- define "helm3chart.serviceAccountName" -}}
 {{- if .Values.serviceAccount.create -}}
-    {{ default (include "helmchartest.fullname" .) .Values.serviceAccount.name }}
+    {{ default (include "helm3chart.fullname" .) .Values.serviceAccount.name }}
 {{- else -}}
     {{ default "default" .Values.serviceAccount.name }}
 {{- end -}}
diff --git a/e2e/tests/assets/helmchartest/templates/deployment-deprecated.yaml b/e2e/tests/assets/helm3chart/templates/deployment-deprecated.yaml
similarity index 80%
rename from e2e/tests/assets/helmchartest/templates/deployment-deprecated.yaml
rename to e2e/tests/assets/helm3chart/templates/deployment-deprecated.yaml
index 1c72d1c..cea2be0 100644
--- a/e2e/tests/assets/helmchartest/templates/deployment-deprecated.yaml
+++ b/e2e/tests/assets/helm3chart/templates/deployment-deprecated.yaml
@@ -1,24 +1,24 @@
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
-  name: {{ include "helmchartest.fullname" . }}-v1beta1
+  name: {{ include "helm3chart.fullname" . }}-v1beta1
   labels:
-    {{- include "helmchartest.labels" . | nindent 4 }}
+    {{- include "helm3chart.labels" . | nindent 4 }}
 spec:
   replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
-      {{- include "helmchartest.selectorLabels" . | nindent 6 }}
+      {{- include "helm3chart.selectorLabels" . | nindent 6 }}
   template:
     metadata:
       labels:
-        {{- include "helmchartest.selectorLabels" . | nindent 8 }}
+        {{- include "helm3chart.selectorLabels" . | nindent 8 }}
     spec:
     {{- with .Values.imagePullSecrets }}
       imagePullSecrets:
         {{- toYaml . | nindent 8 }}
     {{- end }}
-      serviceAccountName: {{ include "helmchartest.serviceAccountName" . }}
+      serviceAccountName: {{ include "helm3chart.serviceAccountName" . }}
       securityContext:
         {{- toYaml .Values.podSecurityContext | nindent 8 }}
       containers:
diff --git a/e2e/tests/assets/helmchartest/templates/deployment.yaml b/e2e/tests/assets/helm3chart/templates/deployment.yaml
similarity index 81%
rename from e2e/tests/assets/helmchartest/templates/deployment.yaml
rename to e2e/tests/assets/helm3chart/templates/deployment.yaml
index 47621a4..b1db658 100644
--- a/e2e/tests/assets/helmchartest/templates/deployment.yaml
+++ b/e2e/tests/assets/helm3chart/templates/deployment.yaml
@@ -1,24 +1,24 @@
 apiVersion: apps/v1
 kind: Deployment
 metadata:
-  name: {{ include "helmchartest.fullname" . }}
+  name: {{ include "helm3chart.fullname" . }}
   labels:
-    {{- include "helmchartest.labels" . | nindent 4 }}
+    {{- include "helm3chart.labels" . | nindent 4 }}
 spec:
   replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
-      {{- include "helmchartest.selectorLabels" . | nindent 6 }}
+      {{- include "helm3chart.selectorLabels" . | nindent 6 }}
   template:
     metadata:
       labels:
-        {{- include "helmchartest.selectorLabels" . | nindent 8 }}
+        {{- include "helm3chart.selectorLabels" . | nindent 8 }}
     spec:
     {{- with .Values.imagePullSecrets }}
       imagePullSecrets:
         {{- toYaml . | nindent 8 }}
     {{- end }}
-      serviceAccountName: {{ include "helmchartest.serviceAccountName" . }}
+      serviceAccountName: {{ include "helm3chart.serviceAccountName" . }}
       securityContext:
         {{- toYaml .Values.podSecurityContext | nindent 8 }}
       containers:
diff --git a/e2e/tests/assets/helmchartest/values.yaml b/e2e/tests/assets/helm3chart/values.yaml
similarity index 97%
rename from e2e/tests/assets/helmchartest/values.yaml
rename to e2e/tests/assets/helm3chart/values.yaml
index fa2a9c5..910c406 100644
--- a/e2e/tests/assets/helmchartest/values.yaml
+++ b/e2e/tests/assets/helm3chart/values.yaml
@@ -1,4 +1,4 @@
-# Default values for helmchartest.
+# Default values for helm3chart.
 # This is a YAML-formatted file.
 # Declare variables to be passed into your templates.
 
diff --git a/e2e/tests/assets/helmchartest/templates/serviceaccount.yaml b/e2e/tests/assets/helmchartest/templates/serviceaccount.yaml
deleted file mode 100644
index 323010e..0000000
--- a/e2e/tests/assets/helmchartest/templates/serviceaccount.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-apiVersion: v1
-kind: ServiceAccount
-metadata:
-  name: {{ include "helmchartest.serviceAccountName" . }}
diff --git a/pkg/api/output_test.go b/pkg/api/output_test.go
index 80a776d..4e8ef12 100644
--- a/pkg/api/output_test.go
+++ b/pkg/api/output_test.go
@@ -67,7 +67,7 @@ func ExampleDisplayOutput_yaml() {
 func ExampleDisplayOutput_noOutput() {
 	_ = DisplayOutput([]*Output{testOutput1}, "tabular", false)
 
-	// Output: APIVersions were found, but none were deprecated. Try --show-non-deprecated.
+	// Output: APIVersions were found, but none were deprecated. Try --show-all.
 }
 
 func ExampleDisplayOutput_badFormat() {