From e7283195eaa293059ab5d035ac12c5d4e885d190 Mon Sep 17 00:00:00 2001 From: VEDANT SHROTRIA <40681425+Jonsy13@users.noreply.github.com> Date: Mon, 17 May 2021 13:02:44 +0530 Subject: [PATCH] Added CRD for Event-tracker (#2812) Signed-off-by: Jonsy13 --- .../manifests/cluster/2a_litmus_crds.yaml | 85 ++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/litmus-portal/graphql-server/manifests/cluster/2a_litmus_crds.yaml b/litmus-portal/graphql-server/manifests/cluster/2a_litmus_crds.yaml index 3d506f12f10..9e9df1550a5 100644 --- a/litmus-portal/graphql-server/manifests/cluster/2a_litmus_crds.yaml +++ b/litmus-portal/graphql-server/manifests/cluster/2a_litmus_crds.yaml @@ -654,4 +654,87 @@ spec: subresources: {} conversion: strategy: None - \ No newline at end of file +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.2.5 + creationTimestamp: null + name: eventtrackerpolicies.eventtracker.litmuschaos.io +spec: + group: eventtracker.litmuschaos.io + names: + kind: EventTrackerPolicy + listKind: EventTrackerPolicyList + plural: eventtrackerpolicies + singular: eventtrackerpolicy + scope: Namespaced + validation: + openAPIV3Schema: + description: EventTrackerPolicy is the Schema for the eventtrackerpolicies API + 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: EventTrackerPolicySpec defines the desired state of EventTrackerPolicy + properties: + condition_type: + description: Foo is an example field of EventTrackerPolicy. Edit EventTrackerPolicy_types.go + to remove/update + type: string + conditions: + items: + properties: + key: + type: string + operator: + type: string + value: + type: string + type: object + type: array + type: object + statuses: + items: + description: EventTrackerPolicyStatus defines the observed state of EventTrackerPolicy + properties: + is_triggered: + type: string + resource: + type: string + resource_name: + type: string + result: + type: string + time_stamp: + description: 'INSERT ADDITIONAL STATUS FIELD - define observed state + of cluster Important: Run "make" to regenerate code after modifying + this file' + type: string + workflow_id: + type: string + type: object + type: array + type: object + version: v1 + versions: + - name: v1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] \ No newline at end of file