-
Notifications
You must be signed in to change notification settings - Fork 359
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
fix: rule readiness check should require at least one rule to be loaded #1061
Changes from all commits
673faaf
b918293
d75c81b
9c507f8
25a8fc7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ import ( | |
"fmt" | ||
"os" | ||
|
||
"github.com/spf13/cobra" | ||
"github.com/ory/oathkeeper/internal/httpclient/client/health" | ||
|
||
"github.com/ory/oathkeeper/internal/httpclient/client/api" | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/ory/x/cmdx" | ||
) | ||
|
@@ -28,7 +28,7 @@ Note: | |
Run: func(cmd *cobra.Command, _ []string) { | ||
client := newClient(cmd) | ||
|
||
r, err := client.API.IsInstanceAlive(api.NewIsInstanceAliveParams()) | ||
r, err := client.Health.IsInstanceAlive(health.NewIsInstanceAliveParams()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I honestly don't know why the SDK changed, but 🤷 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it comes from changes in |
||
// If err, print err and exit 1 | ||
cmdx.Must(err, "%s", err) | ||
// Print payload | ||
|
This file was deleted.
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.
All these are required because now only valid rules are considered by the rule repository.