Skip to content

Commit

Permalink
Add support for Calico IPPools deletecollection
Browse files Browse the repository at this point in the history
When Submariner is uninstalled the Calico IPPools
are deleted using DeleteCollection command.

This PR updates submariner-routeagent RBAC to support
IPPools deletecollection.

Signed-off-by: Yossi Boaron <yboaron@redhat.com>
  • Loading branch information
yboaron authored and tpantelis committed Oct 30, 2023
1 parent c614a43 commit ecaa61a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions config/rbac/submariner-route-agent/cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ rules:
- create
- delete
- update
- deletecollection
23 changes: 12 additions & 11 deletions pkg/embeddedyamls/yamls.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: brokers.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -93,7 +93,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: submariners.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1054,7 +1054,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: servicediscoveries.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1205,7 +1205,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: clusters.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1271,7 +1271,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: endpoints.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1347,7 +1347,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: gateways.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1514,7 +1514,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: clusterglobalegressips.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1646,7 +1646,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: globalegressips.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1827,7 +1827,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: globalingressips.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -1977,7 +1977,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: gatewayroutes.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -2033,7 +2033,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
controller-gen.kubebuilder.io/version: v0.13.0
name: nongatewayroutes.submariner.io
spec:
group: submariner.io
Expand Down Expand Up @@ -3061,6 +3061,7 @@ rules:
- create
- delete
- update
- deletecollection
`
Config_rbac_submariner_route_agent_cluster_role_binding_yaml = `---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit ecaa61a

Please sign in to comment.