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:
Dennis Adjei-Baah 2019-06-13 12:15:43 -07:00 committed by GitHub
parent ecc4465cd1
commit 8aef9280dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 16 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: