X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fkubectl.py;h=a56b6cdc2f98e39e0b7674e9d586a475ef956625;hp=ff48eda94b9843594ca4e253827fc53aca421e41;hb=4ae527ee394a9794c25e7a90fe895aa446c6c797;hpb=d8d4b6e70c0e4410a4b5c274faecd37ee821f3b7 diff --git a/n2vc/kubectl.py b/n2vc/kubectl.py index ff48eda..a56b6cd 100644 --- a/n2vc/kubectl.py +++ b/n2vc/kubectl.py @@ -254,10 +254,15 @@ class Kubectl: delay=1, fallback=Exception("Failed getting the secret from service account"), ) - async def get_secret_data(self, name: str, namespace: str = "kube-system") -> (str, str): + async def get_secret_data( + self, name: str, namespace: str = "kube-system" + ) -> (str, str): """ Get secret data + :param: name: Name of the secret data + :param: namespace: Name of the namespace where the secret is stored + :return: Tuple with the token and client certificate """ v1_core = self.clients[CORE_CLIENT]