Skip to content

Commit

Permalink
Merge pull request #2957 from gravitl/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
abhishek9686 authored May 30, 2024
2 parents 2bd38de + d77abf1 commit 6b02fa6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions k8s/client/netclient-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
volumeMounts:
- mountPath: /etc/netclient
name: etc-netclient
- mountPath: /var/log
name: log-netclient
securityContext:
privileged: true
volumes:
Expand All @@ -32,3 +34,6 @@ spec:
path: /etc/netclient
type: DirectoryOrCreate
name: etc-netclient
- emptyDir:
medium: Memory
name: log-netclient
5 changes: 5 additions & 0 deletions k8s/client/netclient.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ spec:
volumeMounts:
- mountPath: /etc/netclient
name: etc-netclient
- mountPath: /var/log
name: log-netclient
securityContext:
privileged: true
volumes:
- hostPath:
path: /etc/netclient
type: DirectoryOrCreate
name: etc-netclient
- emptyDir:
medium: Memory
name: log-netclient
1 change: 1 addition & 0 deletions logic/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions models/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b02fa6

Please sign in to comment.