There was a rare edge case where init would generate creds but then exit with failure causing the init container to restart. The init container would then detect the existing creds and renew them like a normal sidecar so your init phase would never end.
This stops this from happening by deleting the creds file and exiting if it ever gets into this odd state.
There was a rare edge case where init would generate creds but then exit with failure causing the init container to restart. The init container would then detect the existing creds and renew them like a normal sidecar so your init phase would never end.
This stops this from happening by deleting the creds file and exiting if it ever gets into this odd state.