Update certificates endpoint after microcluster update
The certificates endpoint changed when migrating to microcluster TLS. Change-Id: I6aa2159b1dd25935e257dc804d255b044f0be21f Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This commit is contained in:
@@ -188,7 +188,5 @@ class ClusterdClient:
|
||||
This is because we don't want microcluster to go full CA-mode.
|
||||
"""
|
||||
self._put("/1.0/config/cluster-ca", data=ca)
|
||||
data = {"public_key": cert, "private_key": key}
|
||||
self._put(
|
||||
"/cluster/internal/cluster/certificates", data=json.dumps(data)
|
||||
)
|
||||
data = {"cert": cert, "key": key}
|
||||
self._put("/core/1.0/cluster/certificates/cluster", json=data)
|
||||
|
Reference in New Issue
Block a user