-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't update the Pod after it's been created (#35)
Closes #27. The original code would createOrUpdate the `Pod` resource. The problem is that we were then overwriting the `metadata.annotations` field on updates. The issue we ran into was this... 1. Oz creates the Pod 2. Istio's Webhook Endpoint mutates the Pod Labels and Annotations 3. Oz's secondary reconcile loop immediately comes in and replaces the metadata.annotations with the original empty annotations 4. Istio doesn't re-apply the annotations because the metadata.labels were mutated and indicate that the webhook has already happened. 5. Istio-validation container won't start up
- Loading branch information
Showing
10 changed files
with
247 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.