mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 23:10:35 +00:00
Add Gateway CRD
This will be used to store and report the cluster-local engine status. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
@@ -26,4 +26,18 @@ spec:
|
|||||||
kind: Endpoint
|
kind: Endpoint
|
||||||
plural: endpoints
|
plural: endpoints
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: gateways.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: submariner.io
|
||||||
|
version: v1
|
||||||
|
names:
|
||||||
|
kind: Gateway
|
||||||
|
plural: gateways
|
||||||
|
scope: Namespaced
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ rules:
|
|||||||
resources: ["configmaps"]
|
resources: ["configmaps"]
|
||||||
verbs: ["create", "get", "list", "watch", "patch", "update"]
|
verbs: ["create", "get", "list", "watch", "patch", "update"]
|
||||||
- apiGroups: ["submariner.io"]
|
- apiGroups: ["submariner.io"]
|
||||||
resources: ["clusters", "endpoints"]
|
resources: ["clusters", "endpoints", "gateways"]
|
||||||
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["events"]
|
resources: ["events"]
|
||||||
@@ -30,7 +30,7 @@ metadata:
|
|||||||
app: {{ template "submariner.name" . }}
|
app: {{ template "submariner.name" . }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ["submariner.io"]
|
- apiGroups: ["submariner.io"]
|
||||||
resources: ["clusters", "endpoints"]
|
resources: ["clusters", "endpoints", "gateways"]
|
||||||
verbs: ["create", "get", "list", "watch", "patch", "update"]
|
verbs: ["create", "get", "list", "watch", "patch", "update"]
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["pods"]
|
resources: ["pods"]
|
||||||
@@ -94,7 +94,7 @@ rules:
|
|||||||
resources: ["services", "namespaces", "pods", "nodes"]
|
resources: ["services", "namespaces", "pods", "nodes"]
|
||||||
verbs: ["get", "list", "watch", "update"]
|
verbs: ["get", "list", "watch", "update"]
|
||||||
- apiGroups: ["submariner.io"]
|
- apiGroups: ["submariner.io"]
|
||||||
resources: ["endpoints", "clusters"]
|
resources: ["clusters", "endpoints", "gateways"]
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user