pulumi / pulumi-kubernetes-operator

A Kubernetes Operator that automates the deployment of Pulumi Stacks
Apache License 2.0
226 stars 54 forks source link

support for ReconcileRequest annotation #745

Closed EronWright closed 1 week ago

EronWright commented 1 week ago

Proposed changes

Implements support for requesting a re-sync of the stack (i.e. pulumi up) using the pulumi.com/reconciliation-request annotation.

The logic of checking the prerequisites was moved to be after the check for "is synced", since the prereq check has the side-effect of touching the parent stack, and that shouldn't happen unless the child is needing a sync.

Related issues (optional)

Closes #672 Closes #398

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 69.60000% with 38 lines in your changes missing coverage. Please review.

Project coverage is 50.70%. Comparing base (ddd4ac4) to head (fa23579). Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
...tor/internal/controller/pulumi/stack_controller.go 69.60% 35 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #745 +/- ## ========================================== + Coverage 50.47% 50.70% +0.23% ========================================== Files 30 30 Lines 4115 4171 +56 ========================================== + Hits 2077 2115 +38 - Misses 1854 1872 +18 Partials 184 184 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.