Kustomize doesn't adapt workloadSelector label of sidecar when using nameSuffix?

Viewed 144

I have a sidecar like this:

apiVersion: networking.istio.io/v1alpha3
kind: Sidecar
metadata:
  name: test
  namespace: testns
spec:
  workloadSelector:
    labels:
      app: test
...

and a kustomization like:

resources:
  - ../../base

nameSuffix: -dev

But kustomize doesn't adapt the workloadSelector label app to test-dev as I would expect it to do. The name suffix is only appended to the name of the sidecar. Any ideas why?

1 Answers
Related