Skip to content

Commit 6109daa

Browse files
authored
Merge pull request #9 from mpepping/api-deprecation
Remove API deprecation warning on CRD
2 parents f5b23f8 + 50ba486 commit 6109daa

File tree

1 file changed

+51
-46
lines changed

1 file changed

+51
-46
lines changed
Lines changed: 51 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,71 @@
11

22
---
3-
apiVersion: apiextensions.k8s.io/v1beta1
3+
apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.4.1
68
creationTimestamp: null
79
name: ippools.whereabouts.cni.cncf.io
810
spec:
911
group: whereabouts.cni.cncf.io
1012
names:
1113
kind: IPPool
14+
listKind: IPPoolList
1215
plural: ippools
13-
scope: ""
14-
validation:
15-
openAPIV3Schema:
16-
description: IPPool is the Schema for the ippools API
17-
properties:
18-
apiVersion:
19-
description: 'APIVersion defines the versioned schema of this representation
20-
of an object. Servers should convert recognized schemas to the latest
21-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
22-
type: string
23-
kind:
24-
description: 'Kind is a string value representing the REST resource this
25-
object represents. Servers may infer this from the endpoint the client
26-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
27-
type: string
28-
metadata:
29-
type: object
30-
spec:
31-
description: IPPoolSpec defines the desired state of IPPool
32-
properties:
33-
allocations:
34-
additionalProperties:
35-
description: IPAllocation represents metadata about the pod/container
36-
owner of a specific IP
37-
properties:
38-
id:
39-
type: string
40-
required:
41-
- id
42-
type: object
43-
description: Allocations is the set of allocated IPs for the given range.
44-
Its` indices are a direct mapping to the IP with the same index/offset
45-
for the pool's range.
46-
type: object
47-
range:
48-
description: Range is a RFC 4632/4291-style string that represents an
49-
IP address and prefix length in CIDR notation
50-
type: string
51-
required:
52-
- allocations
53-
- range
54-
type: object
55-
type: object
56-
version: v1alpha1
16+
singular: ippool
17+
scope: Namespaced
5718
versions:
5819
- name: v1alpha1
20+
schema:
21+
openAPIV3Schema:
22+
description: IPPool is the Schema for the ippools API
23+
properties:
24+
apiVersion:
25+
description: 'APIVersion defines the versioned schema of this representation
26+
of an object. Servers should convert recognized schemas to the latest
27+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
28+
type: string
29+
kind:
30+
description: 'Kind is a string value representing the REST resource this
31+
object represents. Servers may infer this from the endpoint the client
32+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
33+
type: string
34+
metadata:
35+
type: object
36+
spec:
37+
description: IPPoolSpec defines the desired state of IPPool
38+
properties:
39+
allocations:
40+
additionalProperties:
41+
description: IPAllocation represents metadata about the pod/container
42+
owner of a specific IP
43+
properties:
44+
id:
45+
type: string
46+
podref:
47+
type: string
48+
required:
49+
- id
50+
type: object
51+
description: Allocations is the set of allocated IPs for the given
52+
range. Its` indices are a direct mapping to the IP with the same
53+
index/offset for the pool's range.
54+
type: object
55+
range:
56+
description: Range is a RFC 4632/4291-style string that represents
57+
an IP address and prefix length in CIDR notation
58+
type: string
59+
required:
60+
- allocations
61+
- range
62+
type: object
63+
type: object
5964
served: true
6065
storage: true
6166
status:
6267
acceptedNames:
6368
kind: ""
6469
plural: ""
6570
conditions: []
66-
storedVersions: []
71+
storedVersions: []

0 commit comments

Comments
 (0)