Automation scripts for vFW_CNF_CDS usecase
[demo.git] / heat / vFW_CNF_CDS / automation / crds / crd1
1 apiVersion: apiextensions.k8s.io/v1beta1
2 kind: CustomResourceDefinition
3 metadata:
4   name: networks.k8s.plugin.opnfv.org
5 spec:
6   group: k8s.plugin.opnfv.org
7   names:
8     kind: Network
9     listKind: NetworkList
10     plural: networks
11     singular: network
12   scope: Namespaced
13   subresources:
14     status: {}
15   validation:
16     openAPIV3Schema:
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           properties:
32             cniType:
33               description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
34                 Important: Run "operator-sdk generate k8s" to regenerate code after
35                 modifying this file Add custom validation using kubebuilder tags:
36                 https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
37               type: string
38             dns:
39               properties:
40                 domain:
41                   type: string
42                 nameservers:
43                   items:
44                     type: string
45                   type: array
46                 options:
47                   items:
48                     type: string
49                   type: array
50                 search:
51                   items:
52                     type: string
53                   type: array
54               type: object
55             ipv4Subnets:
56               items:
57                 properties:
58                   excludeIps:
59                     type: string
60                   gateway:
61                     type: string
62                   name:
63                     type: string
64                   subnet:
65                     type: string
66                 required:
67                 - name
68                 - subnet
69                 type: object
70               type: array
71             ipv6Subnets:
72               items:
73                 properties:
74                   excludeIps:
75                     type: string
76                   gateway:
77                     type: string
78                   name:
79                     type: string
80                   subnet:
81                     type: string
82                 required:
83                 - name
84                 - subnet
85                 type: object
86               type: array
87             routes:
88               items:
89                 properties:
90                   dst:
91                     type: string
92                   gw:
93                     type: string
94                 required:
95                 - dst
96                 type: object
97               type: array
98           required:
99           - cniType
100           - ipv4Subnets
101           type: object
102         status:
103           properties:
104             state:
105               description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
106                 of cluster Important: Run "operator-sdk generate k8s" to regenerate
107                 code after modifying this file Add custom validation using kubebuilder
108                 tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
109               type: string
110           required:
111           - state
112           type: object
113   version: v1alpha1
114   versions:
115   - name: v1alpha1
116     served: true
117     storage: true