|
| 1 | +# This file is generated. Do not edit. |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.13.0 |
| 7 | + {{- range $key, $val := .Values.commonAnnotations }} |
| 8 | + {{ $key | quote }}: {{ $val | quote }} |
| 9 | + {{- end }} |
| 10 | + labels: |
| 11 | + {{- range $key, $val := .Values.commonLabels }} |
| 12 | + {{ $key | quote }}: {{ $val | quote }} |
| 13 | + {{- end }} |
| 14 | + name: jobs.signadot.com |
| 15 | +spec: |
| 16 | + group: signadot.com |
| 17 | + names: |
| 18 | + kind: Job |
| 19 | + listKind: JobList |
| 20 | + plural: jobs |
| 21 | + shortNames: |
| 22 | + - sdjb |
| 23 | + singular: job |
| 24 | + scope: Cluster |
| 25 | + versions: |
| 26 | + - name: v1 |
| 27 | + schema: |
| 28 | + openAPIV3Schema: |
| 29 | + properties: |
| 30 | + apiVersion: |
| 31 | + description: 'APIVersion defines the versioned schema of this representation |
| 32 | + of an object. Servers should convert recognized schemas to the latest |
| 33 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 34 | + type: string |
| 35 | + kind: |
| 36 | + description: 'Kind is a string value representing the REST resource this |
| 37 | + object represents. Servers may infer this from the endpoint the client |
| 38 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 39 | + type: string |
| 40 | + metadata: |
| 41 | + type: object |
| 42 | + spec: |
| 43 | + properties: |
| 44 | + artifacts: |
| 45 | + description: List of artifacts to be kept after running the job. |
| 46 | + items: |
| 47 | + properties: |
| 48 | + meta: |
| 49 | + additionalProperties: |
| 50 | + type: string |
| 51 | + description: Metadata to be included in the discovered artifacts |
| 52 | + (retrievable from the artifacts API) |
| 53 | + type: object |
| 54 | + path: |
| 55 | + description: Path from where to look for artifacts after running |
| 56 | + the job. |
| 57 | + type: string |
| 58 | + required: |
| 59 | + - path |
| 60 | + type: object |
| 61 | + type: array |
| 62 | + x-kubernetes-validations: |
| 63 | + - message: Artifacts is immutable |
| 64 | + rule: self == oldSelf |
| 65 | + canceled: |
| 66 | + default: false |
| 67 | + description: Canceled specifies whether the current job should be |
| 68 | + canceled |
| 69 | + type: boolean |
| 70 | + content: |
| 71 | + description: Job content |
| 72 | + properties: |
| 73 | + command: |
| 74 | + description: A command to be executed. Only one of "Command" or |
| 75 | + "Script" should be defined. |
| 76 | + items: |
| 77 | + type: string |
| 78 | + type: array |
| 79 | + script: |
| 80 | + description: 'The script to be executed. It should explicitly |
| 81 | + declare its interpreter (e.g.: #!/bin/bash). Only one of "Command" |
| 82 | + or "Script" should be defined.' |
| 83 | + type: string |
| 84 | + type: object |
| 85 | + x-kubernetes-validations: |
| 86 | + - message: Content is immutable |
| 87 | + rule: self == oldSelf |
| 88 | + env: |
| 89 | + description: List of environment variables to set in the job. |
| 90 | + items: |
| 91 | + properties: |
| 92 | + name: |
| 93 | + description: Environmental variable name |
| 94 | + type: string |
| 95 | + value: |
| 96 | + description: Environmental variable value |
| 97 | + type: string |
| 98 | + required: |
| 99 | + - name |
| 100 | + type: object |
| 101 | + type: array |
| 102 | + x-kubernetes-validations: |
| 103 | + - message: Env is immutable |
| 104 | + rule: self == oldSelf |
| 105 | + routingContext: |
| 106 | + description: Routing context used for running the job (empty means |
| 107 | + running against the baseline) |
| 108 | + properties: |
| 109 | + routegroupName: |
| 110 | + description: RouteGroup name |
| 111 | + type: string |
| 112 | + sandboxName: |
| 113 | + description: Sandbox name (SDS object name) |
| 114 | + type: string |
| 115 | + type: object |
| 116 | + x-kubernetes-validations: |
| 117 | + - message: RoutingContext is immutable |
| 118 | + rule: self == oldSelf |
| 119 | + runnerGroup: |
| 120 | + description: Job runner group responsible for running this job |
| 121 | + properties: |
| 122 | + name: |
| 123 | + type: string |
| 124 | + namespace: |
| 125 | + type: string |
| 126 | + required: |
| 127 | + - name |
| 128 | + - namespace |
| 129 | + type: object |
| 130 | + x-kubernetes-validations: |
| 131 | + - message: RunnerGroup is immutable |
| 132 | + rule: self == oldSelf |
| 133 | + timeout: |
| 134 | + description: Timeout indicates an optional timeout to enforce on the |
| 135 | + Job. It applies only to the execution of the specified script (the |
| 136 | + upload of artifacts is not affected by this timeout). If it exceeds |
| 137 | + the associated RunnerGroup's timeout and that RunnerGroup does not |
| 138 | + allow increasing timeouts, the smallest timeout will be used. |
| 139 | + type: string |
| 140 | + x-kubernetes-validations: |
| 141 | + - message: Timeout is immutable |
| 142 | + rule: self == oldSelf |
| 143 | + required: |
| 144 | + - canceled |
| 145 | + - content |
| 146 | + - runnerGroup |
| 147 | + type: object |
| 148 | + status: |
| 149 | + properties: |
| 150 | + conditions: |
| 151 | + description: 'Conditions is a list of conditions that matches the |
| 152 | + conventions expected by kubectl, allowing our CRDs to work with: |
| 153 | + kubectl wait --for=condition=...' |
| 154 | + items: |
| 155 | + description: "StatusCondition is a condition struct that matches |
| 156 | + the conventions expected by kubectl, allowing our CRDs to work |
| 157 | + with: kubectl wait --for=condition=... \n StatusConditions must |
| 158 | + follow the following discipline in reconciliation: The operator |
| 159 | + MUST always populate all the condition types in a SignadotSandboxStatus |
| 160 | + struct, irrespective of whether the condition is known or not |
| 161 | + (see corev1.ConditionUnknown) so that access via a k8s client |
| 162 | + can determine whether the capability is supported in the operator." |
| 163 | + properties: |
| 164 | + lastTransitionTime: |
| 165 | + format: date-time |
| 166 | + type: string |
| 167 | + message: |
| 168 | + type: string |
| 169 | + reason: |
| 170 | + type: string |
| 171 | + status: |
| 172 | + type: string |
| 173 | + type: |
| 174 | + type: string |
| 175 | + required: |
| 176 | + - status |
| 177 | + - type |
| 178 | + type: object |
| 179 | + type: array |
| 180 | + observedAt: |
| 181 | + description: Time at which the job was reconciled |
| 182 | + format: date-time |
| 183 | + type: string |
| 184 | + observedGeneration: |
| 185 | + description: ObservedGeneration provides the Generation of the last |
| 186 | + Job seen by the controller. |
| 187 | + format: int64 |
| 188 | + type: integer |
| 189 | + runner: |
| 190 | + description: Information about the job runner assigned to this job |
| 191 | + properties: |
| 192 | + runnerGroupVersion: |
| 193 | + description: RunnerGroupVersion indicates the job runner group |
| 194 | + version from the assigned pod (as specified in the JobRunnerGroupVersionLabel |
| 195 | + label) |
| 196 | + type: string |
| 197 | + runnerPod: |
| 198 | + description: RunnerPod is a reference to the pod assigned for |
| 199 | + running this job |
| 200 | + properties: |
| 201 | + name: |
| 202 | + type: string |
| 203 | + namespace: |
| 204 | + type: string |
| 205 | + required: |
| 206 | + - name |
| 207 | + - namespace |
| 208 | + type: object |
| 209 | + required: |
| 210 | + - runnerPod |
| 211 | + type: object |
| 212 | + state: |
| 213 | + description: State holds details about the job's current condition |
| 214 | + properties: |
| 215 | + running: |
| 216 | + description: Details about a running job |
| 217 | + properties: |
| 218 | + jobExecutionAddr: |
| 219 | + description: Address where is exposed the API of the job executor |
| 220 | + responsible for running this job |
| 221 | + type: string |
| 222 | + message: |
| 223 | + description: Message about the current phase of the job |
| 224 | + type: string |
| 225 | + phase: |
| 226 | + description: Phase describes the last known phase while running |
| 227 | + this job |
| 228 | + type: string |
| 229 | + reason: |
| 230 | + description: (brief) reason about the current phase of the |
| 231 | + job |
| 232 | + type: string |
| 233 | + startedAt: |
| 234 | + description: Time at which the job was last (re-)started |
| 235 | + format: date-time |
| 236 | + type: string |
| 237 | + type: object |
| 238 | + terminated: |
| 239 | + description: Details about a terminated job |
| 240 | + properties: |
| 241 | + canceled: |
| 242 | + description: Canceled specifies whether the execution was |
| 243 | + canceled or not |
| 244 | + type: boolean |
| 245 | + exitCode: |
| 246 | + description: Exit code obtained after running the specified |
| 247 | + script |
| 248 | + format: int32 |
| 249 | + type: integer |
| 250 | + finishedAt: |
| 251 | + description: Time at which the execution of the job terminated |
| 252 | + format: date-time |
| 253 | + type: string |
| 254 | + message: |
| 255 | + description: Message regarding the termination of the job |
| 256 | + type: string |
| 257 | + reason: |
| 258 | + description: (brief) reason about the termination of the job |
| 259 | + type: string |
| 260 | + retryable: |
| 261 | + description: Retryable specifies whether makes sense to retry |
| 262 | + this job or not |
| 263 | + type: boolean |
| 264 | + startedAt: |
| 265 | + description: Time at which the execution of the job started |
| 266 | + format: date-time |
| 267 | + type: string |
| 268 | + success: |
| 269 | + description: Success specifies whether the execution was completed |
| 270 | + successfully or not. |
| 271 | + type: boolean |
| 272 | + timedOut: |
| 273 | + description: TimedOut specifies whether the execution was |
| 274 | + timed out or not |
| 275 | + type: boolean |
| 276 | + required: |
| 277 | + - canceled |
| 278 | + - success |
| 279 | + type: object |
| 280 | + waiting: |
| 281 | + description: Details about a waiting job |
| 282 | + properties: |
| 283 | + message: |
| 284 | + description: Message regarding why the job is not yet running. |
| 285 | + type: string |
| 286 | + reason: |
| 287 | + description: (brief) reason why the job is not yet running. |
| 288 | + type: string |
| 289 | + type: object |
| 290 | + type: object |
| 291 | + type: object |
| 292 | + type: object |
| 293 | + served: true |
| 294 | + storage: true |
| 295 | + subresources: |
| 296 | + status: {} |
0 commit comments