Merge pull request #2945 from gravitl/release-v0.24.1-patch-metadata

fix: add metadata field to create RAG
This commit is contained in:
Abhishek K 2024-05-17 16:26:58 +05:30 committed by GitHub
commit 2c694cb1a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -170,6 +170,7 @@ func CreateIngressGateway(netid string, nodeid string, ingress models.IngressReq
}
}
node.SetLastModified()
node.Metadata = ingress.Metadata
if node.Metadata == "" {
node.Metadata = "This host can be used for remote access"
}

View file

@ -197,6 +197,7 @@ type HostRelayRequest struct {
type IngressRequest struct {
ExtclientDNS string `json:"extclientdns"`
IsInternetGateway bool `json:"is_internet_gw"`
Metadata string `json:"metadata"`
}
// InetNodeReq - exit node request struct