Visualization operator - update/delete 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               items:
34                 properties:
35                   access:
36                     type: string
37                   basicAuth:
38                     type: boolean
39                   basicAuthPassword:
40                     type: string
41                   basicAuthUser:
42                     type: string
43                   database:
44                     type: string
45                   isDefault:
46                     type: boolean
47                   jsonData:
48                     additionalProperties:
49                       type: string
50                     type: object
51                   name:
52                     type: string
53                   password:
54                     type: string
55                   readOnly:
56                     type: boolean
57                   type:
58                     type: string
59                   url:
60                     type: string
61                   user:
62                     type: string
63                   withCredentials:
64                     type: boolean
65                 required:
66                 - name
67                 - type
68                 - url
69                 - access
70                 type: object
71               type: array
72             grafana:
73               additionalProperties:
74                 type: string
75               type: object
76           required:
77           - datasources
78           - grafana
79           type: object
80         status:
81           type: object
82   version: v1alpha1
83   versions:
84   - name: v1alpha1
85     served: true
86     storage: true