Closed corymhall closed 1 week ago
Looking good! No breaking changes found. No new resources/functions.
Attention: Patch coverage is 95.91837%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 49.96%. Comparing base (
4111ee4
) to head (7fad16d
). Report is 2 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
provider/pkg/provider/provider.go | 85.71% | 0 Missing and 1 partial :warning: |
provider/pkg/resources/extension_resource.go | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Added https://github.com/pulumi/pulumi-aws-native/issues/1833 but out of scope of this PR.... Looks like we are consuming GetVariables still in this provider.
Assuming here https://github.com/pulumi/pulumi/discussions/17592 is not quite ready for prime time so we need this now.
This PR adds some new functionality to control the auto naming behavior. The new behavior lives behind a provider config variable and must be explicitly enabled by the user. The existing behavior will remain the default behavior of the provider.
What's new
autoTrim
: When this is set to true the provider will automatically trim the generated name to fit within themaxLength
requirement.randomSuffixMinLength
: Set this to control the minimum length of the random suffix that is generated. This is especially useful in combination withautoTrim
to ensure that you still end up with unique names (e.g. a random suffix of 1 character is not very unique)closes https://github.com/pulumi/pulumi-aws-native/issues/1816, re https://github.com/pulumi/pulumi-cdk/issues/62