-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.1.7
blocks valid image label values
#248
Comments
1.1.7
blocks valid image label _values_1.1.7
blocks valid image label values
This is happening with our builds too. version 1.1.6 works fine |
Caused by #240 having the same regex for labels and keys which is invalid. |
Good catch @ericnorris, that one's on me, I didn't read the specs enough before merging the PR earlier. I'll open a PR to address this one ASAP, and publish another release, likely tomorrow, which hopefully will fix this problem. |
The PR is now open, please feel free to review it to make sure I haven't forgotten any edge-case, and if possible, could I ask you to test it @ericnorris / @chrisstaite / @AlanHale25 ? Since we are releasing tomorrow, I would love to have a confirmation from any of you that the problem is indeed fixed so we can avoid another blunder. Thanks in advance! |
Thanks for the reviews/discussions on the PR, great insights there! The PR is merged, and now we are releasing v1.1.8 of the plugin with that patch in, so within one hour, the new version should be available, fixing this issue. |
Overview of the Issue
Since version
1.1.7
, likely due to #240, we are unable to publish images that have a label value that starts with a number:I believe this is overly restrictive - the documentation (https://cloud.google.com/compute/docs/labeling-resources) states (emphasis mine):
Keys must start with a lowercase letter, but not values. In our case, the value is rejected for not starting with a letter, which I think is incorrect. We are unable to publish images using this plugin version due to this.
Reproduction Steps
git-sha
, and a label value of380ab351648ae3591f65fa9fb7521df0c432000e
Plugin and Packer version
plugin-googlecompute_v1.1.7_x5.0_linux_amd64
Simplified Packer Buildfile
N/A
Operating system and Environment details
N/A
Log Fragments and crash.log files
N/A
The text was updated successfully, but these errors were encountered: