Skip to content
Snippets Groups Projects
Unverified Commit 017df711 authored by nurekage's avatar nurekage Committed by GitHub
Browse files

Patch Calico for V3.14.0 missing CR and CRD (#6276)

parent 00fe3d50
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ rules: ...@@ -57,6 +57,7 @@ rules:
- blockaffinities - blockaffinities
- ipamblocks - ipamblocks
- ipamhandles - ipamhandles
- hostendpoints
verbs: verbs:
- get - get
- list - list
...@@ -72,3 +73,18 @@ rules: ...@@ -72,3 +73,18 @@ rules:
- create - create
- update - update
{% endif %} {% endif %}
{% if calico_version is version('v3.14.0', '>=') %}
# KubeControllersConfiguration is where it gets its config
- apiGroups: ["crd.projectcalico.org"]
resources:
- kubecontrollersconfigurations
verbs:
# read its own config
- get
# create a default if none exists
- create
# update status
- update
# watch for changes
- watch
{% endif %}
...@@ -2740,3 +2740,18 @@ spec: ...@@ -2740,3 +2740,18 @@ spec:
served: true served: true
storage: true storage: true
{% endif %} {% endif %}
{% if calico_version is version('v3.14.0', '>=') %}
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kubecontrollersconfigurations.crd.projectcalico.org
spec:
scope: Cluster
group: crd.projectcalico.org
version: v1
names:
kind: KubeControllersConfiguration
plural: kubecontrollersconfigurations
singular: kubecontrollersconfiguration
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment