Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charts: Using downwardAPI to mount labels to the proxy container #4199

Merged
merged 50 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
87f377c
use downward API to mount labels to the proxy container as a volume
Pothulapati Mar 25, 2020
62c4cce
Formatting fix
Pothulapati Mar 25, 2020
bbbe9dc
Fix formatting of templates
Pothulapati Mar 25, 2020
57887b5
update uninject code to remove the podinfo volume
Pothulapati Mar 25, 2020
fbaaf8c
update golden test files
Pothulapati Mar 25, 2020
f85bbd3
update controller inject files
Pothulapati Mar 25, 2020
e310587
Merge branch 'master' into downward-labels
Pothulapati Mar 25, 2020
4a2691a
update proxy injector code to add volumes by default
Pothulapati Mar 25, 2020
588e0a9
add a new labels env path
Pothulapati Mar 26, 2020
89e329e
update go test files
Pothulapati Mar 26, 2020
f42ee8f
Merge branch 'master' into downward-labels
Pothulapati Mar 31, 2020
681b66a
keep addrootvolume flag in helm chart
Pothulapati Mar 31, 2020
1c6325d
Merge branch 'master' into downward-labels
Pothulapati Apr 1, 2020
9f3446a
allow patch value setting even when identity is nil
Pothulapati Apr 2, 2020
838c3b9
update golden files for proxy injector
Pothulapati Apr 2, 2020
a6abfe6
update integration test golden files
Pothulapati Apr 2, 2020
1fd2788
Merge branch 'master' into downward-labels
Pothulapati Apr 9, 2020
368bd27
add namespace as a label to the pod
Pothulapati Apr 9, 2020
e7d8e50
update integration injectManual tests
Pothulapati Apr 9, 2020
eb88b02
fix spelling mistake
Pothulapati Apr 9, 2020
2efee71
update install manifests to only add when tracing is enabled
Pothulapati Apr 10, 2020
622e543
update code to also include smi-metrics
Pothulapati Apr 10, 2020
e292ec5
remove extra line in templating
Pothulapati Apr 10, 2020
c6f799b
refactor proxy inject template
Pothulapati Apr 10, 2020
02759a9
Merge branch 'master' into downward-labels
Pothulapati Apr 10, 2020
c36e2a3
update templating for inject
Pothulapati Apr 10, 2020
c9850c3
update controller inject tests
Pothulapati Apr 10, 2020
b059d44
add a trace inject test
Pothulapati Apr 10, 2020
ea83b14
remove volumes template from controlplane components
Pothulapati Apr 10, 2020
e401fc0
update inject integration tests
Pothulapati Apr 10, 2020
ef8db38
update test golden files
Pothulapati Apr 10, 2020
f051ebd
add verbose golden file
Pothulapati Apr 10, 2020
a07fc73
update integration test golden files
Pothulapati Apr 10, 2020
79facbf
update to a new env variable
Pothulapati Apr 10, 2020
92ea884
add downwardAPi for controlplaneTracing
Pothulapati Apr 14, 2020
9ad3381
update patch and render tests
Pothulapati Apr 14, 2020
ca14517
update tracing tempalte files
Pothulapati Apr 14, 2020
d0dff92
formatting fix in labels
Pothulapati Apr 14, 2020
9aaf74c
fix formatting in patch golden files
Pothulapati Apr 14, 2020
dbf5317
add controlPlaneTracing condition to volumeMounts
Pothulapati Apr 14, 2020
6023ac4
add workload-ns label for control-plane components
Pothulapati Apr 14, 2020
5594216
update add-ons to have workload-ns
Pothulapati Apr 14, 2020
f09b66e
Revert "add workload-ns label for control-plane components"
Pothulapati Apr 15, 2020
6d36844
add workload-ns label to control-plane components
Pothulapati Apr 15, 2020
91c790d
add podinfo volume to smi-metrics
Pothulapati Apr 15, 2020
345e098
Add more documentation on the approach
Pothulapati Apr 17, 2020
3f5c252
lower case comments and formatting
Pothulapati Apr 17, 2020
a96d441
add a caution comment at paritals/metadata.tpl
Pothulapati Apr 17, 2020
f56e3da
Merge branch 'master' into downward-labels
Pothulapati Apr 20, 2020
ea6651e
update new golden files
Pothulapati Apr 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions charts/add-ons/tracing/templates/tracing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: {{.Values.collector.name}}
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
containers:
Expand Down Expand Up @@ -135,6 +136,9 @@ spec:
path: linkerd-collector-config.yaml
name: {{printf "%s-config" .Values.collector.name}}
name: {{ printf "%s-config-val" .Values.collector.name}}
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
---
###
Expand Down Expand Up @@ -198,6 +202,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: {{.Values.jaeger.name}}
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
containers:
Expand All @@ -220,4 +225,7 @@ spec:
dnsPolicy: ClusterFirst
serviceAccountName: linkerd-jaeger
volumes:
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: controller
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -109,4 +110,7 @@ spec:
- configMap:
name: linkerd-config
name: config
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/destination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: destination
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -109,4 +110,7 @@ spec:
- configMap:
name: linkerd-config
name: config
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: grafana
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -165,4 +166,7 @@ spec:
path: provisioning/dashboards/dashboards.yaml
name: linkerd-grafana-config
name: grafana-config
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
1 change: 1 addition & 0 deletions charts/linkerd2/templates/heartbeat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
labels:
{{.Values.global.controllerComponentLabel}}: heartbeat
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
annotations:
{{.Values.global.createdByAnnotation}}: {{default (printf "linkerd/helm %s" .Values.global.linkerdVersion) .Values.global.cliVersion}}
spec:
Expand Down
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: identity
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -131,5 +132,8 @@ spec:
- name: identity-issuer
secret:
secretName: linkerd-identity-issuer
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{end -}}
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: prometheus
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -236,4 +237,7 @@ spec:
- configMap:
name: linkerd-prometheus-config
name: prometheus-config
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/proxy-injector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: proxy-injector
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -93,6 +94,9 @@ spec:
- name: tls
secret:
secretName: linkerd-proxy-injector-tls
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
---
kind: Service
Expand Down
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/smi-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: smi-metrics
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -85,6 +86,9 @@ spec:
{{ end -}}

