Skip to content

Commit 5df0166

Browse files
Merge pull request #2770 from maiqueb/update-ipamclaim-crd
CORENET-6279: ovn-k, virt: update IPAMClaim CRD
2 parents 26e8dc5 + 36ad209 commit 5df0166

File tree

1 file changed

+81
-7
lines changed

1 file changed

+81
-7
lines changed

bindata/network/ovn-kubernetes/common/001-crd.yaml

Lines changed: 81 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,7 @@ apiVersion: apiextensions.k8s.io/v1
31063106
kind: CustomResourceDefinition
31073107
metadata:
31083108
annotations:
3109-
controller-gen.kubebuilder.io/version: v0.13.0
3109+
controller-gen.kubebuilder.io/version: v0.16.5
31103110
name: ipamclaims.k8s.cni.cncf.io
31113111
spec:
31123112
group: k8s.cni.cncf.io
@@ -3123,14 +3123,19 @@ spec:
31233123
description: IPAMClaim is the Schema for the IPAMClaim API
31243124
properties:
31253125
apiVersion:
3126-
description: 'APIVersion defines the versioned schema of this representation
3127-
of an object. Servers should convert recognized schemas to the latest
3128-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
3126+
description: |-
3127+
APIVersion defines the versioned schema of this representation of an object.
3128+
Servers should convert recognized schemas to the latest internal value, and
3129+
may reject unrecognized values.
3130+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
31293131
type: string
31303132
kind:
3131-
description: 'Kind is a string value representing the REST resource this
3132-
object represents. Servers may infer this from the endpoint the client
3133-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
3133+
description: |-
3134+
Kind is a string value representing the REST resource this object represents.
3135+
Servers may infer this from the endpoint the client submits requests to.
3136+
Cannot be updated.
3137+
In CamelCase.
3138+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
31343139
type: string
31353140
metadata:
31363141
type: object
@@ -3149,13 +3154,82 @@ spec:
31493154
- network
31503155
type: object
31513156
status:
3157+
description: IPAMClaimStatus contains the observed status of the IPAMClaim.
31523158
properties:
3159+
{{- if .OVN_PRE_CONF_UDN_ADDR_ENABLE }}
3160+
conditions:
3161+
description: Conditions contains details for one aspect of the current
3162+
state of this API Resource
3163+
items:
3164+
description: Condition contains details for one aspect of the current
3165+
state of this API Resource.
3166+
properties:
3167+
lastTransitionTime:
3168+
description: |-
3169+
lastTransitionTime is the last time the condition transitioned from one status to another.
3170+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
3171+
format: date-time
3172+
type: string
3173+
message:
3174+
description: |-
3175+
message is a human readable message indicating details about the transition.
3176+
This may be an empty string.
3177+
maxLength: 32768
3178+
type: string
3179+
observedGeneration:
3180+
description: |-
3181+
observedGeneration represents the .metadata.generation that the condition was set based upon.
3182+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
3183+
with respect to the current state of the instance.
3184+
format: int64
3185+
minimum: 0
3186+
type: integer
3187+
reason:
3188+
description: |-
3189+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
3190+
Producers of specific condition types may define expected values and meanings for this field,
3191+
and whether the values are considered a guaranteed API.
3192+
The value should be a CamelCase string.
3193+
This field may not be empty.
3194+
maxLength: 1024
3195+
minLength: 1
3196+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
3197+
type: string
3198+
status:
3199+
description: status of the condition, one of True, False, Unknown.
3200+
enum:
3201+
- "True"
3202+
- "False"
3203+
- Unknown
3204+
type: string
3205+
type:
3206+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
3207+
maxLength: 316
3208+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
3209+
type: string
3210+
required:
3211+
- lastTransitionTime
3212+
- message
3213+
- reason
3214+
- status
3215+
- type
3216+
type: object
3217+
type: array
3218+
{{- end }}
31533219
ips:
31543220
description: The list of IP addresses (v4, v6) that were allocated
31553221
for the pod interface
31563222
items:
31573223
type: string
31583224
type: array
3225+
{{- if .OVN_PRE_CONF_UDN_ADDR_ENABLE }}
3226+
ownerPod:
3227+
description: The name of the pod holding the IPAMClaim
3228+
properties:
3229+
name:
3230+
type: string
3231+
type: object
3232+
{{- end }}
31593233
required:
31603234
- ips
31613235
type: object

0 commit comments

Comments
 (0)