-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: initial implementation of OPA subsystem chart and policy catalogue #16
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
The following things have to be done before this PR can be merged:
|
3cd6811
to
caaf657
Compare
Signed-off-by: Sven Trieflinger <[email protected]>
Signed-off-by: Sven Trieflinger <[email protected]>
Signed-off-by: Sven Trieflinger <[email protected]>
Signed-off-by: Sven Trieflinger <[email protected]>
…ces package) Signed-off-by: Sven Trieflinger <[email protected]>
Signed-off-by: Sven Trieflinger <[email protected]>
Signed-off-by: Sven Trieflinger <[email protected]>
f8f9f0e
to
ad388d1
Compare
Signed-off-by: Sven Trieflinger <[email protected]>
0564d21
to
330347f
Compare
Signed-off-by: Sven Trieflinger <[email protected]>
services/pkg/catalogue/opa.go
Outdated
} | ||
|
||
// fetchPolicyFromOPA fetches a single policy from the OPA service by its ID. | ||
// Note that there is no way to fetch a single policy by ID, so we fetch all. |
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.
but one could simply call v1/policies/<POLICY_ID>
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.
see get-a-policy
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.
Don't know how I have missed that. Used now.
|
||
switch c.GetHeader("Accept") { | ||
case "application/json": | ||
c.JSON(http.StatusOK, policy) |
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 are ID's encoded when listing, but not when fetching individually. That's kinda inconsistent
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.
Correct. The ID is now consistently encoded.
Signed-off-by: Sven Trieflinger <[email protected]>
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.
LGTM
Signed-off-by: Sven Trieflinger <[email protected]>
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.
LGTM
No description provided.