Add description fields to NetworkAttachmentDefinition CRD

This commit is contained in:
dougbtv
2020-04-14 15:48:00 -04:00
committed by Tomofumi Hayashi
parent 6ccf03e8b3
commit 8fff5aac60
4 changed files with 46 additions and 16 deletions

View File

@@ -1,11 +1,10 @@
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: network-attachment-definitions.k8s.cni.cncf.io name: network-attachment-definitions.k8s.cni.cncf.io
spec: spec:
group: k8s.cni.cncf.io group: k8s.cni.cncf.io
version: v1
scope: Namespaced scope: Namespaced
names: names:
plural: network-attachment-definitions plural: network-attachment-definitions
@@ -13,13 +12,24 @@ spec:
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
shortNames: shortNames:
- net-attach-def - net-attach-def
validation: versions:
openAPIV3Schema: - name: v1
properties: served: true
spec: storage: true
schema:
openAPIV3Schema:
description: 'NetworkAttachmentDefinition is a CRD schema specified by the Network Plumbing
Working Group to express the intent for attaching pods to one or more logical or physical
networks. More information available at: https://github.com/k8snetworkplumbingwg/multi-net-spec'
type: object
properties: properties:
config: spec:
type: string description: 'NetworkAttachmentDefinition spec defines the desired state of a network attachment'
type: object
properties:
config:
description: 'NetworkAttachmentDefinition config is a JSON-formatted CNI configuration'
type: string
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1beta1

View File

@@ -18,12 +18,17 @@ spec:
storage: true storage: true
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: 'NetworkAttachmentDefinition is a CRD schema specified by the Network Plumbing
Working Group to express the intent for attaching pods to one or more logical or physical
networks. More information available at: https://github.com/k8snetworkplumbingwg/multi-net-spec'
type: object type: object
properties: properties:
spec: spec:
description: 'NetworkAttachmentDefinition spec defines the desired state of a network attachment'
type: object type: object
properties: properties:
config: config:
description: 'NetworkAttachmentDefinition config is a JSON-formatted CNI configuration'
type: string type: string
--- ---
kind: ClusterRole kind: ClusterRole

View File

@@ -1,11 +1,10 @@
--- ---
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: network-attachment-definitions.k8s.cni.cncf.io name: network-attachment-definitions.k8s.cni.cncf.io
spec: spec:
group: k8s.cni.cncf.io group: k8s.cni.cncf.io
version: v1
scope: Namespaced scope: Namespaced
names: names:
plural: network-attachment-definitions plural: network-attachment-definitions
@@ -13,13 +12,24 @@ spec:
kind: NetworkAttachmentDefinition kind: NetworkAttachmentDefinition
shortNames: shortNames:
- net-attach-def - net-attach-def
validation: versions:
openAPIV3Schema: - name: v1
properties: served: true
spec: storage: true
schema:
openAPIV3Schema:
description: 'NetworkAttachmentDefinition is a CRD schema specified by the Network Plumbing
Working Group to express the intent for attaching pods to one or more logical or physical
networks. More information available at: https://github.com/k8snetworkplumbingwg/multi-net-spec'
type: object
properties: properties:
config: spec:
type: string description: 'NetworkAttachmentDefinition spec defines the desired state of a network attachment'
type: object
properties:
config:
description: 'NetworkAttachmentDefinition config is a JSON-formatted CNI configuration'
type: string
--- ---
kind: ClusterRole kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1beta1

View File

@@ -18,12 +18,17 @@ spec:
storage: true storage: true
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: 'NetworkAttachmentDefinition is a CRD schema specified by the Network Plumbing
Working Group to express the intent for attaching pods to one or more logical or physical
networks. More information available at: https://github.com/k8snetworkplumbingwg/multi-net-spec'
type: object type: object
properties: properties:
spec: spec:
description: 'NetworkAttachmentDefinition spec defines the desired state of a network attachment'
type: object type: object
properties: properties:
config: config:
description: 'NetworkAttachmentDefinition config is a JSON-formatted CNI configuration'
type: string type: string
--- ---
kind: ClusterRole kind: ClusterRole