Skip to content
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 AMI names for CAPI AMI image build #69

Merged
merged 1 commit into from
Oct 8, 2019
Merged

fix AMI names for CAPI AMI image build #69

merged 1 commit into from
Oct 8, 2019

Conversation

aaroniscode
Copy link
Contributor

This PR makes 2 fixes to the AMI names for the CAPI AMI image build:

  1. Currently, the name of the AMI for Ubuntu, CentOS and Amazon Linux 2 are taken from kubernetes_deb_version variable. If a user is only building CentOS and/or Amazon Linux 2, the name of the deb version is not relevant. This updates the CentOS and Amazon Linux images to use the kubernetes_rpm_version.

  2. If the kubernetes_rpm_version or kubernetes_rpm_version containers an invalid AMI character like a +, packer will error. One use case for this is the VMware binaries. This PR uses packer's clean_resource_name which will replace invalid character with a -.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 6, 2019
@aaroniscode
Copy link
Contributor Author

/assign detiber

images/capi/packer/ami/packer.json Outdated Show resolved Hide resolved
images/capi/packer/ami/packer.json Show resolved Hide resolved
@detiber
Copy link
Member

detiber commented Oct 7, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 7, 2019
@detiber
Copy link
Member

detiber commented Oct 8, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aaroniscode, detiber

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit 0fb540f into kubernetes-sigs:master Oct 8, 2019
@aaroniscode aaroniscode deleted the fix_ami_names branch December 20, 2019 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants