|
| 1 | +# SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.) |
| 2 | +# SPDX-FileContributor: enriqueavi@inditex.com |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: Apache-2.0 |
| 5 | + |
| 6 | +--- |
| 7 | +apiVersion: apiextensions.k8s.io/v1 |
| 8 | +kind: CustomResourceDefinition |
| 9 | +metadata: |
| 10 | + annotations: |
| 11 | + controller-gen.kubebuilder.io/version: v0.16.1 |
| 12 | + name: overcommits.overcommit.inditex.dev |
| 13 | +spec: |
| 14 | + group: overcommit.inditex.dev |
| 15 | + names: |
| 16 | + kind: Overcommit |
| 17 | + listKind: OvercommitList |
| 18 | + plural: overcommits |
| 19 | + singular: overcommit |
| 20 | + scope: Cluster |
| 21 | + versions: |
| 22 | + - additionalPrinterColumns: |
| 23 | + - description: Label to apply to the pods to make overcommit |
| 24 | + jsonPath: .spec.overcommitLabel |
| 25 | + name: Target Label |
| 26 | + type: string |
| 27 | + name: v1alphav1 |
| 28 | + schema: |
| 29 | + openAPIV3Schema: |
| 30 | + description: Overcommit is the Schema for the overcommits API |
| 31 | + properties: |
| 32 | + apiVersion: |
| 33 | + description: |- |
| 34 | + APIVersion defines the versioned schema of this representation of an object. |
| 35 | + Servers should convert recognized schemas to the latest internal value, and |
| 36 | + may reject unrecognized values. |
| 37 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 38 | + type: string |
| 39 | + kind: |
| 40 | + description: |- |
| 41 | + Kind is a string value representing the REST resource this object represents. |
| 42 | + Servers may infer this from the endpoint the client submits requests to. |
| 43 | + Cannot be updated. |
| 44 | + In CamelCase. |
| 45 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 46 | + type: string |
| 47 | + metadata: |
| 48 | + type: object |
| 49 | + spec: |
| 50 | + description: OvercommitSpec defines the desired state of Overcommit |
| 51 | + properties: |
| 52 | + annotations: |
| 53 | + additionalProperties: |
| 54 | + type: string |
| 55 | + type: object |
| 56 | + labels: |
| 57 | + additionalProperties: |
| 58 | + type: string |
| 59 | + type: object |
| 60 | + nodeSelector: |
| 61 | + additionalProperties: |
| 62 | + type: string |
| 63 | + type: object |
| 64 | + overcommitLabel: |
| 65 | + minLength: 1 |
| 66 | + type: string |
| 67 | + tolerations: |
| 68 | + items: |
| 69 | + description: |- |
| 70 | + The pod this Toleration is attached to tolerates any taint that matches |
| 71 | + the triple <key,value,effect> using the matching operator <operator>. |
| 72 | + properties: |
| 73 | + effect: |
| 74 | + description: |- |
| 75 | + Effect indicates the taint effect to match. Empty means match all taint effects. |
| 76 | + When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. |
| 77 | + type: string |
| 78 | + key: |
| 79 | + description: |- |
| 80 | + Key is the taint key that the toleration applies to. Empty means match all taint keys. |
| 81 | + If the key is empty, operator must be Exists; this combination means to match all values and all keys. |
| 82 | + type: string |
| 83 | + operator: |
| 84 | + description: |- |
| 85 | + Operator represents a key's relationship to the value. |
| 86 | + Valid operators are Exists and Equal. Defaults to Equal. |
| 87 | + Exists is equivalent to wildcard for value, so that a pod can |
| 88 | + tolerate all taints of a particular category. |
| 89 | + type: string |
| 90 | + tolerationSeconds: |
| 91 | + description: |- |
| 92 | + TolerationSeconds represents the period of time the toleration (which must be |
| 93 | + of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, |
| 94 | + it is not set, which means tolerate the taint forever (do not evict). Zero and |
| 95 | + negative values will be treated as 0 (evict immediately) by the system. |
| 96 | + format: int64 |
| 97 | + type: integer |
| 98 | + value: |
| 99 | + description: |- |
| 100 | + Value is the taint value the toleration matches to. |
| 101 | + If the operator is Exists, the value should be empty, otherwise just a regular string. |
| 102 | + type: string |
| 103 | + type: object |
| 104 | + type: array |
| 105 | + required: |
| 106 | + - overcommitLabel |
| 107 | + type: object |
| 108 | + status: |
| 109 | + description: OvercommitStatus defines the observed state of Overcommit |
| 110 | + properties: |
| 111 | + conditions: |
| 112 | + items: |
| 113 | + description: Condition contains details for one aspect of the current |
| 114 | + state of this API Resource. |
| 115 | + properties: |
| 116 | + lastTransitionTime: |
| 117 | + description: |- |
| 118 | + lastTransitionTime is the last time the condition transitioned from one status to another. |
| 119 | + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
| 120 | + format: date-time |
| 121 | + type: string |
| 122 | + message: |
| 123 | + description: |- |
| 124 | + message is a human readable message indicating details about the transition. |
| 125 | + This may be an empty string. |
| 126 | + maxLength: 32768 |
| 127 | + type: string |
| 128 | + observedGeneration: |
| 129 | + description: |- |
| 130 | + observedGeneration represents the .metadata.generation that the condition was set based upon. |
| 131 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 132 | + with respect to the current state of the instance. |
| 133 | + format: int64 |
| 134 | + minimum: 0 |
| 135 | + type: integer |
| 136 | + reason: |
| 137 | + description: |- |
| 138 | + reason contains a programmatic identifier indicating the reason for the condition's last transition. |
| 139 | + Producers of specific condition types may define expected values and meanings for this field, |
| 140 | + and whether the values are considered a guaranteed API. |
| 141 | + The value should be a CamelCase string. |
| 142 | + This field may not be empty. |
| 143 | + maxLength: 1024 |
| 144 | + minLength: 1 |
| 145 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 146 | + type: string |
| 147 | + status: |
| 148 | + description: status of the condition, one of True, False, Unknown. |
| 149 | + enum: |
| 150 | + - "True" |
| 151 | + - "False" |
| 152 | + - Unknown |
| 153 | + type: string |
| 154 | + type: |
| 155 | + description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 156 | + maxLength: 316 |
| 157 | + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ |
| 158 | + type: string |
| 159 | + required: |
| 160 | + - lastTransitionTime |
| 161 | + - message |
| 162 | + - reason |
| 163 | + - status |
| 164 | + - type |
| 165 | + type: object |
| 166 | + type: array |
| 167 | + resources: |
| 168 | + items: |
| 169 | + properties: |
| 170 | + name: |
| 171 | + type: string |
| 172 | + ready: |
| 173 | + type: boolean |
| 174 | + required: |
| 175 | + - ready |
| 176 | + type: object |
| 177 | + type: array |
| 178 | + type: object |
| 179 | + type: object |
| 180 | + x-kubernetes-validations: |
| 181 | + - message: overcommit is a singleton, .metadata.name must be 'cluster' |
| 182 | + rule: self.metadata.name == 'cluster' |
| 183 | + served: true |
| 184 | + storage: true |
| 185 | + subresources: |
| 186 | + status: {} |
0 commit comments