const dnsLabelErrMsg …
const dnsSubdomainLabelErrMsg …
const envVarNameErrMsg …
const relaxedEnvVarNameFmtErrMsg …
const noUserNamespace …
var containerRestartPolicyAlways …
var containerRestartPolicyOnFailure …
var containerRestartPolicyNever …
var containerRestartPolicyInvalid …
var containerRestartPolicyEmpty …
var defaultGracePeriod …
type topologyPair …
func line() string { … }
func prettyErrorList(errs field.ErrorList) string { … }
func newHostPathType(pathType string) *core.HostPathType { … }
func testVolume(name string, namespace string, spec core.PersistentVolumeSpec) *core.PersistentVolume { … }
func TestValidatePersistentVolumes(t *testing.T) { … }
func TestValidatePersistentVolumeSpec(t *testing.T) { … }
func TestValidatePersistentVolumeSourceUpdate(t *testing.T) { … }
func TestValidationOptionsForPersistentVolume(t *testing.T) { … }
func getCSIVolumeWithSecret(pv *core.PersistentVolume, secret *core.SecretReference, secretfield string) *core.PersistentVolume { … }
func pvcWithVolumeAttributesClassName(vacName *string) *core.PersistentVolumeClaim { … }
func pvcWithDataSource(dataSource *core.TypedLocalObjectReference) *core.PersistentVolumeClaim { … }
func pvcWithDataSourceRef(ref *core.TypedObjectReference) *core.PersistentVolumeClaim { … }
func pvcTemplateWithVolumeAttributesClassName(vacName *string) *core.PersistentVolumeClaimTemplate { … }
func testLocalVolume(path string, affinity *core.VolumeNodeAffinity) core.PersistentVolumeSpec { … }
func TestValidateLocalVolumes(t *testing.T) { … }
func testVolumeWithVolumeAttributesClass(vacName *string) *core.PersistentVolume { … }
func testVolumeWithNodeAffinity(affinity *core.VolumeNodeAffinity) *core.PersistentVolume { … }
func simpleVolumeNodeAffinity(key, value string) *core.VolumeNodeAffinity { … }
func multipleVolumeNodeAffinity(terms [][]topologyPair) *core.VolumeNodeAffinity { … }
func TestValidateVolumeNodeAffinityUpdate(t *testing.T) { … }
func TestValidatePeristentVolumeAttributesClassUpdate(t *testing.T) { … }
func testVolumeClaim(name string, namespace string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testVolumeClaimWithStatus(
name, namespace string,
spec core.PersistentVolumeClaimSpec,
status core.PersistentVolumeClaimStatus) *core.PersistentVolumeClaim { … }
func testVolumeClaimStorageClass(name string, namespace string, annval string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testVolumeClaimAnnotation(name string, namespace string, ann string, annval string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testVolumeClaimStorageClassInSpec(name, namespace, scName string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testVolumeClaimStorageClassNilInSpec(name, namespace string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testVolumeSnapshotDataSourceInSpec(name string, kind string, apiGroup string) *core.PersistentVolumeClaimSpec { … }
func TestAlphaVolumeSnapshotDataSource(t *testing.T) { … }
func testVolumeClaimStorageClassInAnnotationAndSpec(name, namespace, scNameInAnn, scName string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testVolumeClaimStorageClassInAnnotationAndNilInSpec(name, namespace, scNameInAnn string, spec core.PersistentVolumeClaimSpec) *core.PersistentVolumeClaim { … }
func testValidatePVC(t *testing.T, ephemeral bool) { … }
func TestValidatePersistentVolumeClaim(t *testing.T) { … }
func TestValidateEphemeralVolume(t *testing.T) { … }
func TestAlphaPVVolumeModeUpdate(t *testing.T) { … }
func TestValidatePersistentVolumeClaimUpdate(t *testing.T) { … }
func TestValidationOptionsForPersistentVolumeClaim(t *testing.T) { … }
func TestValidationOptionsForPersistentVolumeClaimTemplate(t *testing.T) { … }
func TestValidateKeyToPath(t *testing.T) { … }
func TestValidateNFSVolumeSource(t *testing.T) { … }
func TestValidateGlusterfs(t *testing.T) { … }
func TestValidateGlusterfsPersistentVolumeSource(t *testing.T) { … }
func TestValidateCSIVolumeSource(t *testing.T) { … }
func TestValidateCSIPersistentVolumeSource(t *testing.T) { … }
func TestValidateVolumes(t *testing.T) { … }
func TestHugePagesIsolation(t *testing.T) { … }
func TestPVCVolumeMode(t *testing.T) { … }
func TestPVVolumeMode(t *testing.T) { … }
func createTestVolModePVC(vmode *core.PersistentVolumeMode) *core.PersistentVolumeClaim { … }
func createTestVolModePV(vmode *core.PersistentVolumeMode) *core.PersistentVolume { … }
func createTestPV() *core.PersistentVolume { … }
func TestAlphaLocalStorageCapacityIsolation(t *testing.T) { … }
func TestValidateResourceQuotaWithAlphaLocalStorageCapacityIsolation(t *testing.T) { … }
func TestValidatePorts(t *testing.T) { … }
func TestLocalStorageEnvWithFeatureGate(t *testing.T) { … }
func TestHugePagesEnv(t *testing.T) { … }
func TestRelaxedValidateEnv(t *testing.T) { … }
func TestValidateEnv(t *testing.T) { … }
func TestValidateEnvFrom(t *testing.T) { … }
func TestRelaxedValidateEnvFrom(t *testing.T) { … }
func TestValidateVolumeMounts(t *testing.T) { … }
func TestValidateSubpathMutuallyExclusive(t *testing.T) { … }
func TestValidateDisabledSubpathExpr(t *testing.T) { … }
func TestValidateMountPropagation(t *testing.T) { … }
func TestAlphaValidateVolumeDevices(t *testing.T) { … }
func TestValidateProbe(t *testing.T) { … }
func Test_validateProbe(t *testing.T) { … }
func TestValidateHandler(t *testing.T) { … }
func TestValidatePullPolicy(t *testing.T) { … }
func TestValidateResizePolicy(t *testing.T) { … }
func getResourceLimits(cpu, memory string) core.ResourceList { … }
func getResources(cpu, memory, storage string) core.ResourceList { … }
func TestValidateEphemeralContainers(t *testing.T) { … }
func TestValidateWindowsPodSecurityContext(t *testing.T) { … }
func TestValidateLinuxPodSecurityContext(t *testing.T) { … }
func TestValidateContainers(t *testing.T) { … }
func TestValidateInitContainers(t *testing.T) { … }
func TestValidateRestartPolicy(t *testing.T) { … }
func TestValidateDNSPolicy(t *testing.T) { … }
func TestValidatePodDNSConfig(t *testing.T) { … }
func TestValidatePodReadinessGates(t *testing.T) { … }
func TestValidatePodConditions(t *testing.T) { … }
func TestValidatePodSpec(t *testing.T) { … }
func TestValidatePod(t *testing.T) { … }
func TestValidatePodCreateWithSchedulingGates(t *testing.T) { … }
func TestValidatePodUpdate(t *testing.T) { … }
func TestValidatePodStatusUpdate(t *testing.T) { … }
func makeValidService() core.Service { … }
func TestValidatePodEphemeralContainersUpdate(t *testing.T) { … }
func TestValidateServiceCreate(t *testing.T) { … }
func TestValidateServiceExternalTrafficPolicy(t *testing.T) { … }
func TestValidateReplicationControllerStatus(t *testing.T) { … }
func TestValidateReplicationControllerStatusUpdate(t *testing.T) { … }
func TestValidateReplicationControllerUpdate(t *testing.T) { … }
func TestValidateReplicationController(t *testing.T) { … }
func TestValidateNode(t *testing.T) { … }
func TestValidateNodeUpdate(t *testing.T) { … }
func TestValidateServiceUpdate(t *testing.T) { … }
func TestValidateResourceNames(t *testing.T) { … }
func getResourceList(cpu, memory string) core.ResourceList { … }
func getStorageResourceList(storage string) core.ResourceList { … }
func getLocalStorageResourceList(ephemeralStorage string) core.ResourceList { … }
func TestValidateLimitRangeForLocalStorage(t *testing.T) { … }
func TestValidateLimitRange(t *testing.T) { … }
func TestValidatePersistentVolumeClaimStatusUpdate(t *testing.T) { … }
func TestValidateResourceQuota(t *testing.T) { … }
func TestValidateNamespace(t *testing.T) { … }
func TestValidateNamespaceFinalizeUpdate(t *testing.T) { … }
func TestValidateNamespaceStatusUpdate(t *testing.T) { … }
func TestValidateNamespaceUpdate(t *testing.T) { … }
func TestValidateSecret(t *testing.T) { … }
func TestValidateSecretUpdate(t *testing.T) { … }
func TestValidateDockerConfigSecret(t *testing.T) { … }
func TestValidateBasicAuthSecret(t *testing.T) { … }
func TestValidateSSHAuthSecret(t *testing.T) { … }
func TestValidateEndpointsCreate(t *testing.T) { … }
func TestValidateEndpointsUpdate(t *testing.T) { … }
func TestValidateWindowsSecurityContext(t *testing.T) { … }
func TestValidateOSFields(t *testing.T) { … }
func TestValidateSchedulingGates(t *testing.T) { … }
func collectResourcePaths(t *testing.T, skipRecurseList sets.String, tp reflect.Type, path *field.Path) sets.String { … }
func TestValidateTLSSecret(t *testing.T) { … }
func TestValidateLinuxSecurityContext(t *testing.T) { … }
func TestValidateSecurityContext(t *testing.T) { … }
func fakeValidSecurityContext(priv bool) *core.SecurityContext { … }
func TestValidPodLogOptions(t *testing.T) { … }
func TestValidateConfigMap(t *testing.T) { … }
func TestValidateConfigMapUpdate(t *testing.T) { … }
func TestValidateHasLabel(t *testing.T) { … }
func TestIsValidSysctlName(t *testing.T) { … }
func TestValidateSysctls(t *testing.T) { … }
func newNodeNameEndpoint(nodeName string) *core.Endpoints { … }
func TestEndpointAddressNodeNameUpdateRestrictions(t *testing.T) { … }
func TestEndpointAddressNodeNameInvalidDNSSubdomain(t *testing.T) { … }
func TestEndpointAddressNodeNameCanBeAnIPAddress(t *testing.T) { … }
func TestValidateFlexVolumeSource(t *testing.T) { … }
func TestValidateOrSetClientIPAffinityConfig(t *testing.T) { … }
func TestValidateWindowsSecurityContextOptions(t *testing.T) { … }
func testDataSourceInSpec(name, kind, apiGroup string) *core.PersistentVolumeClaimSpec { … }
func TestAlphaVolumePVCDataSource(t *testing.T) { … }
func testAnyDataSource(t *testing.T, ds, dsRef bool) { … }
func TestAnyDataSource(t *testing.T) { … }
func pvcSpecWithCrossNamespaceSource(apiGroup *string, kind string, namespace *string, name string, isDataSourceSet bool) *core.PersistentVolumeClaimSpec { … }
func TestCrossNamespaceSource(t *testing.T) { … }
func pvcSpecWithVolumeAttributesClassName(vacName *string) *core.PersistentVolumeClaimSpec { … }
func TestVolumeAttributesClass(t *testing.T) { … }
func TestValidateTopologySpreadConstraints(t *testing.T) { … }
func TestValidateOverhead(t *testing.T) { … }
func makePod(podName string, podNamespace string, podIPs []core.PodIP) core.Pod { … }
func TestPodIPsValidation(t *testing.T) { … }
func makePodWithHostIPs(podName string, podNamespace string, hostIPs []core.HostIP) core.Pod { … }
func TestHostIPsValidation(t *testing.T) { … }
func makeNode(nodeName string, podCIDRs []string) core.Node { … }
func TestValidateNodeCIDRs(t *testing.T) { … }
func TestValidateSeccompAnnotationAndField(t *testing.T) { … }
func TestValidateSeccompAnnotationsAndFieldsMatch(t *testing.T) { … }
func TestValidatePodTemplateSpecSeccomp(t *testing.T) { … }
func TestValidateResourceRequirements(t *testing.T) { … }
func TestValidateNonSpecialIP(t *testing.T) { … }
func TestValidateHostUsers(t *testing.T) { … }
func TestValidateWindowsHostProcessPod(t *testing.T) { … }
func TestValidateOS(t *testing.T) { … }
func TestValidateAppArmorProfileFormat(t *testing.T) { … }
func TestValidateDownwardAPIHostIPs(t *testing.T) { … }
func TestValidatePVSecretReference(t *testing.T) { … }
func TestValidateDynamicResourceAllocation(t *testing.T) { … }
func TestValidateLoadBalancerStatus(t *testing.T) { … }
func TestValidateSleepAction(t *testing.T) { … }
func TestValidatePodDNSConfigWithRelaxedSearchDomain(t *testing.T) { … }
func TestValidatePodSpecWithSupplementalGroupsPolicy(t *testing.T) { … }
func TestValidateWindowsPodSecurityContextSupplementalGroupsPolicy(t *testing.T) { … }
func TestValidatePodStatusUpdateWithSupplementalGroupsPolicy(t *testing.T) { … }
func TestValidateContainerStatusNoAllocatedResourcesStatus(t *testing.T) { … }
func TestValidateContainerStatusAllocatedResourcesStatus(t *testing.T) { … }
func TestValidateSELinuxChangePolicy(t *testing.T) { … }