diff options
author | 2019-05-28 15:02:54 -0700 | |
---|---|---|
committer | 2019-05-30 20:40:06 +0000 | |
commit | 20d2faee7b9a36a50371854a3688b6421a70ebcb (patch) | |
tree | 0aaf24c7f69e1efe3190ddd146e3d26ce234c6b0 /vnfs/DAaaS/collectd-operator/deploy/crds | |
parent | d3d776d1260f6ba6dbaa483399ed8e2889d72a59 (diff) |
Collectd Operator API
Define spec for CollectdPlugin CRD.
Create CRD and sample CR for CollectdPlugin and autogenerated code.
Updated Makefile and deployment artifacts.
Issue-ID: ONAPARC-461
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Change-Id: I10bc198976b415efcfab01258342abbd2b4dfcc9
Diffstat (limited to 'vnfs/DAaaS/collectd-operator/deploy/crds')
-rw-r--r-- | vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_cr.yaml | 10 | ||||
-rw-r--r-- | vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_crd.yaml | 65 |
2 files changed, 75 insertions, 0 deletions
diff --git a/vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_cr.yaml b/vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_cr.yaml new file mode 100644 index 00000000..a4684293 --- /dev/null +++ b/vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_cr.yaml @@ -0,0 +1,10 @@ +apiVersion: onap.org/v1alpha1 +kind: CollectdPlugin +metadata: + name: example-collectdplugin +spec: + # Add fields here + pluginName: "cpu" + pluginConf: | + <Plugin "cpu"> + </Plugin> diff --git a/vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_crd.yaml b/vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_crd.yaml new file mode 100644 index 00000000..9b944f48 --- /dev/null +++ b/vnfs/DAaaS/collectd-operator/deploy/crds/onap_v1alpha1_collectdplugin_crd.yaml @@ -0,0 +1,65 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: collectdplugins.onap.org +spec: + group: onap.org + names: + kind: CollectdPlugin + listKind: CollectdPluginList + plural: collectdplugins + singular: collectdplugin + scope: Namespaced + subresources: + status: {} + validation: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + pluginConf: + type: string + pluginName: + description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster + Important: Run "operator-sdk generate k8s" to regenerate code after + modifying this file Add custom validation using kubebuilder tags: + https://book.kubebuilder.io/beyond_basics/generating_crd.html' + type: string + required: + - pluginName + - pluginConf + type: object + status: + properties: + collectdAgents: + description: 'INSERT ADDITIONAL STATUS FIELD - define observed state + of cluster Important: Run "operator-sdk generate k8s" to regenerate + code after modifying this file Add custom validation using kubebuilder + tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html + CollectdAgents are the collectd pods in the Daemonset' + items: + type: string + type: array + collectdConf: + type: object + required: + - collectdAgents + - collectdConf + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true |