mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-08-09 02:59:38 +00:00
TUN-8770: add cli configuration and tunnel configuration to diagnostic zipfile
## Summary Adds two new jobs which will export the cli configuration and tunnel configuration in separate files. These files will also be added to the zipfile's root. Closes TUN-8770
This commit is contained in:
@@ -31,4 +31,6 @@ const (
|
|||||||
networkBaseName = "network.json"
|
networkBaseName = "network.json"
|
||||||
rawNetworkBaseName = "raw-network.txt"
|
rawNetworkBaseName = "raw-network.txt"
|
||||||
tunnelStateBaseName = "tunnelstate.json"
|
tunnelStateBaseName = "tunnelstate.json"
|
||||||
|
cliConfigurationBaseName = "cli-configuration.json"
|
||||||
|
configurationBaseName = "configuration.json"
|
||||||
)
|
)
|
||||||
|
@@ -376,6 +376,16 @@ func createJobs(
|
|||||||
fn: jsonNetworkCollectorFunc,
|
fn: jsonNetworkCollectorFunc,
|
||||||
bypass: noDiagNetwork,
|
bypass: noDiagNetwork,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
jobName: "cli configuration",
|
||||||
|
fn: collectFromEndpointAdapter(client.GetCliConfiguration, cliConfigurationBaseName),
|
||||||
|
bypass: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
jobName: "configuration",
|
||||||
|
fn: collectFromEndpointAdapter(client.GetTunnelConfiguration, configurationBaseName),
|
||||||
|
bypass: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return jobs
|
return jobs
|
||||||
|
Reference in New Issue
Block a user