Introduce APIs to support multiple ClusterCIDRs (#108290)

* Introduce networking/v1alpha1 api, ClusterCIDRConfig type

Introduce networking/v1alpha1 api group.

Add `ClusterCIDRConfig` type to networking/v1alpha1 api group, this type
will enable the NodeIPAM controller to support multiple ClusterCIDRs.

* Change ClusterCIDRConfig.NodeSelector type in api

* Fix review comments for API

* Update ClusterCIDRConfig API Spec

Introduce PerNodeHostBits field, remove PerNodeMaskSize
This commit is contained in:
Sarvesh Rangnekar
2022-03-30 19:39:00 -07:00
committed by GitHub
parent 8b158fa730
commit b9792a9dae
99 changed files with 8758 additions and 1 deletions

View File

@@ -251,6 +251,7 @@ func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding)
// used for pod eviction
rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),
rbacv1helpers.NewRule("list", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
rbacv1helpers.NewRule("get", "list").Groups(networkingGroup).Resources("clustercidrconfigs").RuleOrDie(),
eventsRule(),
},
})

View File

@@ -907,6 +907,13 @@ items:
verbs:
- delete
- list
- apiGroups:
- networking.k8s.io
resources:
- clustercidrconfigs
verbs:
- get
- list
- apiGroups:
- ""
- events.k8s.io