Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release workflow microk8s channel #14

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
uses: charmed-kubernetes/[email protected]
with:
provider: microk8s
channel: 1.27-strict/stable
microk8s-addons: "storage dns rbac registry"
juju-channel: 3.2/stable
- name: Create local OCI images
Expand Down
14 changes: 7 additions & 7 deletions charms/openfga-k8s/lib/charms/openfga_k8s/v0/openfga.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand All @@ -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):
Expand Down