You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expectedError: "the OCI Image reference must end with a valid '@sha256:<digest>' suffix, where '<digest>' is 64 characters long"
85
+
onUpdate:
86
+
- name: Should be able to create MachineConfigNode with status.configImage when ImageModeStatusReporting is enabled when the current and desired images are the same
- name: Should be able to create MachineConfigNode with status.configImage when ImageModeStatusReporting is enabled when the current and desired images are the different.
// configImage is an optional field for configuring the OS image to be used for this node. This field will only exist if the node belongs to a pool opted into on-cluster image builds, and will override any MachineConfig referenced OSImageURL fields
103
+
// When omitted, Image Mode is not be enabled and the node will follow the standard update process of creating a rendered MachineConfig and updating to its specifications.
104
+
// When specified, Image Mode is enabled and will attempt to update the node to use the desired image. Following this, the node will follow the standard update process of creating a rendered MachineConfig and updating to its specifications.
// configImage is an optional field for configuring the OS image to be used for this node. This field will only exist if the node belongs to a pool opted into on-cluster image builds, and will override any MachineConfig referenced OSImageURL fields.
133
+
// When omitted, this means that the Image Mode feature is not being used and the node will be up to date with the specific current rendered config version for the nodes MachinePool.
134
+
// When specified, the Image Mode feature is enabled and the contents of this field show the observed state of the node image.
135
+
// When Image Mode is enabled and a new MachineConfig is applied such that a new OS image build is not created, only the configVersion field will change.
136
+
// When Image Mode is enabled and a new MachineConfig is applied such that a new OS image build is created, then only the configImage field will change. It is also possible that both the configImage
137
+
// and configVersion change during the same update.
// pinnedImageSets describes the current and desired pinned image sets for this node.
124
142
// +listType=map
125
143
// +listMapKey=name
@@ -244,6 +262,41 @@ type MachineConfigNodeSpecMachineConfigVersion struct {
244
262
Desiredstring`json:"desired"`
245
263
}
246
264
265
+
// MachineConfigNodeSpecConfigImage holds the desired image for the node.
266
+
// This structure is populated from the `machineconfiguration.openshift.io/desiredImage`
267
+
// annotation on the target node, which is set by the Machine Config Pool controller
268
+
// to signal the desired image pullspec for the node to update to.
269
+
typeMachineConfigNodeSpecConfigImagestruct {
270
+
// desiredImage is a required field that configures the image that the node should be updated to use.
271
+
// It must be a fully qualified OCI image pull spec of the format host[:port][/namespace]/name@sha256:, where the digest must be exactly 64 characters in length and consist only of lowercase hexadecimal characters, a-f and 0-9.
272
+
// desiredImage must not be an empty string and must not exceed 447 characters in length.
// MachineConfigNodeStatusConfigImage holds the observed state of the image
278
+
// on the node, including both the image targeted for an update and the image
279
+
// currently applied. This allows for monitoring the progress of the layering
280
+
// rollout. If Image Mode is enabled, desiredImage must be defined.
281
+
// +kubebuilder:validation:MinProperties:=1
282
+
typeMachineConfigNodeStatusConfigImagestruct {
283
+
// currentImage is an optional field that represents the current image that is applied to the node.
284
+
// When omitted, this means that no image updates have been applied to the node and it will be up to date with the specific current rendered config version.
285
+
// When specified, this means that the node is currently using this image.
286
+
// currentImage must be a fully qualified OCI image pull spec of the format host[:port][/namespace]/name@sha256:, where the digest must be exactly 64 characters in length and consist only of lowercase hexadecimal characters, a-f and 0-9.
287
+
// currentImage must not be an empty string and must not exceed 447 characters in length.
// desiredImage is an optional field that represents the currently observed state of image that the node should be updated to use.
291
+
// When not specified, this means that Image Mode has been disabled and the node will up to date with the specific current rendered config version.
292
+
// When specified, this means that Image Mode has been enabled and the node is actively progressing to update the node to this image.
293
+
// If currentImage and desiredImage match, the node has been successfully updated to use the desired image.
294
+
// desiredImage must be a fully qualified OCI image pull spec of the format host[:port][/namespace]/name@sha256:, where the digest must be exactly 64 characters in length and consist only of lowercase hexadecimal characters, a-f and 0-9.
295
+
// desiredImage must not be an empty string and must not exceed 447 characters in length.
0 commit comments