Skip to content

Commit 04e5f2e

Browse files
authored
Merge pull request #3349 from jackfrancis/cherry-pick-3345-to-release-1.7
[release-1.7] include IPAMConfig CRD w/ ClusterResourceSets
2 parents ca6ebb5 + 6548e59 commit 04e5f2e

10 files changed

+3075
-839
lines changed

templates/addons/windows/calico/calico.yaml

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data:
3636
}
3737
}
3838
]
39-
}
39+
}
4040
---
4141
kind: ConfigMap
4242
apiVersion: v1
@@ -48,7 +48,7 @@ metadata:
4848
app: calico
4949
data:
5050
veth_mtu: "1350"
51-
51+
5252
cni_network_config: |
5353
{
5454
"name": "Calico",
@@ -274,3 +274,61 @@ spec:
274274
- name: kubeadm-config
275275
configMap:
276276
name: kubeadm-config
277+
---
278+
apiVersion: apiextensions.k8s.io/v1
279+
kind: CustomResourceDefinition
280+
metadata:
281+
name: ipamconfigs.crd.projectcalico.org
282+
spec:
283+
group: crd.projectcalico.org
284+
names:
285+
kind: IPAMConfig
286+
listKind: IPAMConfigList
287+
plural: ipamconfigs
288+
singular: ipamconfig
289+
preserveUnknownFields: false
290+
scope: Cluster
291+
versions:
292+
- name: v1
293+
schema:
294+
openAPIV3Schema:
295+
properties:
296+
apiVersion:
297+
description: 'APIVersion defines the versioned schema of this representation
298+
of an object. Servers should convert recognized schemas to the latest
299+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
300+
type: string
301+
kind:
302+
description: 'Kind is a string value representing the REST resource this
303+
object represents. Servers may infer this from the endpoint the client
304+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
305+
type: string
306+
metadata:
307+
type: object
308+
spec:
309+
description: IPAMConfigSpec contains the specification for an IPAMConfig
310+
resource.
311+
properties:
312+
autoAllocateBlocks:
313+
type: boolean
314+
maxBlocksPerHost:
315+
description: MaxBlocksPerHost, if non-zero, is the max number of blocks
316+
that can be affine to each host.
317+
maximum: 2147483647
318+
minimum: 0
319+
type: integer
320+
strictAffinity:
321+
type: boolean
322+
required:
323+
- autoAllocateBlocks
324+
- strictAffinity
325+
type: object
326+
type: object
327+
served: true
328+
storage: true
329+
status:
330+
acceptedNames:
331+
kind: ""
332+
plural: ""
333+
conditions: []
334+
storedVersions: []

0 commit comments

Comments
 (0)