-
Notifications
You must be signed in to change notification settings - Fork 8
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
nostr script gridclient #3776
base: development
Are you sure you want to change the base?
nostr script gridclient #3776
Conversation
import { config, getClient } from "../client_loader"; | ||
import { log, pingNodes } from "../utils"; | ||
|
||
async function deploy(client: GridClient, vms: MachinesModel, subdomain: string, gatewayNode: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async function deploy(client: GridClient, vms: MachinesModel, subdomain: string, gatewayNode: any) { | |
async function deploy(client: GridClient, vms: MachinesModel, subdomain: string, gatewayNode: NodeInfo) { |
please update this type its better to avoid any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gatewayNode's type is still any, please change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure to change the type here
437e7fd
to
bb1cc9f
Compare
import { config, getClient } from "../client_loader"; | ||
import { log, pingNodes } from "../utils"; | ||
|
||
async function deploy(client: GridClient, vms: MachinesModel, subdomain: string, gatewayNode: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gatewayNode's type is still any, please change it
Changes and suggestions made and resolved |
import { config, getClient } from "../client_loader"; | ||
import { log, pingNodes } from "../utils"; | ||
|
||
async function deploy(client: GridClient, vms: MachinesModel, subdomain: string, gatewayNode: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure to change the type here
|
||
// Gateway Query Options | ||
const gatewayQueryOptions: FilterOptions = { | ||
features: [Features.wireguard, Features.mycelium, Features.gatewaynameproxy], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only feature needed here is wireguard; please remove the others.
the gateway features are added internally in node capacitor as long as we have the gateway= true
availableFor: grid3.twinId, | ||
}; | ||
|
||
const gatewayNode = (await grid3.capacity.filterNodes(gatewayQueryOptions))[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use the ping node here to same as the vm node; get the full resopvense and pass it to ping node
Description
creating nostr solution script using gridclient
#3330
Describe the changes introduced by this PR and what does it affect
Changes
List of changes this PR includes
Related Issues
List of related issues
Tested Scenarios
A list of scenarios tried to match the deliverables
Documentation PR
For UI changes, Please provide the Documentation PR on info_grid
To consider
Preliminary Checks:
UI Checks:
Code Quality Checks:
Testing Checklist
General Checklist