diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-11-18 15:50:40 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-11-23 10:16:56 +0100 |
commit | e768d198b09b69dc7b3e1bdf5ea7696c466db750 (patch) | |
tree | 7d526ca3f255e0e026c051b0b8e87f0fec649ce7 /client/go/cmd/config.go | |
parent | 67efd980ce180476ef434d86da32167d3d9bd946 (diff) |
Allow overriding creds paths, and add dummy test command
Diffstat (limited to 'client/go/cmd/config.go')
-rw-r--r-- | client/go/cmd/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/go/cmd/config.go b/client/go/cmd/config.go index 750664e51b1..701b838d5f9 100644 --- a/client/go/cmd/config.go +++ b/client/go/cmd/config.go @@ -133,10 +133,16 @@ func (c *Config) Write() error { } func (c *Config) CertificatePath(app vespa.ApplicationID) (string, error) { + if override, _ := c.Get(dataPlaneCertFlag); override != "" { + return override, nil; + } return c.applicationFilePath(app, "data-plane-public-cert.pem") } func (c *Config) PrivateKeyPath(app vespa.ApplicationID) (string, error) { + if override, _ := c.Get(dataPlaneKeyFlag); override != "" { + return override, nil; + } return c.applicationFilePath(app, "data-plane-private-key.pem") } |