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

Saulparedes/validate namespace env var #295

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

Redent0r
Copy link

@Redent0r Redent0r commented Jan 15, 2025

Merge Checklist
  • Followed patch format from upstream recommendation: https://github.com/kata-containers/community/blob/main/CONTRIBUTING.md#patch-format
    • Included a single commit in a given PR - at least unless there are related commits and each makes sense as a change on its own.
  • Aware about the PR to be merged using "create a merge commit" rather than "squash and merge" (or similar)
  • The upstream/missing label (or upstream/not-needed) has been set on the PR.
Summary

Use $(sandbox-namespace) wildcard in case none is specified in yaml. If wildcard is present, compare
input against annotation value.

Fixes regression introduced in #273
where samples that use metadata.namespace env var were no longer working.

Test Methodology

test run https://dev.azure.com/mariner-org/mariner/_build/results?buildId=713340&view=ms.vss-test-web.build-test-results-tab [passing]

src/tools/genpolicy/rules.rego Show resolved Hide resolved
src/tools/genpolicy/rules.rego Show resolved Hide resolved
src/tools/genpolicy/rules.rego Show resolved Hide resolved
@Redent0r Redent0r force-pushed the saulparedes/validate_namespace_env_var branch 4 times, most recently from be99469 to 8c83019 Compare January 16, 2025 20:13
…space

Use $(sandbox-namespace) wildcard in case none is specified in yaml. If wildcard is present, compare
input against annotation value.

Fixes regression introduced in #273
where samples that use metadata.namespace env var were no longer working.

Signed-off-by: Saul Paredes <[email protected]>
Update samples

Signed-off-by: Saul Paredes <[email protected]>
@Redent0r Redent0r force-pushed the saulparedes/validate_namespace_env_var branch from 8c83019 to a3f20ba Compare January 17, 2025 02:42
@Redent0r Redent0r marked this pull request as ready for review January 17, 2025 05:23
@Redent0r Redent0r requested review from a team as code owners January 17, 2025 05:23
@Redent0r Redent0r requested a review from danmihai1 January 17, 2025 05:23
@Redent0r Redent0r added the upstream/missing PRs that are yet to be upstreamed label Jan 17, 2025
@Redent0r Redent0r merged commit 6058c26 into msft-main Jan 17, 2025
131 of 202 checks passed
@Redent0r Redent0r deleted the saulparedes/validate_namespace_env_var branch January 17, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream/missing PRs that are yet to be upstreamed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants