-
Notifications
You must be signed in to change notification settings - Fork 10
/
plugin.yaml
43 lines (43 loc) · 1.61 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Plugin Definition below. This is essentially a valid helm values file that will be merged
# with the other vcluster values during vcluster create or helm install.
plugin:
contour:
image: ghcr.io/loft-sh/vcluster-generic-crd-plugin:latest
imagePullPolicy: IfNotPresent
rbac:
role:
extraRules:
- apiGroups: ["projectcontour.io"]
resources: ["httpproxies", "extensionservices"]
verbs: ["create", "delete", "patch", "update", "get", "list", "watch"]
clusterRole:
extraRules:
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get", "list", "watch"]
env:
- name: CONFIG
value: |-
version: v1beta1
mappings:
- fromVirtualCluster:
# CRD for the apiVersion+Kind is implicitly copied to the virtual cluster
apiVersion: projectcontour.io/v1
kind: HTTPProxy
patches:
- op: rewriteName
path: spec.routes..services..name
- op: rewriteName
path: spec.virtualhost.tls.secretName
sync:
secret: true
- op: rewriteName
path: spec.tcpproxy.services..name
- op: rewriteName
path: spec.includes
namePath: name
namespacePath: namespace
reversePatches:
- op: copyFromObject
fromPath: status
path: status