Skip to content
Merged
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
5 changes: 4 additions & 1 deletion lib/charms/kratos/v0/kratos_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def some_event_function():

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 6
LIBPATCH = 7

RELATION_NAME = "kratos-info"
INTERFACE_NAME = "kratos_info"
Expand Down Expand Up @@ -100,6 +100,7 @@ def send_info_relation_data(
oidc_webauthn_sequencing_enabled: bool,
verification_enabled: bool,
feature_flags: Optional[list[str]] = None,
privileged_session_max_age: Optional[str] = None,
) -> None:
"""Updates relation with endpoints, config and configmaps info."""
if not self._charm.unit.is_leader():
Expand All @@ -123,6 +124,8 @@ def send_info_relation_data(

if feature_flags:
info_databag["feature_flags"] = ",".join(feature_flags)
if privileged_session_max_age:
info_databag["privileged_session_max_age"] = privileged_session_max_age

for relation in relations:
relation.data[self._charm.app].update(info_databag)
Expand Down
Loading