Update operator based on latest operator-sdk

This commit is contained in:
Eddy Filip
2022-10-24 15:36:56 +02:00
parent a132741778
commit d75b029dfa
162 changed files with 27056 additions and 3389 deletions

View File

@@ -117,7 +117,7 @@ func pbDecrypt(info decryptable, password []byte) (decrypted []byte, err error)
}
ps := decrypted[len(decrypted)-psLen:]
decrypted = decrypted[:len(decrypted)-psLen]
if bytes.Compare(ps, bytes.Repeat([]byte{byte(psLen)}, psLen)) != 0 {
if !bytes.Equal(ps, bytes.Repeat([]byte{byte(psLen)}, psLen)) {
return nil, ErrDecryption
}