Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/cli/services/cloud/azure/azure_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from azure.mgmt.privatedns import PrivateDnsManagementClient
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.storage.v2021_04_01.models import SkuName, Kind
from azure.mgmt.storage.models import SkuName, Kind
from azure.mgmt.subscription import SubscriptionClient
from azure.storage.blob import BlobServiceClient

Expand Down
5 changes: 3 additions & 2 deletions tools/cli/services/k8s/config_builder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pkg_resources
from importlib import resources

import yaml

from common.const.common_path import LOCAL_FOLDER
Expand All @@ -8,7 +9,7 @@
@trace()
def create_k8s_config(command: str, command_args: [], cloud_provider_auth_env_vars: dict, kubeconfig_params: dict,
kubeconfig_name: str = "kubeconfig") -> str:
template_file_path = pkg_resources.resource_filename('services.k8s', "kubeconfig.yaml")
template_file_path = str(resources.files('services.k8s') / "kubeconfig.yaml")

with open(template_file_path, "r") as file:
kubeconf = yaml.safe_load(file.read())
Expand Down
Loading