-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix: remove extra "release" keyword from vsphere template name #336
Conversation
@@ -2,7 +2,7 @@ | |||
"variables": { | |||
"ansible_extra_vars": "", | |||
"build_timestamp": "{{timestamp}}", | |||
"vm_name": "konvoy-ova-{{user `build_name`}}{{user `build_name_extra`}}-{{user `kubernetes_full_version` }}-{{user `build_timestamp`}}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build_name_extra is already added by the go code. so removing repetition here. https://github.com/mesosphere/konvoy-image-builder/blob/main/pkg/app/config.go#L195
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will the resulting name be? Doesn't the -release
come from build_name_extra
which are we now removing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am planning to change the TC job to add the branch_name in the build_name_extra
cat <<EOF > release-overrides.yaml
build_name_extra: release-%teamcity.build.branch%
EOF
the go code adds the build_name_extra
so we dont need to add it explicitly in packer template.
https://github.com/mesosphere/konvoy-image-builder/blob/main/pkg/app/config.go#L98
The resulting template name will look like: konvoy-rhel-79-release-v1.13.2-1.22.8+fips.0-1652304962
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍,
I see its not in AMI either
Minimum allowed coverage is Generated by 🐒 cobertura-action against 90c84fc |
What problem does this PR solve?:
This is one of the first PR to help cleanup vSphere environment and automate it.
konvoy-ova-vsphere-rhel-79-release-release-1.22.8+fips.0-1652280664
ova-vsphere
keyword to allow more room in the VM name. The VM name length is limited.We are planning to add KIB version in the name of the release template so that we can automate "lookup" functionality when running e2e tests. This will help make image lookup similar as we do in AWS AMI lookup and avoid creating a PR to change the template name.
buildname_extra: release-v1.13.2
I will file another PR that will cleanup old released template from vSphere.