mirror of https://github.com/linkerd/linkerd2.git
29 lines
764 B
Go
29 lines
764 B
Go
package tmpl
|
|
|
|
// MutatingWebhookConfigurationSpec provides a template for a
|
|
// MutatingWebhookConfiguration.
|
|
var MutatingWebhookConfigurationSpec = `
|
|
apiVersion: admissionregistration.k8s.io/v1beta1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
name: {{ .WebhookConfigName }}
|
|
webhooks:
|
|
- name: {{ .WebhookServiceName }}
|
|
clientConfig:
|
|
service:
|
|
name: linkerd-proxy-injector
|
|
namespace: {{ .ControllerNamespace }}
|
|
path: "/"
|
|
caBundle: {{ .CABundle }}
|
|
rules:
|
|
- operations: [ "CREATE" ]
|
|
apiGroups: ["apps", "extensions"]
|
|
apiVersions: ["v1", "v1beta1", "v1beta2"]
|
|
resources: ["deployments"]
|
|
namespaceSelector:
|
|
matchExpressions:
|
|
- key: {{.ProxyAutoInjectLabel}}
|
|
operator: NotIn
|
|
values:
|
|
- "disabled"`
|