Added Status Handler for Collectd Operator
[demo.git] / vnfs / DAaaS / microservices / collectd-operator / deploy / crds / onap_v1alpha1_collectdplugin_crd.yaml
1 apiVersion: apiextensions.k8s.io/v1beta1
2 kind: CustomResourceDefinition
3 metadata:
4   name: collectdplugins.onap.org
5 spec:
6   group: onap.org
7   names:
8     kind: CollectdPlugin
9     listKind: CollectdPluginList
10     plural: collectdplugins
11     singular: collectdplugin
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             pluginConf:
33               type: string
34             pluginName:
35               description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
36                 Important: Run "operator-sdk generate k8s" to regenerate code after
37                 modifying this file Add custom validation using kubebuilder tags:
38                 https://book.kubebuilder.io/beyond_basics/generating_crd.html'
39               type: string
40           required:
41           - pluginName
42           - pluginConf
43           type: object
44         status:
45           properties:
46             collectdAgents:
47               description: CollectdAgents are the collectd pods in the Daemonset Status
48                 can be one of "", Created, Deleting, Applied, Deprecated
49               items:
50                 type: string
51               type: array
52             status:
53               type: string
54           required:
55           - status
56           type: object
57   version: v1alpha1
58   versions:
59   - name: v1alpha1
60     served: true
61     storage: true