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.
197
+
// +kubebuilder:validation:MinLength=1
198
+
// +kubebuilder:validation:MaxLength=64
199
+
// +required
200
+
Namestring`json:"name,omitempty"`
201
+
// image is an OCP release image referenced by digest.
202
+
// The format of the image pull spec is: host[:port][/namespace]/name@sha256:<digest>,
203
+
// where the digest must be 64 characters long, and consist only of lowercase hexadecimal characters, a-f and 0-9.
204
+
// The length of the whole spec must be between 1 to 447 characters.
205
+
// +kubebuilder:validation:MinLength=1
206
+
// +kubebuilder:validation:MaxLength=447
207
+
// +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"
208
+
// +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"
209
+
// +required
210
+
Imagestring`json:"image,omitempty"`
211
+
}
212
+
213
+
// InternalReleaseImageConditionType is each possible state for each possible MachineConfigNodeStatusInternalReleaseImageRef
214
+
// conditions type.
215
+
// +enum
216
+
typeInternalReleaseImageConditionTypestring
217
+
218
+
const (
219
+
// InternalReleaseImageConditionTypeMounted describes a new release, not yet installed, that has been discovered when an ISO has been attached to
0 commit comments