pulumi-gcp: GCP label naming style error on pulumiLabels.% after upgrading to v7.2.1
What happened?
After upgrading from Pulumi 6.67.0 to 7.2.1, we aren’t able to deploy our Cloud Run services anymore. This is the error we’re getting:
At least one label does not conform to GCP naming style. Label key 'pulumiLabels.%' violates format constraints. The key must start with a lowercase character, can only contain lowercase letters, numeric characters, underscores and dashes. The key can be at most 63 characters long. International characters are allowed.
Any ideas how to solve this?
Example
- Create a Cloud Run service with Pulumi 6.67.0
- Upgrade to 7.2.1
- run
pulumi up
Output of pulumi about
➜ pulumi pulumi about
CLI
Version 3.92.0
Go Version go1.21.3
Go Compiler gc
Plugins
NAME VERSION
aiven 6.7.2
gcp 7.2.1
nodejs unknown
Host
OS darwin
Version 13.0.1
Arch arm64
This project is written in nodejs: executable='/Users/mroloux/.nvm/versions/node/v18.13.0/bin/node' version='v18.13.0'
Backend
Name pulumi.com
URL https://app.pulumi.com/mroloux
User mroloux
Organizations mroloux, seatsio
Token type personal
Dependencies:
NAME VERSION
@pulumi/aiven 6.7.2
@pulumi/gcp 7.2.1
@pulumi/pulumi 3.94.2
@types/node 20.10.3
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 19 (7 by maintainers)
Commits related to this issue
- Expose the schema info for a resource from VisitResourceRoot (#1706) This is necessary to correctly use `.Info` on the resource. I need this information to fix a bug in gcp labels: https://github.c... — committed to pulumi/pulumi-terraform-bridge by iwahbe 3 years ago
- Propagate field overrides for nested objects This is a prerequisite for https://github.com/pulumi/pulumi-gcp/issues/1387. — committed to pulumi/pulumi-terraform-bridge by iwahbe 3 years ago
- Propagate name overrides for nested objects (#1710) This is a prerequisite for https://github.com/pulumi/pulumi-gcp/issues/1387. — committed to pulumi/pulumi-terraform-bridge by iwahbe 3 years ago
- Correct nested labels (#1711) This PR hardens our labels implementation, ensuring that it correctly handles arbitrarily nested items. It incorporates a pre-release version of the bridge to use h... — committed to pulumi/pulumi-gcp by iwahbe 3 years ago
@iwahbe Thanks!
I’m upgrading us to 7.9.0 right now and will update if I notice any change.
I’m going to take another look at reproducing this bug.
Seems to work fine in v7.4.0