Don't go frenzy when a TPM is not found. Just return.

Because there is no guarantee that a TPM will eventually be found.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis 2022-11-09 12:51:49 +02:00
parent 7a07d5c45b
commit aa736211af
No known key found for this signature in database
GPG Key ID: 286DCAFD2C97DDE3

View File

@ -105,10 +105,7 @@ func Start(ctx context.Context, kclient *kubernetes.Clientset, reconciler *contr
if !found { if !found {
fmt.Println("No TPM Hash found for", hashEncoded) fmt.Println("No TPM Hash found for", hashEncoded)
conn.Close() conn.Close()
// conn.Close() return
// return
continue //will iterate until a TPM is available
} }
secret, challenge, err := tpm.GenerateChallenge(ek, at) secret, challenge, err := tpm.GenerateChallenge(ek, at)