Skip to content

Commit fb4170b

Browse files
committed
log attempts to load kube data
1 parent 2525271 commit fb4170b

File tree

1 file changed

+7
-0
lines changed
  • examples/list_pod_buffer

1 file changed

+7
-0
lines changed

examples/list_pod_buffer/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,16 @@ static char *getFileData(const char *filePath)
6363
}
6464

6565
fclose(kubeFile);
66+
} else {
67+
printf("Could not open %s!\n", kubeConfigFile);
6668
}
69+
6770
free(kubeConfigFile);
71+
} else {
72+
printf("Could not determine the path to kubernetes configuration file! Tried: ENV_KUBECONFIG = %s and ENV_HOME = %s\n",
73+
getenv(ENV_KUBECONFIG), getenv(ENV_HOME) );
6874
}
75+
6976

7077
return data;
7178
}

0 commit comments

Comments
 (0)