Skip to content

✨clusterctl: add test framework for move #1977

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

Conversation

fabriziopandini
Copy link
Member

@fabriziopandini fabriziopandini commented Dec 31, 2019

What this PR does / why we need it:
This PR is part of the initial work for support for clusterctl move.
It introduces a test framework that allows creating fake v1alpha3 cluster API objects: cluster, control plane, machine deployments, machines etc. with all the ancillary objects (secrets, infrastructureRef or bootstrap.configRef objects etc.)

Which issue(s) this PR fixes
Rif #1729

/assign @vincepri

/cc @detiber (if you can take a look at the fake controlplane implementation 🙏 )

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 31, 2019
@fabriziopandini fabriziopandini force-pushed the clusterctl-move-test-framework branch from 8be7724 to 05d6f17 Compare December 31, 2019 11:13
@@ -0,0 +1,789 @@
/*
Copy link
Member

Choose a reason for hiding this comment

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

Is this something that we should make available more broadly to the repo? I'm not (necessarily) suggesting that we expose it externally, but it might come in handy for unit/integration testing elsewhere within the repository.

Copy link
Member Author

Choose a reason for hiding this comment

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

@detiber now it is designed for testing clusterctl move, but I see your point.

Might be we can merge it as it is, and then eventually move it to the test framework/to somewhere else when there are more clear requirements from the other potential consumers.

Copy link
Member

Choose a reason for hiding this comment

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

Let's open an issue so we don't forget later on

Copy link
Member Author

Choose a reason for hiding this comment

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

Here you go!
#1993

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
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 6, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini, 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 Jan 6, 2020
@k8s-ci-robot k8s-ci-robot merged commit 1b7f51e into kubernetes-sigs:master Jan 6, 2020
@fabriziopandini fabriziopandini deleted the clusterctl-move-test-framework branch January 7, 2020 12:23
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants