Skip to content

Commit

Permalink
Make options with useful default values not required
Browse files Browse the repository at this point in the history
iz00242 committed Jul 1, 2020
1 parent f2e6ce3 commit 10a8d0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/splunk-audit-webhook/main.go
Original file line number Diff line number Diff line change
@@ -34,12 +34,12 @@ var (
// this is because MarkFlagRequired from cobra does not work well with viper, see:
// https://github.com/spf13/viper/issues/397
type Opts struct {
BindAddr string `validate:"required"`
Port int `validate:"required"`
BindAddr string
Port int
AuditServePath string `validate:"required"`
ServerURLs []string `validate:"required"`
Token string `validate:"required"`
InsecureCert bool `validate:"required"`
InsecureCert bool
ClientTLSKey string
ClientTLSCert string
WebhookTLSKey string

0 comments on commit 10a8d0c

Please sign in to comment.