Skip to content

Commit

Permalink
Rename the option throughout the code
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Nedvetskii <72229464+nedvna@users.noreply.github.com>
  • Loading branch information
nedvna committed Aug 4, 2021
1 parent 961af8d commit f0401da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,6 @@ output: extended

# Set a default receiver
receiver: team-X-pager

# Skip TLS certificate verification
tls.insecure.skip.verify: true
```
### Routes
Expand Down
14 changes: 7 additions & 7 deletions cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
)

var (
verbose bool
alertmanagerURL *url.URL
output string
timeout time.Duration
skipVerify bool
verbose bool
alertmanagerURL *url.URL
output string
timeout time.Duration
tlsInsecureSkipVerify bool

configFiles = []string{os.ExpandEnv("$HOME/.config/amtool/config.yml"), "/etc/amtool/config.yml"}
legacyFlags = map[string]string{"comment_required": "require-comment"}
Expand Down Expand Up @@ -81,7 +81,7 @@ func NewAlertmanagerClient(amURL *url.URL) *client.Alertmanager {

cr := clientruntime.New(address, path.Join(amURL.Path, defaultAmApiv2path), schemes)

if skipVerify {
if tlsInsecureSkipVerify {
transport := http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
Expand Down Expand Up @@ -163,7 +163,7 @@ static configuration:
date.format
Sets the output format for dates. Defaults to "2006-01-02 15:04:05 MST"
skip.verify
tls.insecure.skip.verify
Skips TLS certificate verification for all HTTPS requests.
Defaults to false.
`
Expand Down

0 comments on commit f0401da

Please sign in to comment.