Closed grac3gao-zz closed 3 years ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: grac3gao
The full list of commands accepted by this bot can be found here.
The pull request process is described here
I am not sure I fully understand the whole message.
The full error message we want for authentication check: MountVolume.SetUp failed for volume \"google-cloud-key\" : secret \"google-cloud-key\" not found
The full error message we don't want (a k8s internal issue, not an authentication configuration problem): MountVolume.SetUp failed for volume \"google-cloud-key\" : failed to sync secret cache: timed out waiting for the condition
old key word: MountVolume.SetUp failed for volume \"google-cloud-key\"
new key word: secret \"google-cloud-key\" not found
Why not use the whole sentence to check MountVolume.SetUp failed for volume \"google-cloud-key\" : secret \"google-cloud-key\" not found
?
I found there is a white space right after MountVolume.SetUp failed for volume \"google-cloud-key\"
, before :
in the event message. In other event message, this white space doesn't appear. I guess it is a kind of small typo in the original k8s codebase. In case they might delete this white space, and break our check, I only include half of the sentence to be the key words. Also, before verifying the event message, we filter in k8s events only for specific Pod object and for warning type, so it is unlikely that there might be other event message has the same keyword for this Pod object.
Thanks for clarification, this makes sense to me. And I will vote for partial matching too. /lgtm
Fixes #
Proposed Changes
Release Note
Docs