Skip to content

Commit

Permalink
chore: Rename SD-Core charms by adding -k8s as a suffix
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 f131ada commit 31548b1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@main
with:
charm-file-name: "sdcore-pcf_ubuntu-22.04-amd64.charm"
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"

publish-charm:
name: Publish Charm
Expand All @@ -39,5 +39,5 @@ jobs:
if: ${{ github.ref_name == 'main' }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@main
with:
charm-file-name: "sdcore-pcf_ubuntu-22.04-amd64.charm"
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
secrets: inherit
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# SD-Core PCF Operator (k8s)
[![CharmHub Badge](https://charmhub.io/sdcore-pcf/badge.svg)](https://charmhub.io/sdcore-pcf)
# SD-Core PCF K8s Operator
[![CharmHub Badge](https://charmhub.io/sdcore-pcf-k8s/badge.svg)](https://charmhub.io/sdcore-pcf-k8s)

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

## Usage

```bash
juju deploy mongodb-k8s --channel 5/edge --trust
juju deploy sdcore-nrf --channel edge
juju deploy sdcore-pcf --channel edge
juju deploy sdcore-nrf-k8s --channel edge
juju deploy sdcore-pcf-k8s --channel edge
juju deploy self-signed-certificates --channel=beta

juju integrate sdcore-pcf mongodb-k8s
juju integrate sdcore-nrf self-signed-certificates
juju integrate sdcore-pcf:fiveg_nrf sdcore-nrf
juju integrate sdcore-pcf:certificates self-signed-certificates:certificates
juju integrate sdcore-pcf-k8s mongodb-k8s
juju integrate sdcore-nrf-k8s self-signed-certificates
juju integrate sdcore-pcf-k8s:fiveg_nrf sdcore-nrf
juju integrate sdcore-pcf-k8s:certificates self-signed-certificates:certificates
```

## Image
Expand Down
10 changes: 5 additions & 5 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: sdcore-pcf
name: sdcore-pcf-k8s

display-name: SD-Core PCF
display-name: SD-Core PCF K8s
summary: A Charmed Operator for SD-Core's PCF component.
description: |
A Charmed Operator for SD-Core's Policy Control Function (PCF) component.
website: https://charmhub.io/sdcore-pcf
source: https://github.com/canonical/sdcore-pcf-operator
issues: https://github.com/canonical/sdcore-pcf-operator/issues
website: https://charmhub.io/sdcore-pcf-k8s
source: https://github.com/canonical/sdcore-pcf-k8s-operator
issues: https://github.com/canonical/sdcore-pcf-k8s-operator/issues

containers:
pcf:
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 operator for the SD-Core's PCF service."""
"""Charmed K8s operator for the SD-Core's PCF service."""

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


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

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(PCFOperatorCharm)
main(PCFK8sOperatorCharm)
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,
PCFOperatorCharm,
PCFK8sOperatorCharm,
)

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(PCFOperatorCharm)
self.harness = testing.Harness(PCFK8sOperatorCharm)
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 31548b1

Please sign in to comment.