visualization operator: Add datasource
[demo.git] / vnfs / DAaaS / microservices / visualization-operator / deploy / crds / onap_v1alpha1_grafanadatasource_crd.yaml
1 apiVersion: apiextensions.k8s.io/v1beta1
2 kind: CustomResourceDefinition
3 metadata:
4   name: grafanadatasources.onap.org
5 spec:
6   group: onap.org
7   names:
8     kind: GrafanaDataSource
9     listKind: GrafanaDataSourceList
10     plural: grafanadatasources
11     singular: grafanadatasource
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             datasources:
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               items:
38                 properties:
39                   access:
40                     type: string
41                   basicAuth:
42                     type: boolean
43                   basicAuthPassword:
44                     type: string
45                   basicAuthUser:
46                     type: string
47                   database:
48                     type: string
49                   isDefault:
50                     type: boolean
51                   jsonData:
52                     additionalProperties:
53                       type: string
54                     type: object
55                   name:
56                     type: string
57                   password:
58                     type: string
59                   readOnly:
60                     type: boolean
61                   type:
62                     type: string
63                   url:
64                     type: string
65                   user:
66                     type: string
67                   withCredentials:
68                     type: boolean
69                 required:
70                 - name
71                 - type
72                 - url
73                 - access
74                 type: object
75               type: array
76             grafana:
77               additionalProperties:
78                 type: string
79               type: object
80           required:
81           - datasources
82           - grafana
83           type: object
84         status:
85           type: object
86   version: v1alpha1
87   versions:
88   - name: v1alpha1
89     served: true
90     storage: true