Skip to content

Commit

Permalink
chore: added authentication to the client
Browse files Browse the repository at this point in the history
Signed-off-by: atighineanu <[email protected]>
  • Loading branch information
atighineanu committed Mar 4, 2024
1 parent 123c6df commit 24c519a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/alerts/alertmanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (s *StatusEndpoint) Get() (*StatusResponse, error) {
if err != nil {
return nil, err
}
request.Header.Add("Authentication", fmt.Sprintf("Bearer %s", s.Token))
response, err := s.Client.Client.Do(request)
if err != nil {
return nil, err
Expand Down Expand Up @@ -103,6 +104,7 @@ func (s *SilencesEndpoint) Get() ([]GettableSilence, error) {
if err != nil {
return nil, err
}
request.Header.Add("Authentication", fmt.Sprintf("Bearer %s", s.Token))
response, err := s.Client.Client.Do(request)
if err != nil {
return nil, err
Expand Down

0 comments on commit 24c519a

Please sign in to comment.