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
// internalReleaseImage describes the status of the release payloads stored in the node.
162
+
// When specified, an internalReleaseImage custom resource exists on the cluster, and the specified images will be made available on the control plane nodes.
163
+
// This field will reflect the actual on-disk state of those release images.
// name indicates the desired release bundle identifier. This field is required and must be between 1 and 64 characters long.
220
+
// +kubebuilder:validation:MinLength=1
221
+
// +kubebuilder:validation:MaxLength=64
222
+
// +required
223
+
Namestring`json:"name,omitempty"`
224
+
225
+
// image is an OCP release image referenced by digest.
226
+
// The format of the image pull spec is: host[:port][/namespace]/name@sha256:<digest>,
227
+
// where the digest must be 64 characters long, and consist only of lowercase hexadecimal characters, a-f and 0-9.
228
+
// The length of the whole spec must be between 1 to 447 characters.
229
+
// +kubebuilder:validation:MinLength=1
230
+
// +kubebuilder:validation:MaxLength=447
231
+
// +kubebuilder:validation:XValidation:rule=`(self.split('@').size() == 2 && self.split('@')[1].matches('^sha256:[a-f0-9]{64}$'))`,message="the OCI Image reference must end with a valid '@sha256:<digest>' suffix, where '<digest>' is 64 characters long"
232
+
// +kubebuilder:validation:XValidation:rule=`(self.split('@')[0].matches('^([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9-]+(:[0-9]{2,5})?/([a-zA-Z0-9-_]{0,61}/)?[a-zA-Z0-9-_.]*?$'))`,message="the OCI Image name should follow the host[:port][/namespace]/name format, resembling a valid URL without the scheme"
233
+
// +required
234
+
Imagestring`json:"image,omitempty"`
161
235
}
162
236
163
237
// IrreconcilableChangeDiff holds an individual diff between the initial install-time MachineConfig
0 commit comments