mirror of https://github.com/linkerd/linkerd2.git
add namespace name to MWC (#2905)
When installing multiple control planes, the mutatingwebhookconfiguration of the first control plane gets overwritten by any subsequent control plane install. This is caused by the fixed name given to the mutatingwebhookconfiguration manifest at install time. This commit adds in the namespace to the manifest so that there is a unique configuration for each control plane. Fixes #2887
This commit is contained in:
parent
ecc4465cd1
commit
8aef9280dd
|
@ -59,7 +59,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-{{ .Namespace }}-proxy-injector-webhook-config
|
||||
labels:
|
||||
{{ .ControllerComponentLabel }}: proxy-injector
|
||||
webhooks:
|
||||
|
|
|
@ -53,7 +53,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-{{ .Namespace }}-sp-validator-webhook-config
|
||||
labels:
|
||||
{{ .ControllerComponentLabel }}: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-linkerd-proxy-injector-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-linkerd-sp-validator-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-linkerd-proxy-injector-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-linkerd-sp-validator-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-linkerd-proxy-injector-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-linkerd-sp-validator-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-linkerd-proxy-injector-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-linkerd-sp-validator-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-linkerd-proxy-injector-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-linkerd-sp-validator-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-Namespace-proxy-injector-webhook-config
|
||||
labels:
|
||||
ControllerComponentLabel: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-Namespace-sp-validator-webhook-config
|
||||
labels:
|
||||
ControllerComponentLabel: sp-validator
|
||||
webhooks:
|
||||
|
|
|
@ -301,7 +301,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-proxy-injector-webhook-config
|
||||
name: linkerd-linkerd-proxy-injector-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: proxy-injector
|
||||
webhooks:
|
||||
|
@ -376,7 +376,7 @@ data:
|
|||
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: linkerd-sp-validator-webhook-config
|
||||
name: linkerd-linkerd-sp-validator-webhook-config
|
||||
labels:
|
||||
linkerd.io/control-plane-component: sp-validator
|
||||
webhooks:
|
||||
|
|
Loading…
Reference in New Issue