Skip to content

Commit

Permalink
Add await and remove most debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Jun 28, 2024
1 parent 9bd88d1 commit a23472e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const createPersistentVolumeClaim = async (project, options) => {
if (drvOptions?.storage?.storageClass) {
pvc.spec.storageClassName = drvOptions.storage.storageClass
} else if (drvOptions?.storage?.storageClassEFSTag) {
pvc.spec.storageClassName = awsEFS.lookupStorageClass(drvOptions?.storage?.storageClassEFSTag)
pvc.spec.storageClassName = await awsEFS.lookupStorageClass(drvOptions?.storage?.storageClassEFSTag)
}

if (drvOptions?.storage?.size) {
Expand All @@ -321,6 +321,7 @@ const createPersistentVolumeClaim = async (project, options) => {
'ff-project-id': project.id,
'ff-project-name': project.safeName
}
console.log(`PVC: ${JSON.stringify(pvc,null,2)}`)

Check failure on line 324 in kubernetes.js

View workflow job for this annotation

GitHub Actions / build / Build on 18

A space is required after ','

Check failure on line 324 in kubernetes.js

View workflow job for this annotation

GitHub Actions / build / Build on 18

A space is required after ','
return pvc
}

Expand Down
4 changes: 2 additions & 2 deletions lib/aws-efs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ let client

async function lookupStorageClass (tagName) {

console.log(`Looking for ${tagName}`)
// console.log(`Looking for ${tagName}`)

if (!client) {
client = new EFSClient()
}

const fsCommand = new DescribeFileSystemsCommand()
const fsList = await client.send(fsCommand)
console.log(JSON.stringify(fsList, null, 2))
// console.log(JSON.stringify(fsList, null, 2))

const fileSystems = []

Expand Down

0 comments on commit a23472e

Please sign in to comment.