Skip to content

Commit a42cbdd

Browse files
Make Shim containerRuntimeOptions optional
Signed-off-by: Kate Goldenring <[email protected]>
1 parent 49877b2 commit a42cbdd

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

api/v1alpha1/shim_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type ShimSpec struct {
2828
RolloutStrategy RolloutStrategy `json:"rolloutStrategy"`
2929
// ContainerdRuntimeOptions is a map of containerd runtime options for the shim plugin.
3030
// See an example of configuring cgroup driver via runtime options: https://github.com/containerd/containerd/blob/main/docs/cri/config.md#cgroup-driver
31-
ContainerdRuntimeOptions map[string]string `json:"containerdRuntimeOptions"`
31+
ContainerdRuntimeOptions map[string]string `json:"containerdRuntimeOptions,omitempty"`
3232
}
3333

3434
type FetchStrategy struct {

config/crd/bases/runtime.spinkube.dev_shims.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ spec:
103103
- name
104104
type: object
105105
required:
106-
- containerdRuntimeOptions
107106
- fetchStrategy
108107
- rolloutStrategy
109108
- runtimeClass

deploy/helm/crds/runtime.spinkube.dev_shims.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ spec:
103103
- name
104104
type: object
105105
required:
106-
- containerdRuntimeOptions
107106
- fetchStrategy
108107
- rolloutStrategy
109108
- runtimeClass

0 commit comments

Comments
 (0)