mirror of https://github.com/knative/pkg.git
Immutable fields with default values may now be changed iff they change is to populate their default value. This is to support defaulting in the scenario where an object was created long ago and a new field (with a default!) is added. When controllers attempt to mutate the object status today, this would create a webhook rejection! With this change, we compare against a freshly defaulted "old" object to exclude newly defaulted fields from the immutability check. We saw this in knative/serving for the newly added TimeoutSeconds field in Revision (otherwise immutable), which I believe it leading to upgrade testing flakes since post-upgrade Revision status updates will fail. |
||
|---|---|---|
| .github | ||
| apis | ||
| changeset | ||
| client | ||
| cloudevents | ||
| configmap | ||
| controller | ||
| hack | ||
| kmeta | ||
| logging | ||
| metrics | ||
| signals | ||
| test | ||
| testing | ||
| tracker | ||
| vendor | ||
| webhook | ||
| .gitattributes | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| DEVELOPMENT.md | ||
| Gopkg.lock | ||
| Gopkg.toml | ||
| LICENSE | ||
| OWNERS | ||
| README.md | ||
| code-of-conduct.md | ||
README.md
Knative Common Packages
Knative pkg provides a place for sharing common Knative packages across the
Knative repos.
To learn more about Knative, please visit our Knative docs repository.
If you are interested in contributing, see CONTRIBUTING.md and DEVELOPMENT.md.