Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Allow non-leaders to see responses #13

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

johnsca
Copy link
Contributor

@johnsca johnsca commented Apr 6, 2021

For whatever reason, non-leaders are blocked from reading app-level relation data set by the leader. This means they can't read the list of requests nor compare the hashes of those requests to see if the responses are complete. This works around that by just having non-leaders assume that any provided response is complete.

Part of lp:1921776

For whatever reason, non-leaders are blocked from reading app-level
relation data set by the leader. This means they can't read the list of
requests nor compare the hashes of those requests to see if the
responses are complete. This works around that by just having
non-leaders assume that any provided response is complete.
johnsca added a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request Apr 6, 2021
This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818
johnsca added a commit to charmed-kubernetes/bundle that referenced this pull request Apr 6, 2021
@johnsca johnsca merged commit ced20b8 into main Apr 20, 2021
@johnsca johnsca deleted the johnsca/lp/1921776/non-leader-read-responses branch April 20, 2021 18:19
johnsca added a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request May 4, 2021
This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818
johnsca added a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request May 10, 2021
This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818
johnsca added a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request May 12, 2021
This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818
johnsca added a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request May 13, 2021
This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818
johnsca added a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request May 18, 2021
This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818
Cynerva pushed a commit to charmed-kubernetes/charm-kubernetes-control-plane that referenced this pull request May 19, 2021
* Add support for loadbalancer interface

This adds support for the `loadbalancer` interface so that cloud-native
LBs can be provided by the integrator charms. Additionally, it
simplifies the confusing way the relations between the masters and
workers change depending on whether kubeapi-load-balancer is being used
or not by making that use the same `lb-provider` endpoint and always
forwarding the API endpoint URLs via the `kube-control` relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818

* Fix lint error

* Add test for status reporting of incomplete LB relation

* Fix lint errors in test

* Fix hook error when built with old version of kube-control interface

* Split lb-provider endpoint into separate, more explicit ones for internal / external

* Fix handling of internal LB response and missing endpoints

* Move test to new LB relation pattern and use edge charms

* Improve status reporting around the auth-webhook and skip trying to create secrets before apiserver is available

* Create a ~/.kube/config for the ubuntu user

* Fix NoneType error for old-style relation

* Fix unit test

* Revert drive-by related to auth setup status reporting; splitting to separate bug
Cynerva pushed a commit to charmed-kubernetes/bundle that referenced this pull request May 24, 2021
* Support loadbalancer interface between master and API LB

Simplify the relations between the master, worker, and API LB charms in
favor of the newer `loadbalancer` interface relation.

Part of [lp:1897818][]
Depends on:
  * juju-solutions/loadbalancer-interface#13
  * juju-solutions/interface-kube-control#33
  * charmed-kubernetes/charm-kubernetes-control-plane#153
  * charmed-kubernetes/charm-kubernetes-worker#84
  * charmed-kubernetes/charm-kubeapi-load-balancer#11

[lp:1897818]: https://bugs.launchpad.net/charmed-kubernetes-testing/+bug/1897818

* Split k8s-master:lb-provider relation into external / internal

* Update core and converged bundle fragments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants