-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨clusterctl: implements hack for generating local overrides #2027
✨clusterctl: implements hack for generating local overrides #2027
Conversation
e3835c8
to
fe4d60d
Compare
def write_local_override(provider, version, components_file, components_yaml): | ||
try: | ||
home = get_home() | ||
overrides_folder = os.path.join(home, 'cluster-api', 'overrides') |
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 think we'd want this in a dotfolder, like .cluster-api
, right?
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.
In the CAEP the consensus was for $HOME/cluster-api/.clusterctl.yaml
If you are ok I will be happy to change it into $HOME/.cluster-api/clusterctl.yaml
in a follow-up PR
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.
$HOME/cluster-api
feels very wrong to me. Follow-up is fine, but let's remember to do it 😄
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.
Huge +1, the folder should be hidden
@ncdc comment addressed! |
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.
LGTM pending squash
4213d71
to
0781bb1
Compare
@ncdc squashed/add a new line where missing |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, ncdc 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 |
XRef kubernetes-sigs/cluster-api#2027 a file with name clusterctl-settings.json is what is expected
What this PR does / why we need it:
This PR implements a hack that makes it easy to test clusterctl even if now there are no published releases for v1alpha3
From the cluster-api repo
Edit you local
clusterctl-settings.json
file (same philosophy oftilt-settings.json
), e.g.Then run
The output will be similar to
Happy hacking!
Which issue(s) this PR fixes
Rif #1729
/assign @vincepri
/assign @ncdc
/cc @akutz
/cc @yastij