SimpleConnector api does not support HA controllers

Bug #1966131 reported by Stone Preston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Arnaud Delobelle

Bug Description

The 2.9 version of the juju golang API includes a simple connector API that is much appreciated and very easy to use! The SimpleConnectorConfig struct accepts a string for the controller address as shown here: https://github.com/juju/juju/blob/d5d762b6053b60ab20b4709c0c3dbfb3deb1d1f4/api/connector.go#L22

This is a problem when trying to support HA controllers as only a single address can be provided. However, the info struct that is populated as part of the NewSimpleConnector method call accepts a string slice. Can the SimpleConnector config be updated to use a string slice instead of a plain string in order for multiple controller addresses to be provided?

Ian Booth (wallyworld)
Changed in juju:
assignee: nobody → Arnaud Delobelle (arnodel)
milestone: none → 2.9.28
status: New → Triaged
importance: Undecided → High
Revision history for this message
Arnaud Delobelle (arnodel) wrote :
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Arnaud Delobelle (arnodel) wrote :

The Config data structure has now a ControllerAddresses field which accepts a slice of addresses.

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.