Documentation
¶
Index ¶
Constants ¶
const ( // ANNOTATION_GENERATION stamps the observed .metadata.generation onto // generated children so a stale one can be told from a current one. It is // written in four packages and read in a fifth; a typo in any of them // silently makes every child look stale. ANNOTATION_GENERATION = "kdex.dev/generation" // LABEL_DEFAULT marks the cluster-scoped resource to fall back to when a // host names none. Used as a List selector, where a typo silently matches // nothing rather than failing. LABEL_DEFAULT = "kdex.dev/default" // LABEL_APP and LABEL_FUNCTION are the labels on every Job host-manager // runs for a function; cleanupJobs selects on them, so the Job and the // cleanup must spell them alike. The APP_* values name the Job's kind. LABEL_APP = "app" LABEL_FUNCTION = "function" APP_BUILDER = "builder" APP_CODEGEN = "codegen" APP_DEPLOYER = "deployer" APP_OBSERVER = "observer" APP_PACKAGES = "packages" // LABEL_PACKAGES names the IPR a packager Job builds, the selector its // cleanup lists by. LABEL_PACKAGES = "packages" 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.
Directories
¶
| Path | Synopsis |
|---|---|
|
denial
Package denial implements host-manager's single denial contract.
|
Package denial implements host-manager's single denial contract. |
|
Package rewrite holds the pure path logic behind KDexPage rewrite mode (kdex-tech/host-manager#217), shared by the page controller's static placeholder check and the host's request-time dispatch.
|
Package rewrite holds the pure path logic behind KDexPage rewrite mode (kdex-tech/host-manager#217), shared by the page controller's static placeholder check and the host's request-time dispatch. |
|
web
|
|