|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.19.0 |
| 7 | + name: nodeoverlays.karpenter.sh |
| 8 | +spec: |
| 9 | + group: karpenter.sh |
| 10 | + names: |
| 11 | + categories: |
| 12 | + - karpenter |
| 13 | + kind: NodeOverlay |
| 14 | + listKind: NodeOverlayList |
| 15 | + plural: nodeoverlays |
| 16 | + shortNames: |
| 17 | + - overlays |
| 18 | + singular: nodeoverlay |
| 19 | + scope: Cluster |
| 20 | + versions: |
| 21 | + - additionalPrinterColumns: |
| 22 | + - jsonPath: .status.conditions[?(@.type=="Ready")].status |
| 23 | + name: Ready |
| 24 | + type: string |
| 25 | + - jsonPath: .metadata.creationTimestamp |
| 26 | + name: Age |
| 27 | + type: date |
| 28 | + - jsonPath: .spec.weight |
| 29 | + name: Weight |
| 30 | + priority: 1 |
| 31 | + type: integer |
| 32 | + name: v1alpha1 |
| 33 | + schema: |
| 34 | + openAPIV3Schema: |
| 35 | + properties: |
| 36 | + apiVersion: |
| 37 | + description: |- |
| 38 | + APIVersion defines the versioned schema of this representation of an object. |
| 39 | + Servers should convert recognized schemas to the latest internal value, and |
| 40 | + may reject unrecognized values. |
| 41 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 42 | + type: string |
| 43 | + kind: |
| 44 | + description: |- |
| 45 | + Kind is a string value representing the REST resource this object represents. |
| 46 | + Servers may infer this from the endpoint the client submits requests to. |
| 47 | + Cannot be updated. |
| 48 | + In CamelCase. |
| 49 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 50 | + type: string |
| 51 | + metadata: |
| 52 | + type: object |
| 53 | + spec: |
| 54 | + properties: |
| 55 | + capacity: |
| 56 | + additionalProperties: |
| 57 | + anyOf: |
| 58 | + - type: integer |
| 59 | + - type: string |
| 60 | + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
| 61 | + x-kubernetes-int-or-string: true |
| 62 | + description: |- |
| 63 | + Capacity adds extended resources only, and does not replace any existing resources. |
| 64 | + These extended resources are appended to the node's existing resource list. |
| 65 | + Note: This field does not modify or override standard resources like cpu, memory, ephemeral-storage, or pods. |
| 66 | + type: object |
| 67 | + x-kubernetes-validations: |
| 68 | + - message: invalid resource restricted |
| 69 | + rule: self.all(x, !(x in ['cpu', 'memory', 'ephemeral-storage', |
| 70 | + 'pods'])) |
| 71 | + price: |
| 72 | + description: Price specifies amount for an instance types that match |
| 73 | + the specified labels. Users can override prices using a signed float |
| 74 | + representing the price override |
| 75 | + pattern: ^\d+(\.\d+)?$ |
| 76 | + type: string |
| 77 | + priceAdjustment: |
| 78 | + description: |- |
| 79 | + PriceAdjustment specifies the price change for matching instance types. Accepts either: |
| 80 | + - A fixed price modifier (e.g., -0.5, 1.2) |
| 81 | + - A percentage modifier (e.g., +10% for increase, -15% for decrees) |
| 82 | + pattern: ^(([+-]{1}(\d*\.?\d+))|(\+{1}\d*\.?\d+%)|(^(-\d{1,2}(\.\d+)?%)$)|(-100%))$ |
| 83 | + type: string |
| 84 | + requirements: |
| 85 | + description: |- |
| 86 | + Requirements constrain when this NodeOverlay is applied during scheduling simulations. |
| 87 | + These requirements can match: |
| 88 | + - Well-known labels (e.g., node.kubernetes.io/instance-type, karpenter.sh/nodepool) |
| 89 | + - Custom labels from NodePool's spec.template.labels |
| 90 | + items: |
| 91 | + description: |- |
| 92 | + A node selector requirement is a selector that contains values, a key, and an operator |
| 93 | + that relates the key and values. |
| 94 | + properties: |
| 95 | + key: |
| 96 | + description: The label key that the selector applies to. |
| 97 | + type: string |
| 98 | + operator: |
| 99 | + description: |- |
| 100 | + Represents a key's relationship to a set of values. |
| 101 | + Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. |
| 102 | + type: string |
| 103 | + values: |
| 104 | + description: |- |
| 105 | + An array of string values. If the operator is In or NotIn, |
| 106 | + the values array must be non-empty. If the operator is Exists or DoesNotExist, |
| 107 | + the values array must be empty. If the operator is Gt or Lt, the values |
| 108 | + array must have a single element, which will be interpreted as an integer. |
| 109 | + This array is replaced during a strategic merge patch. |
| 110 | + items: |
| 111 | + type: string |
| 112 | + type: array |
| 113 | + x-kubernetes-list-type: atomic |
| 114 | + required: |
| 115 | + - key |
| 116 | + - operator |
| 117 | + type: object |
| 118 | + maxItems: 100 |
| 119 | + type: array |
| 120 | + x-kubernetes-validations: |
| 121 | + - message: requirements with operator 'NotIn' must have a value defined |
| 122 | + rule: 'self.all(x, x.operator == ''NotIn'' ? x.values.size() != |
| 123 | + 0 : true)' |
| 124 | + - message: requirements with operator 'In' must have a value defined |
| 125 | + rule: 'self.all(x, x.operator == ''In'' ? x.values.size() != 0 : |
| 126 | + true)' |
| 127 | + - message: requirements operator 'Gt' or 'Lt' must have a single positive |
| 128 | + integer value |
| 129 | + rule: 'self.all(x, (x.operator == ''Gt'' || x.operator == ''Lt'') |
| 130 | + ? (x.values.size() == 1 && int(x.values[0]) >= 0) : true)' |
| 131 | + weight: |
| 132 | + description: |- |
| 133 | + Weight defines the priority of this NodeOverlay when overriding node attributes. |
| 134 | + NodeOverlays with higher numerical weights take precedence over those with lower weights. |
| 135 | + If no weight is specified, the NodeOverlay is treated as having a weight of 0. |
| 136 | + When multiple NodeOverlays have identical weights, they are merged in alphabetical order. |
| 137 | + format: int32 |
| 138 | + maximum: 10000 |
| 139 | + minimum: 1 |
| 140 | + type: integer |
| 141 | + required: |
| 142 | + - requirements |
| 143 | + type: object |
| 144 | + x-kubernetes-validations: |
| 145 | + - message: cannot set both 'price' and 'priceAdjustment' |
| 146 | + rule: '!has(self.price) || !has(self.priceAdjustment)' |
| 147 | + status: |
| 148 | + description: NodeOverlayStatus defines the observed state of NodeOverlay |
| 149 | + properties: |
| 150 | + conditions: |
| 151 | + description: Conditions contains signals for health and readiness |
| 152 | + items: |
| 153 | + description: Condition aliases the upstream type and adds additional |
| 154 | + helper methods |
| 155 | + properties: |
| 156 | + lastTransitionTime: |
| 157 | + description: |- |
| 158 | + lastTransitionTime is the last time the condition transitioned from one status to another. |
| 159 | + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
| 160 | + format: date-time |
| 161 | + type: string |
| 162 | + message: |
| 163 | + description: |- |
| 164 | + message is a human readable message indicating details about the transition. |
| 165 | + This may be an empty string. |
| 166 | + maxLength: 32768 |
| 167 | + type: string |
| 168 | + observedGeneration: |
| 169 | + description: |- |
| 170 | + observedGeneration represents the .metadata.generation that the condition was set based upon. |
| 171 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 172 | + with respect to the current state of the instance. |
| 173 | + format: int64 |
| 174 | + minimum: 0 |
| 175 | + type: integer |
| 176 | + reason: |
| 177 | + description: |- |
| 178 | + reason contains a programmatic identifier indicating the reason for the condition's last transition. |
| 179 | + Producers of specific condition types may define expected values and meanings for this field, |
| 180 | + and whether the values are considered a guaranteed API. |
| 181 | + The value should be a CamelCase string. |
| 182 | + This field may not be empty. |
| 183 | + maxLength: 1024 |
| 184 | + minLength: 1 |
| 185 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 186 | + type: string |
| 187 | + status: |
| 188 | + description: status of the condition, one of True, False, Unknown. |
| 189 | + enum: |
| 190 | + - "True" |
| 191 | + - "False" |
| 192 | + - Unknown |
| 193 | + type: string |
| 194 | + type: |
| 195 | + description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 196 | + maxLength: 316 |
| 197 | + 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])$ |
| 198 | + type: string |
| 199 | + required: |
| 200 | + - lastTransitionTime |
| 201 | + - message |
| 202 | + - reason |
| 203 | + - status |
| 204 | + - type |
| 205 | + type: object |
| 206 | + type: array |
| 207 | + type: object |
| 208 | + required: |
| 209 | + - spec |
| 210 | + type: object |
| 211 | + served: true |
| 212 | + storage: true |
| 213 | + subresources: |
| 214 | + status: {} |
0 commit comments