Add ServiceExport CRD

This commit is contained in:
Vishal Thapar
2020-05-15 00:41:54 +02:00
committed by Miguel Angel Ajo Pelayo
parent 40538471b6
commit 97e83e4fc8
4 changed files with 28 additions and 2 deletions
+13
View File
@@ -57,5 +57,18 @@ spec:
type: "string" type: "string"
port: port:
type: "integer" type: "integer"
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: serviceexports.lighthouse.submariner.io
spec:
group: lighthouse.submariner.io
version: v2alpha1
names:
kind: ServiceExport
plural: serviceexports
singular: serviceexport
scope: Namespaced
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
+1 -1
View File
@@ -13,7 +13,7 @@ rules:
resources: ["clusters", "endpoints"] resources: ["clusters", "endpoints"]
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"] verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
- apiGroups: ["lighthouse.submariner.io"] - apiGroups: ["lighthouse.submariner.io"]
resources: ["multiclusterservices"] resources: ["*"]
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"] verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
+13
View File
@@ -76,5 +76,18 @@ spec:
type: "string" type: "string"
port: port:
type: "integer" type: "integer"
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: serviceexports.lighthouse.submariner.io
spec:
group: lighthouse.submariner.io
version: v2alpha1
names:
kind: ServiceExport
plural: serviceexports
singular: serviceexport
scope: Namespaced
{{- end }} {{- end }}
{{- end -}} {{- end -}}
+1 -1
View File
@@ -121,7 +121,7 @@ rules:
resources: ["services", "namespaces"] resources: ["services", "namespaces"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
- apiGroups: ["lighthouse.submariner.io"] - apiGroups: ["lighthouse.submariner.io"]
resources: ["multiclusterservices"] resources: ["*"]
verbs: ["create", "get", "list", "watch", "update", "delete"] verbs: ["create", "get", "list", "watch", "update", "delete"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1