Skip to content

Commit

Permalink
Add pinnedImages to ContainerRuntimeConfig
Browse files Browse the repository at this point in the history
This patch adds a new `pinnedImages` field to the `ContainerRuntime`
type.

Related: openshift/enhancements#1432
Related: https://issues.redhat.com/browse/RFE-4482
Signed-off-by: Juan Hernandez <[email protected]>
  • Loading branch information
jhernand committed Sep 21, 2023
1 parent a41f5af commit 416b97a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/apis/machineconfiguration.openshift.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,22 @@ type ContainerRuntimeConfiguration struct {

// defaultRuntime is the name of the OCI runtime to be used as the default.
DefaultRuntime ContainerRuntimeDefaultRuntime `json:"defaultRuntime,omitempty"`

// pinnedImages is a list of images that will be pinned and pre-loaded in all the nodes of
// the cluster. Translates into a new pin.conf file inside the /etc/crio/crio.conf.d
// directory with content similar to this:
//
// pinned_images = [
// "quay.io/openshift-release-dev/ocp-release@sha256:...",
// "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:...",
// "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:...",
// ...
// ]
//
// The CRI-O service will be reloaded when this list is changed.
//
// +optional
PinnedImages []string `json:"pinnedImages,omitempty"`
}

type ContainerRuntimeDefaultRuntime string
Expand Down

0 comments on commit 416b97a

Please sign in to comment.