Closed rquitales closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 49.37%. Comparing base (
096b846
) to head (d0d0956
). Report is 1 commits behind head on v2.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Were the min/max functions not being used in the stack controller?
min
and max
are used in the reconcile function to determine the requeue after time:
https://github.com/pulumi/pulumi-kubernetes-operator/blob/096b8462db56324347cbb04a967705b898d75824/operator/internal/controller/pulumi/stack_controller.go#L705-L713
Proposed changes
This PR removes the custom
min
andmax
functions for thetime.Duration
type. Go v1.21 introduced built-in functions so we can rely on them. This PR also adds a simple test case for the existingexactlyOneOf
function.