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]