volumes:
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- name: config
configMap:
name: linkerd-smi-metrics
Expand Down
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/sp-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: sp-validator
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -107,4 +108,7 @@ spec:
- name: tls
secret:
secretName: linkerd-sp-validator-tls
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/tap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: tap
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -118,6 +119,9 @@ spec:
- configMap:
name: linkerd-config
name: config
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
- name: tls
secret:
Expand Down
4 changes: 4 additions & 0 deletions charts/linkerd2/templates/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
labels:
{{.Values.global.controllerComponentLabel}}: web
{{.Values.global.controllerNamespaceLabel}}: {{.Values.global.namespace}}
{{.Values.global.workloadNamespaceLabel}}: {{.Values.global.namespace}}
{{- include "partials.proxy.labels" .Values.global.proxy | nindent 8}}
spec:
{{- include "linkerd.node-selector" . | nindent 6 }}
Expand Down Expand Up @@ -109,4 +110,7 @@ spec:
- configMap:
name: linkerd-config
name: config
{{ if .Values.global.controlPlaneTracing -}}
- {{- include "partials.proxy.volumes.labels" . | indent 8 | trimPrefix (repeat 7 " ") }}
{{ end -}}
- {{- include "partials.proxy.volumes.identity" . | indent 8 | trimPrefix (repeat 7 " ") }}
1 change: 1 addition & 0 deletions charts/linkerd2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ global:
controllerComponentLabel: linkerd.io/control-plane-component
controllerNamespaceLabel: linkerd.io/control-plane-ns
linkerdNamespaceLabel: linkerd.io/is-control-plane
workloadNamespaceLabel: linkerd.io/workload-ns

