Skip to content
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: use policyType metadata #632

Merged

Conversation

fabriziosestito
Copy link
Contributor

Description

  • show policyType when inspecting a policy
  • run a policy in raw "mode" if the policyType metadata is set to raw, otherwise the user needs to pass a --raw flag (which takes precedence over the metadata, in case the policy is not annotated)

Test

Adds e2e tests

Additional Information

Bumps Cargo toml to v1.9.0-rc1

@fabriziosestito fabriziosestito requested a review from a team as a code owner October 26, 2023 15:13
@fabriziosestito fabriziosestito force-pushed the feat/use-policy-type-metadata branch from d0140e9 to 99efa24 Compare October 26, 2023 15:14
@fabriziosestito fabriziosestito self-assigned this Oct 26, 2023
@fabriziosestito fabriziosestito force-pushed the feat/use-policy-type-metadata branch from 99efa24 to 0f64999 Compare October 26, 2023 15:16
src/run.rs Outdated Show resolved Hide resolved
Signed-off-by: Fabrizio Sestito <[email protected]>
@fabriziosestito fabriziosestito merged commit c669343 into kubewarden:main Oct 26, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants