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

Fixes deploying controller charm on Kubernetes. #16507

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

tlm
Copy link
Member

@tlm tlm commented Oct 27, 2023

This fix set IsControllerCloud on the cloud object established during bootstrap from params. Without this the state policy that we wire up won't be able to construct a Kubernetes environ.

This is a really ugly fix but it can go with Mongo.

Fixes lp2040947

Why this change is needed and what it does.

Checklist

If an item is not applicable, use ~strikethrough~.

  • Code style: imports ordered, good names, simple structure, etc
  • Comments saying why design decisions were made
  • [ ] Go unit tests, with comments saying what you're testing
  • [ ] Integration tests, with comments saying what you're testing
  • [ ] doc.go added or updated in changed packages

QA steps

  1. Bootstrap to a Kubernetes cluster
  2. Check the logs to make sure there are no errors constructing the provider. Specifically logs such as Get "https://127.0.0.1:16443/api/v1/namespaces?labelSelector=model.juju.is%2Fname%3Dcontroller": dial tcp 127.0.0.1:16443: connect: connection refused
  3. Run juju switch controller then juju status to confirm that the controller charm is deployed.

Documentation changes

N/A

Links

Launchpad bug: https://bugs.launchpad.net/juju/+bug/2040947

Jira card: JUJU-4883

Insert other relevant links here.

This fix set IsControllerCloud on the cloud object established during
bootstrap from params. Without this the state policy that we wire up
won't be able to construct a Kubernetes environ.

This is a really ugly fix but it can go with Mongo.

Fixes lp2040947
@tlm
Copy link
Member Author

tlm commented Oct 27, 2023

/merge

@jujubot jujubot merged commit fb2169b into juju:main Oct 27, 2023
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants