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

🌱 Include metadata for the CAPI releases #4167

Merged

Conversation

wfernandes
Copy link
Contributor

What this PR does / why we need it:
Since we removed the embedded metadata, we are going to include the metadata.yaml in the CAPI release assets.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #4156

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 9, 2021
Comment on lines +7 to +13
releaseSeries:
- major: 0
minor: 4
contract: v1alpha4
- major: 0
minor: 3
contract: v1alpha3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I specifically excluded v1alpha2 because the bootstrap provider was v0.1.x for v1alpha2 and ControlPlane provider didn't exist.

Question: Do we need to include v1alpha3 series here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should for future reference, even if it's not strictly needed. Are there any downsides to including it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the only downside I can see is that, currently the three providers - CoreProvider/cluster-api, BootstrapProvider/Kubeadm, and ControlPlaneProvider/Kubeadm all share the same repository and therefore the same metadata.yaml.

If we include a series for v1alpha2 such as

  - major: 0
    minor: 2
    contract: v1alpha2

it would be misleading because for BootstrapProvider/Kubeadm it was v0.1 for v1alpha2. See here for old reference.

However, the above would be accurate for ControlPlaneProvider/Kubeadm. So because of BootstrapProvider/Kubeadm, I decided to not include it.

Makefile Show resolved Hide resolved
cmd/clusterctl/hack/create-local-repository.py Outdated Show resolved Hide resolved
@CecileRobertMichon
Copy link
Contributor

@wfernandes does this change require any action from providers?

@wfernandes
Copy link
Contributor Author

wfernandes commented Feb 9, 2021

@CecileRobertMichon Nope. There shouldn't be any changes to other providers.

@wfernandes wfernandes force-pushed the core-provider-metadata branch from 234038c to b40f31f Compare February 10, 2021 21:26
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 10, 2021
@fabriziopandini
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 11, 2021
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/milestone v0.4.0

@k8s-ci-robot k8s-ci-robot added this to the v0.4.0 milestone Feb 11, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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 Feb 11, 2021
@k8s-ci-robot k8s-ci-robot merged commit 338375a into kubernetes-sigs:master Feb 11, 2021
@wfernandes wfernandes deleted the core-provider-metadata branch February 11, 2021 20:05
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clusterctl init fails
5 participants