pulumi / pulumi-kubernetes-operator

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

[v2] E2E test for --target #711

Closed blampe closed 1 week ago

blampe commented 2 weeks ago

Turns out we already plumb target from Stack → Update → Agent → Auto API:

https://github.com/pulumi/pulumi-kubernetes-operator/blob/2a67d4c436a95073de99b0bebcf77ea5f146e5f6/operator/internal/controller/pulumi/stack_controller.go#L1260-L1261

https://github.com/pulumi/pulumi-kubernetes-operator/blob/2a67d4c436a95073de99b0bebcf77ea5f146e5f6/operator/internal/controller/auto/update_controller.go#L214-L215

https://github.com/pulumi/pulumi-kubernetes-operator/blob/2a67d4c436a95073de99b0bebcf77ea5f146e5f6/agent/pkg/server/server.go#L486-L490

This adds a small E2E test around the behavior.

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 49.57%. Comparing base (2a67d4c) to head (163573b). Report is 2 commits behind head on v2.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v2 #711 +/- ## ======================================= Coverage 49.57% 49.57% ======================================= Files 27 27 Lines 2911 2911 ======================================= Hits 1443 1443 Misses 1290 1290 Partials 178 178 ```

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