github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/resources/crd/bases/gadget.kinvolk.io_traces.yaml (about) 1 2 --- 3 apiVersion: apiextensions.k8s.io/v1 4 kind: CustomResourceDefinition 5 metadata: 6 annotations: 7 controller-gen.kubebuilder.io/version: v0.4.1 8 creationTimestamp: null 9 name: traces.gadget.kinvolk.io 10 spec: 11 group: gadget.kinvolk.io 12 names: 13 kind: Trace 14 listKind: TraceList 15 plural: traces 16 singular: trace 17 scope: Namespaced 18 versions: 19 - name: v1alpha1 20 schema: 21 openAPIV3Schema: 22 description: Trace is the Schema for the traces API 23 properties: 24 apiVersion: 25 description: 'APIVersion defines the versioned schema of this representation 26 of an object. Servers should convert recognized schemas to the latest 27 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' 28 type: string 29 kind: 30 description: 'Kind is a string value representing the REST resource this 31 object represents. Servers may infer this from the endpoint the client 32 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' 33 type: string 34 metadata: 35 type: object 36 spec: 37 description: TraceSpec defines the desired state of Trace 38 properties: 39 filter: 40 description: Filter is to tell the gadget to filter events based on 41 namespace, pod name, labels or container name 42 properties: 43 containerName: 44 description: ContainerName selects events from containers with 45 this name 46 type: string 47 labels: 48 additionalProperties: 49 type: string 50 description: Labels selects events from pods with these labels 51 type: object 52 namespace: 53 description: Namespace selects events from this pod namespace 54 type: string 55 podname: 56 description: Podname selects events from this pod name 57 type: string 58 type: object 59 gadget: 60 description: Gadget is the name of the gadget such as "seccomp" 61 type: string 62 node: 63 description: Node is the name of the node on which this trace should 64 run 65 type: string 66 output: 67 description: Output allows a gadget to output the results in the specified 68 location. * With OutputMode=Status|Stream, Output is unused * With 69 OutputMode=File, Output specifies the file path * With OutputMode=ExternalResource, 70 Output specifies the external resource (such as seccompprofiles.security-profiles-operator.x-k8s.io 71 for the seccomp gadget) 72 type: string 73 outputMode: 74 description: OutputMode is "Status", "Stream", "File" or "ExternalResource" 75 enum: 76 - Status 77 - Stream 78 - File 79 - ExternalResource 80 type: string 81 parameters: 82 additionalProperties: 83 type: string 84 description: Parameters contains gadget specific configurations. 85 type: object 86 runMode: 87 description: RunMode is "Auto" to automatically start the trace as 88 soon as the resource is created, or "Manual" to be controlled by 89 the "gadget.kinvolk.io/operation" annotation 90 enum: 91 - Auto 92 - Manual 93 type: string 94 type: object 95 status: 96 description: TraceStatus defines the observed state of Trace 97 properties: 98 operationError: 99 description: OperationError is the error returned by the gadget when 100 applying the annotation gadget.kinvolk.io/operation= 101 type: string 102 operationWarning: 103 description: OperationWarning is returned by the gadget to notify 104 about a malfunction when applying the annotation gadget.kinvolk.io/operation=. 105 Unlike the OperationError that represents a fatal error, the OperationWarning 106 could be ignored according to the context. 107 type: string 108 output: 109 description: Output is the output of the gadget 110 type: string 111 state: 112 description: State is "Started", "Stopped" or "Completed" 113 enum: 114 - Started 115 - Stopped 116 - Completed 117 type: string 118 type: object 119 type: object 120 served: true 121 storage: true 122 subresources: 123 status: {} 124 status: 125 acceptedNames: 126 kind: "" 127 plural: "" 128 conditions: [] 129 storedVersions: []