Documentation
¶
Index ¶
Constants ¶
const ( AUTOGENERATED_INDEX_KEY = "spec.metadata.autoGenerated" BACKEND = "backend" CACHE_DIR = "/cache" CACHE_VOLUME = "package-cache" HOST_INDEX_KEY = "spec.hostRef.name" MODULE_PATH = "/-/modules" OCI_IMAGE = "oci-image" PAGE_FINALIZER = "kdex.dev/kdex-host-page-finalizer" SHARED_VOLUME = "shared-volume" SUB_INDEX_KEY = "spec.subject" TRANSLATION_FINALIZER = "kdex.dev/kdex-host-translation-finalizer" WORKDIR = "/shared" )
Variables ¶
var KPackImageGVK = schema.GroupVersionKind{
Group: "kpack.io",
Version: "v1alpha2",
Kind: "Image",
}
Functions ¶
func PSSRestrictedContainerSecurityContext ¶ added in v0.2.46
func PSSRestrictedContainerSecurityContext() *corev1.SecurityContext
PSSRestrictedContainerSecurityContext returns a container-level securityContext compliant with PodSecurity Admission's "restricted" profile.
Restricted enforces drop=[ALL] and allowPrivilegeEscalation=false. readOnlyRootFilesystem is not required by restricted; we omit it so build/codegen containers that write to /tmp or /var work without additional emptyDir mounts.
func PSSRestrictedPodSecurityContext ¶ added in v0.2.46
func PSSRestrictedPodSecurityContext() *corev1.PodSecurityContext
PSSRestrictedPodSecurityContext returns a pod-level securityContext compliant with PodSecurity Admission's "restricted" profile.
Restricted enforces: runAsNonRoot=true (or runAsUser >= 1000) and seccompProfile.type set to RuntimeDefault or Localhost. The remaining required fields (capabilities.drop=[ALL], allowPrivilegeEscalation= false) must be set per-container - see PSSRestrictedContainerSecurityContext.
runAsUser/runAsGroup default to 65532 (the kubernetes-distroless convention) so image filesystems built for that UID are preserved.
Types ¶
This section is empty.