Use ktesting.Init(t) and ktesting.NewTestContext(t) instead of
context.Background() so tests carry proper logging and cancellation
tied to the test lifecycle.
Add WithSkipGroupVersions and apply it to the NetworkPolicy and Scale tests,
whose internal types also register under the now-unvalidated extensions/v1beta1.
extensions/v1beta1 is permanently unserved, and its pod-template workloads would
otherwise force a forbidden staging -> k8s.io/kubernetes import. Disable
validation-gen for the package.
Pod is now a DV root, and eviction and resize each do a pod store.Update under
their subresource, so the dispatch must handle them or fail with "no validation
found" (this broke kubectl drain). binding is unaffected (GuaranteedUpdate).
The toleration rule makes the workload types DV roots; scale updates validate
the parent under /scale, so the dispatch must handle it (as ReplicationController
already does).
Tag corev1.Toleration.Key (alpha) and mark the shared handwritten error covered
via an opt-in KeyFormatCovered option, so the annotation-encoded path stays
authoritative. Add a RuntimeClass spec.scheduling normalization rule for the
v1alpha1 cross-version path.
Remove the remaining node-problem-detector references across the cluster/
directory that were not covered by the initial cleanup:
- Remove ENABLE_NODE_PROBLEM_DETECTOR, NODE_PROBLEM_DETECTOR_VERSION,
NODE_PROBLEM_DETECTOR_TAR_HASH, NODE_PROBLEM_DETECTOR_RELEASE_PATH and
NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS exports from config-default.sh and
config-test.sh.
- Remove WINDOWS_ENABLE_NODE_PROBLEM_DETECTOR and
WINDOWS_NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS from config-default.sh and
config-test.sh.
- Remove WINDOWS_NODEPROBLEMDETECTOR_KUBECONFIG_FILE from config-common.sh.
- Remove create-node-problem-detector-kubeconfig and
create-node-problem-detector-kubeconfig-from-kubelet functions along
with all NPD token/kubeconfig setup blocks from configure-helper.sh.
- Remove NPD installation and configuration steps (install-npd,
configure-npd, start-node-problem-detector) from upgrade.sh and util.sh.
- Remove DownloadAndInstall-NodeProblemDetector,
Create-NodeProblemDetectorKubeConfig and Configure-NodeProblemDetector
from cluster/gce/windows/k8s-node-setup.psm1 and their call sites in
configure.ps1.
- Remove the node-problem-detector systemd source block from the fluentd
configmaps and the node-problem-detector.log entry from log-dump.sh.
- Remove npd and npdSA test variables and their use from audit_policy_test.go.
Co-authored-by: Jordan Liggitt <liggitt@google.com>
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
- Check parameter types and print a copy-pasteable signature on mismatch
- Drop explicit function names (the tag is now value-less)
- Error on ValidateCustom_* functions that are untagged or in the wrong package
- Build inputToPkg deterministically; generation wins over --readonly-pkg
- Set tag stability to stable
- Clarify docs (value/oldValue type, Go field names) and drop the ratcheting jargon
The classifyLBError function returns lbErrNone when err is nil,
but the test was incorrectly expecting lbErrOther.
Also add lbErrNone to TestLBErrorTypeConstants verification.