Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ClusterGroup API types #1639

Merged
merged 13 commits into from
Jan 14, 2021
99 changes: 99 additions & 0 deletions build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,43 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
name: clustergroups.core.antrea.tanzu.vmware.com
spec:
group: core.antrea.tanzu.vmware.com
names:
kind: ClusterGroup
plural: clustergroups
shortNames:
- cg
singular: group
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
properties:
spec:
properties:
ipBlock:
properties:
cidr:
format: cidr
type: string
type: object
namespaceSelector:
x-kubernetes-preserve-unknown-fields: true
podSelector:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -714,6 +751,45 @@ metadata:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
name: aggregate-antrea-clustergroups-edit
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- clustergroups
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
rbac.authorization.k8s.io/aggregate-to-view: "true"
name: aggregate-antrea-clustergroups-view
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- clustergroups
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -1093,6 +1169,7 @@ rules:
- core.antrea.tanzu.vmware.com
resources:
- externalentities
- clustergroups
verbs:
- get
- watch
Expand Down Expand Up @@ -1853,3 +1930,25 @@ webhooks:
scope: Namespaced
sideEffects: None
timeoutSeconds: 5
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: antrea
namespace: kube-system
path: /validate/clustergroup
name: clustergroupvalidator.antrea.tanzu.vmware.com
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- clustergroups
scope: Cluster
sideEffects: None
timeoutSeconds: 5
99 changes: 99 additions & 0 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,43 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
name: clustergroups.core.antrea.tanzu.vmware.com
spec:
group: core.antrea.tanzu.vmware.com
names:
kind: ClusterGroup
plural: clustergroups
shortNames:
- cg
singular: group
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
properties:
spec:
properties:
ipBlock:
properties:
cidr:
format: cidr
type: string
type: object
namespaceSelector:
x-kubernetes-preserve-unknown-fields: true
podSelector:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -714,6 +751,45 @@ metadata:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
name: aggregate-antrea-clustergroups-edit
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- clustergroups
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
rbac.authorization.k8s.io/aggregate-to-view: "true"
name: aggregate-antrea-clustergroups-view
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- clustergroups
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -1093,6 +1169,7 @@ rules:
- core.antrea.tanzu.vmware.com
resources:
- externalentities
- clustergroups
verbs:
- get
- watch
Expand Down Expand Up @@ -1855,3 +1932,25 @@ webhooks:
scope: Namespaced
sideEffects: None
timeoutSeconds: 5
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: antrea
namespace: kube-system
path: /validate/clustergroup
name: clustergroupvalidator.antrea.tanzu.vmware.com
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- clustergroups
scope: Cluster
sideEffects: None
timeoutSeconds: 5
99 changes: 99 additions & 0 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,43 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
name: clustergroups.core.antrea.tanzu.vmware.com
spec:
group: core.antrea.tanzu.vmware.com
names:
kind: ClusterGroup
plural: clustergroups
shortNames:
- cg
singular: group
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
properties:
spec:
properties:
ipBlock:
properties:
cidr:
format: cidr
type: string
type: object
namespaceSelector:
x-kubernetes-preserve-unknown-fields: true
podSelector:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -714,6 +751,45 @@ metadata:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
name: aggregate-antrea-clustergroups-edit
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- clustergroups
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
rbac.authorization.k8s.io/aggregate-to-view: "true"
name: aggregate-antrea-clustergroups-view
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- clustergroups
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -1093,6 +1169,7 @@ rules:
- core.antrea.tanzu.vmware.com
resources:
- externalentities
- clustergroups
verbs:
- get
- watch
Expand Down Expand Up @@ -1853,3 +1930,25 @@ webhooks:
scope: Namespaced
sideEffects: None
timeoutSeconds: 5
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: antrea
namespace: kube-system
path: /validate/clustergroup
name: clustergroupvalidator.antrea.tanzu.vmware.com
rules:
- apiGroups:
- core.antrea.tanzu.vmware.com
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- clustergroups
scope: Cluster
sideEffects: None
timeoutSeconds: 5
Loading