Fixes #193 by adding key tracing logs for internal eventing and reconciliation logic #194
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds several
debug
logs for better troubleshooting:Predicate
that logs appropriate details, including a diff between old and new Kubernetes object on Update)Log examples
These examples use a
DatabaseSecretEngineRole
namedtest-evtlogging
Logs below are redacted to remove details so that the log flow is more obvious.
Creation
Update
This updates changes the
defaultTTL
field value from0s
to60s
:<event diff>
is a JSON-like string, which, once unescaped, shows the changes that happened to the Kubernetes resource which triggered the event.Example:
<resource diff>
is a JSON-like string, which, once unescaped, shows the difference between the object existing in Vault and what is expected from the Kubernetes resource.Example:
<resource diff>
is a JSON-like string, which, once unescaped, shows something like:Note: an unexpected finding with these logs is that there are Go type differences when comparing the payload returned by Vault and the payload we expect, sometimes leading to unnecessary writes to Vault (for instance, when resync'ing all resources on operator restart or on schedule).
Deletion