You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TUN-5754: Allow ingress validate to take plaintext option
Ingress validate currently validates config from a file. This PR adds a
new --json/-j flag to provide the ingress/config data as a plaintext
command line argument.
fmt.Println("No configuration file was found. Please create one, or use the --config flag to specify its filepath. You can use the help command to learn more about configuration files")
fmt.Println("Validating rules from cmdline flag --json")
108
+
err:=json.Unmarshal([]byte(ingressJSON), &conf)
109
+
returnconf, err
110
+
}
111
+
conf=config.GetConfiguration()
112
+
ifconf.Source() =="" {
113
+
returnnil, errors.New("No configuration file was found. Please create one, or use the --config flag to specify its filepath. You can use the help command to learn more about configuration files")
0 commit comments