-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add api ver to path in opsgenie client #29256
Conversation
@@ -78,7 +78,6 @@ func (c *Config) NewBot(clusterName, webProxyAddr string) (common.MessagingBot, | |||
} | |||
c.ClientConfig.WebProxyURL = webProxyURL | |||
c.ClientConfig.ClusterName = clusterName | |||
c.ClientConfig.APIKey = c.Opsgenie.Token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was not meant to be committed originally.
@@ -123,7 +123,7 @@ func (og Client) CreateAlert(ctx context.Context, reqID string, reqData RequestD | |||
SetContext(ctx). | |||
SetBody(body). | |||
SetResult(&result). | |||
Post("alerts") | |||
Post("v2/alerts") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come we didn't detect this issue during testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had the api kjey hardcoded locally as https://api.opsgenie.com/v2/ during testing before frontend was added. Forgot to remove it when it was, so never noticed the options were set to 'https://api.opsgenie.com' [here](value: 'https://api.opsgenie.com',).
@EdwardDowling See the table below for backport results.
|
Add the missing api version num to api endpoint.