Skip to content

Commit

Permalink
log attempts to load kube data
Browse files Browse the repository at this point in the history
  • Loading branch information
DanyT committed Jul 5, 2024
1 parent 2525271 commit fb4170b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/list_pod_buffer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,16 @@ static char *getFileData(const char *filePath)
}

fclose(kubeFile);
} else {
printf("Could not open %s!\n", kubeConfigFile);
}

free(kubeConfigFile);
} else {
printf("Could not determine the path to kubernetes configuration file! Tried: ENV_KUBECONFIG = %s and ENV_HOME = %s\n",
getenv(ENV_KUBECONFIG), getenv(ENV_HOME) );
}


return data;
}
Expand Down

0 comments on commit fb4170b

Please sign in to comment.