diff --git a/.github/workflows/charm.yaml b/.github/workflows/charm.yaml index 4b55004..28bfd19 100644 --- a/.github/workflows/charm.yaml +++ b/.github/workflows/charm.yaml @@ -61,6 +61,7 @@ jobs: uses: charmed-kubernetes/actions-operator@1.1.0 with: provider: microk8s + channel: 1.27-strict/stable microk8s-addons: "storage dns rbac registry" juju-channel: 3.2/stable - name: Create local OCI images diff --git a/charms/openfga-k8s/lib/charms/openfga_k8s/v0/openfga.py b/charms/openfga-k8s/lib/charms/openfga_k8s/v0/openfga.py index 09d86f2..d4e5b3a 100644 --- a/charms/openfga-k8s/lib/charms/openfga_k8s/v0/openfga.py +++ b/charms/openfga-k8s/lib/charms/openfga_k8s/v0/openfga.py @@ -76,7 +76,7 @@ def _on_openfga_store_created(self, event: OpenFGAStoreCreateEvent): # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 4 +LIBPATCH = 5 logger = logging.getLogger(__name__) @@ -88,27 +88,27 @@ class OpenFGAEvent(RelationEvent): @property def store_id(self): - return self.relation.data[self.relation.app].get("store_id") + return self.relation.data[self.relation.app].get("store_id", "") @property def token_secret_id(self): - return self.relation.data[self.relation.app].get("token_secret_id") + return self.relation.data[self.relation.app].get("token_secret_id", "") @property def token(self): - return self.relation.data[self.relation.app].get("token") + return self.relation.data[self.relation.app].get("token", "") @property def address(self): - return self.relation.data[self.relation.app].get("address") + return self.relation.data[self.relation.app].get("address", "") @property def scheme(self): - return self.relation.data[self.relation.app].get("scheme") + return self.relation.data[self.relation.app].get("scheme", "") @property def port(self): - return self.relation.data[self.relation.app].get("port") + return self.relation.data[self.relation.app].get("port", "") class OpenFGAStoreCreateEvent(OpenFGAEvent):