Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCloudSec committed Nov 27, 2024
1 parent f07016f commit fddcc1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prowler/providers/kubernetes/kubernetes_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ def setup_session(
try:
if kubeconfig_content:
logger.info("Using kubeconfig content...")
logger.info(f"kubeconfig content: {kubeconfig_content}")
logger.info(
f"kubeconfig content: {type(kubeconfig_content)}{kubeconfig_content}"
)
config_data = safe_load(kubeconfig_content)
logger.info(f"config_data: {type(config_data)}{config_data}")
config.load_kube_config_from_dict(config_data, context=context)
if context:
contexts = config_data.get("contexts", [])
Expand Down

0 comments on commit fddcc1f

Please sign in to comment.