Cinder Ceph K8S
- OpenStack Charmers
Channel | Revision | Published | Runs on |
---|---|---|---|
yoga/beta | 13 | 10 Mar 2023 | |
yoga/edge | 15 | 14 Apr 2023 | |
xena/beta | 11 | 21 Nov 2022 | |
xena/edge | 11 | 24 Nov 2022 | |
2024.1/beta | 98 | 07 Jan 2025 | |
2024.1/beta | 91 | 22 Nov 2024 | |
2024.1/edge | 98 | 13 Dec 2024 | |
2024.1/edge | 91 | 08 Oct 2024 | |
2023.2/stable | 45 | 06 Dec 2023 | |
2023.2/candidate | 57 | 25 Mar 2024 | |
2023.2/beta | 57 | 25 Mar 2024 | |
2023.2/edge | 57 | 06 Mar 2024 | |
2023.1/stable | 38 | 26 Sep 2023 | |
2023.1/candidate | 47 | 12 Jan 2024 | |
2023.1/beta | 47 | 10 Jan 2024 | |
2023.1/edge | 47 | 12 Dec 2023 |
juju deploy cinder-ceph-k8s --channel 2023.2/stable
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.cinder_ceph_k8s.v0.ceph_access
-
- Last updated 31 May 2024
- Revision Library version 0.3
CephAccess Provides and Requires module.
This library contains the Requires and Provides classes for handling the ceph-access interface.
Import CephAccessRequires
in your charm, with the charm object and the
relation name:
- self
- "ceph_access"
Three events are also available to respond to: - connected - ready - goneaway
A basic example showing the usage of this relation follows:
from charms.cinder_ceph_k8s.v0.ceph_access import CephAccessRequires
class CephAccessClientCharm(CharmBase):
def __init__(self, *args):
super().__init__(*args)
# CephAccess Requires
self.ceph_access = CephAccessRequires(
self,
relation_name="ceph_access",
)
self.framework.observe(
self.ceph_access.on.connected, self._on_ceph_access_connected)
self.framework.observe(
self.ceph_access.on.ready, self._on_ceph_access_ready)
self.framework.observe(
self.ceph_access.on.goneaway, self._on_ceph_access_goneaway)
def _on_ceph_access_connected(self, event):
'''React to the CephAccess connected event.
This event happens when n CephAccess relation is added to the
model before credentials etc have been provided.
'''
# Do something before the relation is complete
pass
def _on_ceph_access_ready(self, event):
'''React to the CephAccess ready event.
This event happens when an CephAccess relation is removed.
'''
# IdentityService Relation has goneaway. shutdown services or suchlike
pass
Index
class CephAccessConnectedEvent
Description
CephAccess connected Event. None
class CephAccessReadyEvent
Description
CephAccess ready for use Event. None
class CephAccessGoneAwayEvent
Description
CephAccess relation has gone-away Event None
class CephAccessServerEvents
Description
Events class for on
None
class CephAccessRequires
Description
CephAccessRequires class None
Methods
CephAccessRequires. __init__( self , charm , relation_name: str )
CephAccessRequires. get_remote_app_data( self , key: str )
Description
Return the value for the given key from remote app data. None
CephAccessRequires. ceph_access_data( self )
Description
Return the service_password. None
CephAccessRequires. ready( self )
Description
Return the service_password. None
class HasCephAccessClientsEvent
Description
Has CephAccessClients Event. None
class ReadyCephAccessClientsEvent
Description
Has ReadyCephAccessClients Event. None
class CephAccessClientEvents
Description
Events class for on
None
class CephAccessProvides
Description
CephAccessProvides class None
Methods
CephAccessProvides. __init__( self , charm , relation_name )
CephAccessProvides. set_ceph_access_credentials( self , relation_name: int , relation_id: str , access_credentials: str )