Skip to content

Commit

Permalink
Addressing review comments
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <gulsum.atici@canonical.com>
  • Loading branch information
gatici committed Dec 6, 2023
1 parent 319a8ec commit 375e45f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SD-Core PCF K8s Operator
# SD-Core PCF Operator for K8s
[![CharmHub Badge](https://charmhub.io/sdcore-pcf-k8s/badge.svg)](https://charmhub.io/sdcore-pcf-k8s)

A Charmed K8s Operator for SD-Core's Policy Control Function (PCF) component.
A Charmed Operator for SD-Core's Policy Control Function (PCF) component for K8s.

## Usage

Expand Down
8 changes: 4 additions & 4 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

"""Charmed K8s operator for the SD-Core's PCF service."""
"""Charmed operator for the SD-Core's PCF service for K8s."""

import logging
from ipaddress import IPv4Address
Expand Down Expand Up @@ -41,8 +41,8 @@
CERTIFICATE_COMMON_NAME = "pcf.sdcore"


class PCFK8sOperatorCharm(CharmBase):
"""Main class to describe Juju event handling for the 5G PCF K8s operator."""
class PCFOperatorCharm(CharmBase):
"""Main class to describe Juju event handling for the 5G PCF operator for K8s."""

def __init__(self, *args):
super().__init__(*args)
Expand Down Expand Up @@ -489,4 +489,4 @@ def _get_pod_ip() -> Optional[str]:


if __name__ == "__main__": # pragma: no cover
main(PCFK8sOperatorCharm)
main(PCFOperatorCharm)
4 changes: 2 additions & 2 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
DATABASE_RELATION_NAME,
NRF_RELATION_NAME,
TLS_RELATION_NAME,
PCFK8sOperatorCharm,
PCFOperatorCharm,
)

logger = logging.getLogger(__name__)
Expand All @@ -30,7 +30,7 @@ def setUp(self):
self.default_database_application_name = "mongodb-k8s"
self.metadata = self._get_metadata()
self.container_name = list(self.metadata["containers"].keys())[0]
self.harness = testing.Harness(PCFK8sOperatorCharm)
self.harness = testing.Harness(PCFOperatorCharm)
self.harness.set_model_name(name=self.namespace)
self.addCleanup(self.harness.cleanup)
self.harness.set_leader(is_leader=True)
Expand Down

0 comments on commit 375e45f

Please sign in to comment.