-
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
🌱 Fix yaml file write issue in create-local-repository.py #3648
🌱 Fix yaml file write issue in create-local-repository.py #3648
Conversation
Hi @Jaakko-Os. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @bboreham |
@Jaakko-Os: GitHub didn't allow me to request PR reviews from the following users: bboreham. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area clusterctl |
/ok-to-test |
Please note that this PR reverts https://github.com/kubernetes-sigs/cluster-api/blob/master/cmd/clusterctl/hack/create-local-repository.py#L129 but leaves https://github.com/kubernetes-sigs/cluster-api/blob/master/cmd/clusterctl/hack/create-local-repository.py#L181 unchanged |
Like I said, we should get someone who knows Python to comment. |
Wild thought 😄 , could we rewrite this simple python program in Go? |
$ python --version |
@vincepri @bboreham @fabriziopandini could we get this issue forward to reach a solution? |
I will try to give another run locally, but we should seek for a solution that works for both. |
With the change in this PR the script works both on python |
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged Fixes: metal3-io#427
@Jaakko-Os Can you fix the commit so it doesn't include or reference a github issue or PR? |
done |
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged Fixes: metal3-io#427
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged Fixes: metal3-io#427
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged Fixes: metal3-io#427
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged Fixes: metal3-io#427
File "cmd/clusterctl/hack/create-local-repository.py", line 130, in write_local_repository f.write(components_yaml) TypeError: write() argument must be str, not bytes kubernetes-sigs#3647
44bee70
to
a17523e
Compare
/retest |
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade Workarounds -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged -added wait for the controllers loop due to environment fluctuation Fixes: metal3-io#427
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.
/approve
/retitle 🌱 Fix yaml file write issue in create-local-repository.py
/assign @fabriziopandini
/approve |
[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 |
The combined upgrade consists of -controlplane component upgrade using clusterctl -k8s version and disk image upgrade for master and worker -ironic image upgrade Workarounds -local-overrides workaround included until kubernetes-sigs/cluster-api#3648 is merged -added wait for the controllers loop due to environment fluctuation Fixes: metal3-io#427
What this PR does / why we need it:
This PR fixes a file write issue in create-local-repository.py which is detected during component upgrade using clusterctl.
Which issue(s) this PR fixes