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

fix: drop excludedNamespaces from sample #364

Merged
merged 4 commits into from
Jul 27, 2023
Merged

fix: drop excludedNamespaces from sample #364

merged 4 commits into from
Jul 27, 2023

Conversation

apeabody
Copy link
Contributor

What this PR does / why we need it: drop excludedNamespaces from sample constraint for K8sBlockLoadBalancer

Signed-off-by: Andrew Peabody <andrewpeabody@google.com>
@apeabody apeabody marked this pull request as ready for review June 27, 2023 20:34
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ritazh
Copy link
Member

ritazh commented Jun 28, 2023

The change LGTM!
Do we need a version bump since it does technically change the behavior of the sample constraint? We should update this version update guidance for changes introduced in the constraint once we made a decision here.

Patch version bump required: Whenever there is a simple backward compatible change in the policy, e.g. Simple Rego fix, updating policy metadata

@apeabody
Copy link
Contributor Author

The change LGTM! Do we need a version bump since it does technically change the behavior of the sample constraint? We should update this version update guidance for changes introduced in the constraint once we made a decision here.

Patch version bump required: Whenever there is a simple backward compatible change in the policy, e.g. Simple Rego fix, updating policy metadata

Yeah, my read/thought is this is specific to the Templates themselves, but the sample constraint is published to artifacthub. A slight concern with bumping the Temple version is it might cause end user confusion when there is no actual Template change, however if changes only to sample constraint are limited to patch version bumps that might be minimized.

@nilekhc WDYT? Currently the artifacthub CI only considers the template itself for version enforcement.

@ritazh
Copy link
Member

ritazh commented Jul 26, 2023

The change LGTM! Do we need a version bump since it does technically change the behavior of the sample constraint? We should update this version update guidance for changes introduced in the constraint once we made a decision here.

Patch version bump required: Whenever there is a simple backward compatible change in the policy, e.g. Simple Rego fix, updating policy metadata

Yeah, my read/thought is this is specific to the Templates themselves, but the sample constraint is published to artifacthub. A slight concern with bumping the Temple version is it might cause end user confusion when there is no actual Template change, however if changes only to sample constraint are limited to patch version bumps that might be minimized.

@nilekhc WDYT? Currently the artifacthub CI only considers the template itself for version enforcement.

@nilekhc thoughts?

@nilekhc
Copy link
Contributor

nilekhc commented Jul 26, 2023

The change LGTM! Do we need a version bump since it does technically change the behavior of the sample constraint? We should update this version update guidance for changes introduced in the constraint once we made a decision here.

Patch version bump required: Whenever there is a simple backward compatible change in the policy, e.g. Simple Rego fix, updating policy metadata

Yeah, my read/thought is this is specific to the Templates themselves, but the sample constraint is published to artifacthub. A slight concern with bumping the Temple version is it might cause end user confusion when there is no actual Template change, however if changes only to sample constraint are limited to patch version bumps that might be minimized.
@nilekhc WDYT? Currently the artifacthub CI only considers the template itself for version enforcement.

@nilekhc thoughts?

Version chance in the Artifacthub CI is only to enforce version bumping when the template changes. My main concern here is, we update the AH package only when the template changes. So even if we make this change, they won't reflect on AH. Should we update our logic for when to trigger AH refresh? If so what all files should we consider?

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nilekhc nilekhc merged commit 9ce200b into open-policy-agent:master Jul 27, 2023
15 checks passed
@apeabody apeabody deleted the ap-patch-836fg branch July 27, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants