Gnocchi K8S
- OpenStack Charmers
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/edge | 1 | 09 Aug 2023 | |
2024.1/beta | 61 | 11 Dec 2024 | |
2024.1/beta | 56 | 22 Nov 2024 | |
2024.1/edge | 62 | 13 Dec 2024 | |
2024.1/edge | 56 | 07 Oct 2024 | |
2023.2/stable | 14 | 06 Dec 2023 | |
2023.2/candidate | 26 | 25 Mar 2024 | |
2023.2/beta | 26 | 25 Mar 2024 | |
2023.2/edge | 26 | 23 Feb 2024 | |
2023.1/candidate | 16 | 12 Jan 2024 | |
2023.1/beta | 16 | 10 Jan 2024 | |
2023.1/edge | 16 | 12 Dec 2023 |
juju deploy gnocchi-k8s --channel edge
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.gnocchi_k8s.v0.gnocchi_service
-
- Last updated 10 Oct 2023
- Revision Library version 0.2
GnocchiService Provides and Requires module.
This library contains the Requires and Provides classes for handling the Gnocchi service interface.
Import GnocchiServiceRequires
in your charm, with the charm object and the
relation name:
- self
- "gnocchi-db"
Two events are also available to respond to: - readiness_changed - goneaway
A basic example showing the usage of this relation follows:
from charms.gnocchi_k8s.v0.gnocchi_service import (
GnocchiServiceRequires
)
class GnocchiServiceClientCharm(CharmBase):
def __init__(self, *args):
super().__init__(*args)
# GnocchiService Requires
self.gnocchi_svc = GnocchiServiceRequires(
self, "gnocchi-db",
)
self.framework.observe(
self.gnocchi_svc.on.readiness_changed,
self._on_gnocchi_service_readiness_changed
)
self.framework.observe(
self.gnocchi_svc.on.goneaway,
self._on_gnocchi_service_goneaway
)
def _on_gnocchi_service_readiness_changed(self, event):
'''React to the Gnocchi service readiness changed event.
This event happens when Gnocchi service relation is added to the
model and relation data is changed.
'''
# Do something with the configuration provided by relation.
pass
def _on_gnocchi_service_goneaway(self, event):
'''React to the Gnocchi Service goneaway event.
This event happens when Gnocchi service relation is removed.
'''
# HeatSharedConfig Relation has goneaway.
pass
Index
class GnocchiServiceReadinessRequestEvent
Description
GnocchiServiceReadinessRequest Event. None
class GnocchiServiceProviderEvents
Description
Events class for on
. None
class GnocchiServiceProvides
Description
GnocchiServiceProvides class. None
Methods
GnocchiServiceProvides. __init__( self , charm: CharmBase , relation_name: str )
GnocchiServiceProvides. set_service_status( self , relation: Relation , is_ready: bool )
Description
Set gnocchi service readiness status on the relation. None
class GnocchiServiceReadinessChangedEvent
Description
GnocchiServiceReadinessChanged Event. None
class GnocchiServiceGoneAwayEvent
Description
GnocchiServiceGoneAway Event. None
class GnocchiServiceRequirerEvents
Description
Events class for on
. None
class GnocchiServiceRequires
Description
GnocchiServiceRequires class. None
Methods
GnocchiServiceRequires. __init__( self , charm: CharmBase , relation_name: str )
GnocchiServiceRequires. get_remote_app_data( self , key: str )
Description
Return the value for the given key from remote app data. None
GnocchiServiceRequires. service_ready( self )
Description
Return if gnocchi service is ready or not. None