Generate API

This commit is contained in:
Jan Safranek 2023-06-15 18:32:04 +02:00
parent 0d03095fda
commit 134727a2e7
6 changed files with 14 additions and 0 deletions

View File

@ -896,6 +896,9 @@ spec:
description: Version used to pick the runc package.
type: string
type: object
selinuxEnabled:
description: SelinuxEnabled enables SELinux support
type: boolean
skipInstall:
description: SkipInstall prevents kOps from installing and modifying
containerd in any way (default "false").

View File

@ -199,6 +199,9 @@ spec:
description: Version used to pick the runc package.
type: string
type: object
selinuxEnabled:
description: SelinuxEnabled enables SELinux support
type: boolean
skipInstall:
description: SkipInstall prevents kOps from installing and modifying
containerd in any way (default "false").

View File

@ -40,6 +40,8 @@ type ContainerdConfig struct {
NvidiaGPU *NvidiaGPUConfig `json:"nvidiaGPU,omitempty"`
// Runc configures the runc runtime.
Runc *Runc `json:"runc,omitempty"`
// SelinuxEnabled enables SELinux support
SeLinuxEnabled bool `json:"selinuxEnabled,omitempty"`
}
type NvidiaGPUConfig struct {

View File

@ -3114,6 +3114,7 @@ func autoConvert_v1alpha2_ContainerdConfig_To_kops_ContainerdConfig(in *Containe
} else {
out.Runc = nil
}
out.SeLinuxEnabled = in.SeLinuxEnabled
return nil
}
@ -3158,6 +3159,7 @@ func autoConvert_kops_ContainerdConfig_To_v1alpha2_ContainerdConfig(in *kops.Con
} else {
out.Runc = nil
}
out.SeLinuxEnabled = in.SeLinuxEnabled
return nil
}

View File

@ -40,6 +40,8 @@ type ContainerdConfig struct {
NvidiaGPU *NvidiaGPUConfig `json:"nvidiaGPU,omitempty"`
// Runc configures the runc runtime.
Runc *Runc `json:"runc,omitempty"`
// SelinuxEnabled enables SELinux support
SeLinuxEnabled bool `json:"selinuxEnabled,omitempty"`
}
type NvidiaGPUConfig struct {

View File

@ -3325,6 +3325,7 @@ func autoConvert_v1alpha3_ContainerdConfig_To_kops_ContainerdConfig(in *Containe
} else {
out.Runc = nil
}
out.SeLinuxEnabled = in.SeLinuxEnabled
return nil
}
@ -3369,6 +3370,7 @@ func autoConvert_kops_ContainerdConfig_To_v1alpha3_ContainerdConfig(in *kops.Con
} else {
out.Runc = nil
}
out.SeLinuxEnabled = in.SeLinuxEnabled
return nil
}