1aa6753d80
I newly added CRD, KuryrPort, we noticed, that vifs key, which is now under 'spec' object, is rather a thing which could be represented as the CRD status. In this patch we propose to move vifs data under the status key. Depends-On: I2cb66e25534e44b79f660b10498086aa88ad805c Change-Id: I71385799775f9f9cc928e4d39a0fd443c98b53c6
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: kuryrports.openstack.org
|
|
spec:
|
|
group: openstack.org
|
|
scope: Namespaced
|
|
names:
|
|
plural: kuryrports
|
|
singular: kuryrport
|
|
kind: KuryrPort
|
|
shortNames:
|
|
- kp
|
|
versions:
|
|
- name: v1
|
|
served: true
|
|
storage: true
|
|
schema:
|
|
openAPIV3Schema:
|
|
type: object
|
|
properties:
|
|
spec:
|
|
type: object
|
|
required:
|
|
- podUid
|
|
- podNodeName
|
|
properties:
|
|
podUid:
|
|
type: string
|
|
podNodeName:
|
|
type: string
|
|
status:
|
|
type: object
|
|
required:
|
|
- vifs
|
|
properties:
|
|
vifs:
|
|
type: object
|
|
x-kubernetes-preserve-unknown-fields: true
|
|
additionalPrinterColumns:
|
|
- name: PodUID
|
|
type: string
|
|
description: Pod UID
|
|
jsonPath: .spec.podUid
|
|
- name: Nodename
|
|
type: string
|
|
description: Name of the node corresponding pod lives in
|
|
jsonPath: .spec.podNodeName
|
|
- name: labels
|
|
type: string
|
|
description: Labels for the CRD
|
|
jsonPath: .metadata.labels
|