Add WithSkipGroupVersions and apply it to the NetworkPolicy and Scale tests,
whose internal types also register under the now-unvalidated extensions/v1beta1.
Update node-problem-detector from v1.34.0 to v1.35.2 and remove all
related addon manifests and install logic that is no longer needed:
- Update version in build/dependencies.yaml, test/e2e_node/image_list.go
and test/kubemark/resources/hollow-node_template.yaml.
- Remove cluster/addons/node-problem-detector/ entirely. No e2e tests
depend on these manifests: e2e_node tests create NPD pods inline and
GCE standalone mode runs NPD as a systemd service.
- Remove install-node-problem-detector function and DEFAULT_NPD_* vars
from cluster/gce/gci/configure.sh along with the conditional that
invoked it, since NPD is no longer installed as a standalone binary
via this script.
- Remove the setup-addon-manifests calls for node-problem-detector from
cluster/gce/gci/configure-helper.sh since the source directory no
longer exists.
- Remove stale refPaths in build/dependencies.yaml that pointed to the
deleted addon files.
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
* Wire up Secret for declarative validation
* Migrate Secret.Type to declarative immutable validation
* Add +k8s:optional tag to Secret.Type field
* Add TestDeclarativeValidate test for CREATE flow
* Add immutability test cases for unset->set and set->unset
* Fix ValidateDeclarativelyWithMigrationChecks call to include DeclarativeValidationConfig
* Fix double declarative validation by removing manual ValidateDeclarativelyWithMigrationChecks calls
The secret strategy embedded rest.DeclarativeValidation (which implements
DeclarativeValidationStrategy) but also called ValidateDeclarativelyWithMigrationChecks
directly inside Validate and ValidateUpdate. The REST handler and test framework
call ValidateDeclaratively separately after Validate/ValidateUpdate, causing
double execution that broke the AllDeclarativeEnforced test scenario.
Fix by returning only handwritten errors from Validate/ValidateUpdate, matching
the pattern used by csiDriverStrategy and other correctly-migrated strategies.
* Use alpha stability level for +k8s:immutable on Secret.Type
The validation-gen tool enforces that Beta-level tags cannot be used in
Stable validation. Change +k8s:immutable to
+k8s:alpha(since: "1.36")=+k8s:immutable to match other stable-API fields.
Regenerate zz_generated.validations.go and update test expected errors
with .MarkAlpha() accordingly.
* Update alpha stability level version from 1.36 to 1.37
Update +k8s:alpha(since: "1.36") annotations to 1.37 in types.go
and generated.proto for Secret.Type immutability and ReplicationController
declarative validation tags.
* Regenerate zz_generated.validations.go after rebase
Rebase onto latest master brought in validation-gen changes that add
.MarkShortCircuit() to immutable and optional field validations.
* Add generated declarative validation test files for Secret
validation-gen generates test/declarative_validation/core/secret/
as part of Secret declarative validation wiring.
* Add declarative validation coverage test for Secret.type immutability
The coverage checker requires all registered validation rules to be
exercised by tests. Add a test that triggers the immutable validation
error for Secret.type to satisfy coverage for the generated rule:
v1, Kind=Secret: type FieldValueInvalid origin="immutable"
* Move Secret declarative validation tests to test/declarative_validation
Move all test cases from pkg/registry/core/secret/declarative_validation_test.go
to test/declarative_validation/core/secret/declarative_validation_test.go
per #138872, and remove the original file.
* Revert ReplicationController alpha tags from 1.37 back to 1.36
The since: "1.36" tags on ReplicationController fields track when those
tags were originally added (v1.36) and should not have been changed.
Only the newly added Secret.Type immutable tag targets 1.37.
Removes BackoffLimitPerIndex/MaxFailedIndexes defaults from validJobSpec
and adds tweakMaxFailedIndexes. Test cases now pass both tweaks
explicitly, matching cronjob's style — the truth table is visible at
the test case rather than hidden in the fixture.
Adds a parity test for Job (new test/declarative_validation/batch/job
directory) and a case under cronjob exercising the
spec.jobTemplate.spec.backoffLimitPerIndex path.