# enforced host validation regular expression
enforcedHostRegexp: ""
Expand Down
4 changes: 4 additions & 0 deletions charts/partials/templates/_metadata.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ linkerd.io/identity-mode: {{ternary "default" "disabled" (not .disableIdentity)}
linkerd.io/proxy-version: {{.image.version}}
{{- end -}}

{{/*
To add labels to the control-plane components, instead update at induvidual component manifests as
adding here would also update `spec.selector.matchLabels` which are immutable and would fail upgrades.
*/}}
{{- define "partials.proxy.labels" -}}
linkerd.io/proxy-{{.workloadKind}}: {{.component}}
{{- end -}}
14 changes: 10 additions & 4 deletions charts/partials/templates/_proxy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ env:
value: 10000ms
- name: LINKERD2_PROXY_OUTBOUND_CONNECT_KEEPALIVE
value: 10000ms
{{ if or (.Values.global.proxy.trace.collectorSvcAddr) (.Values.global.controlPlaneTracing) -}}
- name: LINKERD2_PROXY_TRACE_ATTRIBUTES_PATH
value: /var/run/linkerd/podinfo/labels
{{ end -}}
- name: _pod_ns
valueFrom:
fieldRef:
Expand Down Expand Up @@ -73,14 +77,12 @@ env:
value: linkerd-collector.{{.Values.global.namespace}}.svc.{{.Values.global.clusterDomain}}:55678
- name: LINKERD2_PROXY_TRACE_COLLECTOR_SVC_NAME
value: linkerd-collector.{{.Values.global.namespace}}.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)
{{ else if .Values.global.proxy.trace -}}
{{ if .Values.global.proxy.trace.collectorSvcAddr -}}
{{ else if .Values.global.proxy.trace.collectorSvcAddr -}}
- name: LINKERD2_PROXY_TRACE_COLLECTOR_SVC_ADDR
value: {{ .Values.global.proxy.trace.collectorSvcAddr }}
- name: LINKERD2_PROXY_TRACE_COLLECTOR_SVC_NAME
value: {{ .Values.global.proxy.trace.collectorSvcAccount }}.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)
{{ end -}}
{{ end -}}
image: {{.Values.global.proxy.image.name}}:{{.Values.global.proxy.image.version}}
imagePullPolicy: {{.Values.global.proxy.image.pullPolicy}}
livenessProbe:
Expand Down Expand Up @@ -119,8 +121,12 @@ lifecycle:
- -c
- sleep {{.Values.global.proxy.waitBeforeExitSeconds}}
{{- end }}
{{- if or (not .Values.global.proxy.disableIdentity) (.Values.global.proxy.saMountPath) }}
{{- if or (.Values.global.proxy.trace.collectorSvcAddr) (.Values.global.controlPlaneTracing) (not .Values.global.proxy.disableIdentity) (.Values.global.proxy.saMountPath) }}
volumeMounts:
{{- if or (.Values.global.proxy.trace.collectorSvcAddr) (.Values.global.controlPlaneTracing) }}
- mountPath: var/run/linkerd/podinfo
name: podinfo
{{- end -}}
{{- if not .Values.global.proxy.disableIdentity }}
- mountPath: /var/run/linkerd/identity/end-entity
name: linkerd-identity-end-entity
Expand Down
21 changes: 21 additions & 0 deletions charts/partials/templates/_volumes.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,24 @@ emptyDir:
medium: Memory
name: linkerd-identity-end-entity
{{- end -}}

