Webhook YAML causes constant config drift #12474
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Issues which should be fixed (post-triage)
Milestone
What version of Knative?
Also present in the latest code.
Expected Behavior
Applying a resource should put it into a state where it can applied multiple times without making changes to the resource. This is a primary benefit of declarative config with Kubernetes.
Actual Behavior
Certain resources are causing constant config drift, possibly because the manifests are not following the correct structure or the kubernetes API is storing these in a different structure.
Steps to Reproduce the Problem
From the Knative serving manifests, apply the MutatingWebhookConfiguration
webhook.domainmapping.serving.knative.dev- it has a.webhooks.rulesfield like this (array size: 1):Read the resulting object, it has a
.webhook.rulesfield like this (array size: 2):The text was updated successfully, but these errors were encountered: