internal

package
v0.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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"

	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

View Source
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
dcr
denial
Package denial implements host-manager's single denial contract.
Package denial implements host-manager's single denial contract.
ico
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL