Charmed-Kubernetes/keepalived/hooks/relations/juju-info/docs/provides.md

1.1 KiB

provides

JujuInfoClient

JujuInfoClient(endpoint_name, relation_ids=None)

addresses

A flat list of all addresses received from related apps / units.

This list is de-duplicated and sorted by address, so it will be stable for change comparison. If you need to know which app / unit an address comes from, see received_addresses_map.

Note: This uses ingress-address, so it will work with cross-model relations.

addresses_map

A nested dictionary of all addresses received from related apps / units by app name then unit name.

For example::

{
    'app1': {
        'app1/0': '10.0.0.1',
        'app1/1': '10.0.0.2',
    }
}

Note: This uses ingress-address, so it will work with cross-model relations.

unit_count

Number of joined units.

get_private_address

JujuInfoClient.get_private_address()

Deprecated.