Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mateo Florido <[email protected]>
  • Loading branch information
addyess and mateoflorido authored Apr 19, 2024
1 parent cc9aa81 commit bd55c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charms/worker/k8s/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,14 @@ def _create_cos_tokens(self):
self.distributor.allocate_tokens(relation=rel, token_strategy=TokenStrategy.COS)

@on_error(
WaitingStatus("Waiting to enable Functionalities"),
WaitingStatus("Waiting to enable features"),
InvalidResponseError,
K8sdConnectionError,
)
def _enable_functionalities(self):
"""Enable necessary components for the Kubernetes cluster."""
status.add(ops.MaintenanceStatus("Updating K8s Functionalities"))
log.info("Enabling K8s Functionalities")
status.add(ops.MaintenanceStatus("Updating K8s features"))
log.info("Enabling K8s features")
dns_config = DNSConfig(enabled=True)
network_config = NetworkConfig(enabled=True)
user_cluster_config = UserFacingClusterConfig(dns=dns_config, network=network_config)
Expand Down

0 comments on commit bd55c2c

Please sign in to comment.