Skip to content

Commit

Permalink
fix: rename lib directory (#44)
Browse files Browse the repository at this point in the history
* fix: rename lib directory name
* fix: rename references to lib
  • Loading branch information
NohaIhab authored Jan 23, 2024
1 parent fa9c190 commit 81456fb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
```shell
cd some-charm
charmcraft fetch-lib charms.kubernetes_manifests.v0.kubernetes_manifests
charmcraft fetch-lib charms.resource_dispatcher.v0.kubernetes_manifests
```
In your charm, the library can be used in two ways depending on whether the manifests
Expand All @@ -20,7 +20,7 @@
In your charm do:
```python
from charms.kubernetes_manifests.v0.kubernetes_manifests import KubernetesManifestsRequirer, KubernetesManifest
from charms.resource_dispatcher.v0.kubernetes_manifests import KubernetesManifestsRequirer, KubernetesManifest
# ...
SECRETS_MANIFESTS = [
Expand Down
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from charmed_kubeflow_chisme.exceptions import ErrorWithStatus, GenericCharmRuntimeError
from charmed_kubeflow_chisme.kubernetes import KubernetesResourceHandler
from charmed_kubeflow_chisme.lightkube.batch import delete_many
from charms.kubernetes_manifests.v0.kubernetes_manifests import KubernetesManifestsProvider
from charms.observability_libs.v1.kubernetes_service_patch import KubernetesServicePatch
from charms.resource_dispatcher.v0.kubernetes_manifests import KubernetesManifestsProvider
from lightkube import ApiError
from lightkube.generic_resource import load_in_cluster_generic_resources
from lightkube.models.core_v1 import ServicePort
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/manifests-tester/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from typing import List

import yaml
from charms.kubernetes_manifests.v0.kubernetes_manifests import (
from charms.resource_dispatcher.v0.kubernetes_manifests import (
KubernetesManifest,
KubernetesManifestRequirerWrapper,
KubernetesManifestsRequirer,
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@pytest.fixture(scope="module")
def copy_libraries_into_tester_charm() -> None:
"""Ensure that the tester charms use the current libraries."""
lib = Path("lib/charms/kubernetes_manifests/v0/kubernetes_manifests.py")
lib = Path("lib/charms/resource_dispatcher/v0/kubernetes_manifests.py")
Path(MANIFESTS_REQUIRER_TESTER_CHARM, lib.parent).mkdir(parents=True, exist_ok=True)
shutil.copyfile(lib.as_posix(), (MANIFESTS_REQUIRER_TESTER_CHARM / lib).as_posix())

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pytest
import yaml
from charmed_kubeflow_chisme.exceptions import ErrorWithStatus, GenericCharmRuntimeError
from charms.kubernetes_manifests.v0.kubernetes_manifests import (
from charms.resource_dispatcher.v0.kubernetes_manifests import (
KUBERNETES_MANIFESTS_FIELD,
KubernetesManifest,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_resource_dispatcher_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ops.testing import Harness

from lib.charms.harness_extensions.v0.capture_events import capture
from lib.charms.kubernetes_manifests.v0.kubernetes_manifests import (
from lib.charms.resource_dispatcher.v0.kubernetes_manifests import (
KUBERNETES_MANIFESTS_FIELD,
KubernetesManifest,
KubernetesManifestRequirerWrapper,
Expand Down

0 comments on commit 81456fb

Please sign in to comment.