mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-11-06 05:17:08 +00:00
Add seccompProfile.type OCI with the oci field (a digest-pinned ref and an optional RuntimeDefault or Localhost baseProfile) and the alpha SecurityProfileOCI feature gate, as described in KEP-6061. The oci field is validated declaratively, with custom validators for the reference and the base profile path; the gate check and the rule that privileged containers cannot use an OCI profile stay handwritten. While the gate is disabled the type is rejected unless the old object already uses it. PodSecurity baseline and restricted keep rejecting OCI. The SecurityProfileOCI node declared feature keeps pods with OCI profiles on nodes whose kubelet has the gate enabled and a runtime that supports OCI seccomp profiles. The field is named ref instead of the KEP's reference, following the kube-api-linter naming convention for new fields. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>