1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/kmm-example-cr.adoc
2023-10-30 10:13:25 -04:00

30 lines
1.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * updating/preparing_for_updates/kmm-preflight-validation.adoc
:_mod-docs-content-type: CONCEPT
[id="kmm-example-cr_{context}"]
= Example PreflightValidationOCP resource
This section shows an example of the `PreflightValidationOCP` resource in the YAML format.
The example verifies all the currently present modules against the upcoming kernel version included in the {product-title} release 4.11.18, which the following release image points to:
[source,terminal]
----
quay.io/openshift-release-dev/ocp-release@sha256:22e149142517dfccb47be828f012659b1ccf71d26620e6f62468c264a7ce7863
----
Because `.spec.pushBuiltImage` is set to `true`, KMM pushes the resulting images of Build/Sign into the defined repositories.
[source,yaml]
----
apiVersion: kmm.sigs.x-k8s.io/v1beta1
kind: PreflightValidationOCP
metadata:
name: preflight
spec:
releaseImage: quay.io/openshift-release-dev/ocp-release@sha256:22e149142517dfccb47be828f012659b1ccf71d26620e6f62468c264a7ce7863
pushBuiltImage: true
----