Pothulapati marked this conversation as resolved.
Show resolved Hide resolved
{{/*
This volume is attached to the proxy when distributed tracing is enabled, thus allowing the proxy to attach pod's labels as span attributes.
This is done to attach more context to traces in order to allow filtering based on workload type, name, namespace, etc.

The above information already exists as pod labels except for namespace, which is fixed by adding a `linkerd.io/workload-ns` label.
instead of using downwardAPI to attach `metadata.namespace` as ENV and making the proxy add the ENV as a span attribute,
this way is chosen, to keep the proxy unaware of k8s namespace and only have a single way to add attributes to spans i.e
through a file.

For control-plane components, `linkerd.io/workload-ns` label is only added to `spec.template.metadata.labels` but not label-selectors
as they are immutable and would fail upgrades.
*/}}
{{ define "partials.proxy.volumes.labels" -}}
downwardAPI:
items:
- fieldRef:
fieldPath: metadata.labels
path: "labels"
name: podinfo
{{- end -}}
8 changes: 8 additions & 0 deletions charts/patch/templates/patch.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
"value": []
},
{{- end }}
{{- if (.Values.global.proxy.trace.collectorSvcAddr) }}
{
"op": "add",
"path": "{{$prefix}}/spec/volumes/-",
"value":
{{- include "partials.proxy.volumes.labels" . | fromYaml | toPrettyJson | nindent 6 }}
},
{{- end }}
{{- if not .Values.global.proxy.disableIdentity -}}
{
"op": "add",
Expand Down
11 changes: 11 additions & 0 deletions cli/cmd/inject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,17 @@ func TestUninjectAndInject(t *testing.T) {
injectProxy: true,
testInjectConfig: proxyIgnorePortsConfig,
},
{
inputFileName: "inject_emojivoto_deployment.input.yml",
goldenFileName: "inject_emojivoto_deployment_trace.golden.yml",
reportFileName: "inject_emojivoto_deployment_trace.report",
injectProxy: true,
testInjectConfig: defaultConfig,
overrideAnnotations: map[string]string{
k8s.ProxyTraceCollectorSvcAddrAnnotation: "linkerd-collector",
k8s.ProxyTraceCollectorSvcAccountAnnotation: "linkerd-collector.linkerd",
},
},
}

for i, tc := range testCases {
Expand Down
3 changes: 2 additions & 1 deletion cli/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ func (options *installOptions) buildValuesWithoutIdentity(configs *pb.All) (*l5d
Request: options.proxyMemoryRequest,
},
},
UID: options.proxyUID,
UID: options.proxyUID,
Trace: installValues.Global.Proxy.Trace,
}

installValues.Global.ProxyInit.Image.Name = registryOverride(options.initImage, options.dockerRegistry)
Expand Down
4 changes: 3 additions & 1 deletion cli/cmd/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func TestRender(t *testing.T) {
CliVersion: "CliVersion",
ControllerComponentLabel: "ControllerComponentLabel",
ControllerNamespaceLabel: "ControllerNamespaceLabel",
WorkloadNamespaceLabel: "WorkloadNamespaceLabel",
CreatedByAnnotation: "CreatedByAnnotation",
ProxyInjectAnnotation: "ProxyInjectAnnotation",
ProxyInjectDisabled: "ProxyInjectDisabled",
Expand All @@ -96,7 +97,8 @@ func TestRender(t *testing.T) {
Inbound: 4143,
Outbound: 4140,
},
UID: 2102,
UID: 2102,
Trace: &charts.Trace{},
},
ProxyInit: &charts.ProxyInit{
Image: &charts.Image{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
app: nginx
linkerd.io/control-plane-ns: linkerd
linkerd.io/proxy-deployment: nginx
linkerd.io/workload-ns: ""
spec:
containers:
- image: nginx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
app: redis
linkerd.io/control-plane-ns: linkerd
linkerd.io/proxy-deployment: redis
linkerd.io/workload-ns: ""
spec:
containers:
- image: redis
Expand Down Expand Up @@ -164,6 +165,7 @@ spec:
app: nginx
linkerd.io/control-plane-ns: linkerd
linkerd.io/proxy-deployment: nginx
linkerd.io/workload-ns: ""
spec:
containers:
- image: nginx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
app: redis
linkerd.io/control-plane-ns: linkerd
linkerd.io/proxy-deployment: redis
linkerd.io/workload-ns: ""
spec:
containers:
- image: redis
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/testdata/inject_contour.golden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
app: contour
linkerd.io/control-plane-ns: linkerd
linkerd.io/proxy-deployment: contour
linkerd.io/workload-ns: heptio-contour
spec:
containers:
- args:
Expand Down
Loading