Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First pass at file api for k8s #175

Merged
merged 6 commits into from
Aug 28, 2024
Merged

First pass at file api for k8s #175

merged 6 commits into from
Aug 28, 2024

Conversation

hardillb
Copy link
Contributor

Description

Adds the driver interface to FlowFuse/nr-launcher#273

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@hardillb hardillb self-assigned this Aug 16, 2024
@hardillb hardillb requested a review from Steve-Mcl August 19, 2024 13:16
@hardillb
Copy link
Contributor Author

@Steve-Mcl This and the docker one, please review but don't merge

@hardillb
Copy link
Contributor Author

localfs for comparison FlowFuse/driver-localfs#144

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of point noted

kubernetes.js Outdated Show resolved Hide resolved
@@ -23,6 +23,7 @@
"dependencies": {
"@aws-sdk/client-efs": "^3.600.0",
"@kubernetes/client-node": "^0.18.1",
"form-data": "^4.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this package supported on Node versions < 18?

Because form-data is like 4y old, uses depreciated utils.isArray and FormData is now a part of Node 18.

https://developer.mozilla.org/en-US/docs/Web/API/FormData

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, we need to review this across all the static asset code, as Nick has used it in the localfs driver

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Steve-Mcl I'm going to leave this for now as it works

Copy link
Contributor

@Steve-Mcl Steve-Mcl Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, understand. Should probably raise an issue to mop this up later.

@hardillb hardillb merged commit 1e7bf08 into main Aug 28, 2024
3 checks passed
@hardillb hardillb deleted the add-file-api branch August 28, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants