Also add file data to kubernetes secrets

This commit is contained in:
Marton Soos
2022-03-24 11:37:24 +01:00
parent 0d9e07f543
commit a903f9b1af
14 changed files with 959 additions and 115 deletions

View File

@@ -30,6 +30,14 @@ func GetOnePasswordItemByPath(opConnectClient connect.Client, path string) (*one
if err != nil {
return nil, err
}
for _, file := range item.Files {
_, err := opConnectClient.GetFileContent(file)
if err != nil {
return nil, err
}
}
return item, nil
}