Skip to content

Commit

Permalink
fix(policies): ignore http 405 as well as 404 (#1672)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose I. Paris <[email protected]>
  • Loading branch information
jiparis authored Dec 17, 2024
1 parent d014234 commit b15c156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controlplane/pkg/policies/policyprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (p *PolicyProvider) ValidateAttachment(att *schemaapi.PolicyAttachment, tok
}

if resp.StatusCode != http.StatusOK {
if resp.StatusCode == http.StatusNotFound {
if resp.StatusCode == http.StatusNotFound || resp.StatusCode == http.StatusMethodNotAllowed {
// Ignore endpoint not found as it might not be implemented by the provider
return nil
}
Expand Down

0 comments on commit b15c156

Please sign in to comment.