Skip to content

Commit 804d9b7

Browse files
Update pkg/certs/rotate.go
Co-authored-by: Florian MEDJA <[email protected]>
1 parent 2409cdb commit 804d9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/certs/rotate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func SyncSecret(ctx context.Context, secretNamespace, secretName, pkiPath string
238238
d, err := os.ReadFile(filepath.Join(pkiPath, k))
239239
if err != nil {
240240
if !errors.Is(err, os.ErrNotExist) {
241-
return fmt.Errorf("reading file %s: %w", k, err)
241+
return fmt.Errorf("reading file %s: %w", filepath.Join(pkiPath, k), err)
242242
}
243243
// If the cert/key referenced in certMap does not exist in the PKI directory, don't add it to the secret.
244244
continue

0 commit comments

Comments
 (0)