Skip to content

Commit

Permalink
Patch Calico for V3.14.0 missing CR and CRD (kubernetes-sigs#6276)
Browse files Browse the repository at this point in the history
  • Loading branch information
emerinodonahue-orange authored Jul 1, 2020
1 parent 00fe3d5 commit 017df71
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ rules:
- blockaffinities
- ipamblocks
- ipamhandles
- hostendpoints
verbs:
- get
- list
Expand All @@ -72,3 +73,18 @@ rules:
- create
- update
{% 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 %}
15 changes: 15 additions & 0 deletions roles/network_plugin/calico/templates/kdd-crds.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2740,3 +2740,18 @@ spec:
served: true
storage: true
{% 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 comments on commit 017df71

Please sign in to comment.