mirror of https://github.com/helm/helm
fix(template): helm template "--show-only" flag producing duplicates when flag used more than once (#7204)
* bugfix template show-only duplicates Signed-off-by: Lee Bontecou <lbontecou@thezebra.com> * 7203 - add unittests Signed-off-by: Lee Bontecou <lbontecou@thezebra.com> * attempt formatting fix Signed-off-by: Lee Bontecou <lbontecou@thezebra.com> * gofmt-ed with -s Signed-off-by: Lee Bontecou <lbontecou@thezebra.com> * goimports-ed with -local helm.sh/helm/v3 and gofmt-ed with -s -w Signed-off-by: Lee Bontecou <lbontecou@thezebra.com> * Update template_test.go Signed-off-by: Lee Bontecou <lbontecou@thezebra.com> * Update template_test.go Signed-off-by: Lee Bontecou <lbontecou@thezebra.com>pull/7494/head
parent
1d79ed2c18
commit
e483dce289
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
# Source: subchart1/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchart1
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchart1-0.1.0"
|
||||||
|
app.kubernetes.io/instance: "RELEASE-NAME"
|
||||||
|
kube-version/major: "1"
|
||||||
|
kube-version/minor: "16"
|
||||||
|
kube-version/version: "v1.16.0"
|
||||||
|
kube-api-version/test: v1
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchart1
|
||||||
|
---
|
||||||
|
# Source: subchart1/charts/subcharta/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subcharta
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subcharta-0.1.0"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: apache
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subcharta
|
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
# Source: subchart1/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: subchart1
|
||||||
|
labels:
|
||||||
|
helm.sh/chart: "subchart1-0.1.0"
|
||||||
|
app.kubernetes.io/instance: "RELEASE-NAME"
|
||||||
|
kube-version/major: "1"
|
||||||
|
kube-version/minor: "16"
|
||||||
|
kube-version/version: "v1.16.0"
|
||||||
|
kube-api-version/test: v1
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: nginx
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: subchart1
|
Loading…
Reference in new issue