Skip to content

Commit 0684334

Browse files
OCPNODE-3372: Update defaultRuntime doc to show options available and set default to crun
1 parent 29b8316 commit 0684334

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

machineconfiguration/v1/types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ type ContainerRuntimeConfiguration struct {
844844
// +optional
845845
OverlaySize *resource.Quantity `json:"overlaySize,omitempty"`
846846

847-
// defaultRuntime is the name of the OCI runtime to be used as the default.
847+
// defaultRuntime is the name of the OCI runtime to be used as the default for containers.
848+
// Options are runc and crun. Defaults to crun
848849
// +optional
849850
DefaultRuntime ContainerRuntimeDefaultRuntime `json:"defaultRuntime,omitempty"`
850851
}
@@ -855,7 +856,7 @@ const (
855856
ContainerRuntimeDefaultRuntimeEmpty = ""
856857
ContainerRuntimeDefaultRuntimeRunc = "runc"
857858
ContainerRuntimeDefaultRuntimeCrun = "crun"
858-
ContainerRuntimeDefaultRuntimeDefault = ContainerRuntimeDefaultRuntimeRunc
859+
ContainerRuntimeDefaultRuntimeDefault = ContainerRuntimeDefaultRuntimeCrun
859860
)
860861

861862
// ContainerRuntimeConfigStatus defines the observed state of a ContainerRuntimeConfig

machineconfiguration/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)