-
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
Use interfaces in gateway node selector #3860
Conversation
… maybe got enahnced later
…into development_gateway_interfaces
- refactor: change the type of selectedIPAddress as it always got converted to string - pass the selected interface type as feature to the domainName component
@@ -263,6 +268,21 @@ export default { | |||
const availableK8SNodesNames = availableK8SNodes.map(node => node.name); | |||
const selectedK8SNodeName = ref(availableK8SNodesNames[0]); | |||
const selectedNode = ref(); | |||
const interfaceFeature = computed<NetworkFeatures[]>(() => { | |||
const net = networks.value.find(net => net.value == selectedIPAddress.value); | |||
switch (net?.title) { |
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 add public ipv4 case
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.
nvm, ignore the comment
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.
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.
Description
new zos-light nodes gateways supports only ipv4, ip6, myceluim so we need to make sure that the listed nodes are compatible with the selected interface; in applications, we are deploying the gateway over wireguard.
Changes
update the selecte node and domain name components to accept array of network features.
if the selected interface is ipv6 we have to set the hasIpv6 with true; without passing ipv6 in features
no need to pass ipv4 in any scenario as we already added it based on the gateway value
make
selectedIPAddress
as string as we always convert it to string everywherereorder the manage domain dialog
k8s :
interfaces.mov
Related Issues
#3858
Tested Scenarios
In applications that use gateways, we are passing wireguard to the features

in domains page it list the node 309 but you have to rent it first, you may see new shared nodes added

in manage domain dialog: if the vm contaisn only myceluim then the both node will be listed normally

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