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

Change roleRef pattern to subjects #778

Merged
merged 9 commits into from
Oct 12, 2023
Merged

Conversation

RanganMahesh
Copy link
Contributor

@RanganMahesh RanganMahesh commented Oct 5, 2023

Changed the roleRef in patterns to subjects as the system groups are defined under subjects and not roleRef

Related Issue(s)

Fixes #777

Description

The updated code will make sure that the restrict-binding-system-groups example is applied and works on system groups, previously it was matching pattern for roleRef.

Checklist

  • I have read the policy contribution guidelines.
  • I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

@chipzoller
Copy link
Contributor

You will also need to update Artifact Hub metadata as well as test cases.

eddycharly and others added 2 commits October 5, 2023 21:01
* chore: add script to update artifacthub digest

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* script

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* install

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* install

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix digest

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
Changed the roleRef in patterns to subjects as the system groups are defined under subjects and not roleRef

Signed-off-by: RanganMahesh <rangan502@gmail.com>
Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
@RanganMahesh
Copy link
Contributor Author

@chipzoller Please review now

Recalculated SHA256 and updated

Signed-off-by: RanganMahesh <rangan502@gmail.com>
Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
@RanganMahesh
Copy link
Contributor Author

@chipzoller Is there a way to generate the SHA256 sum differently ? It seems to be failing

@chipzoller
Copy link
Contributor

Just use d0336a6276727ee78903d87ca14097913d5983b35566d3f47efbf72aa59f2f4d

Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
Signed-off-by: RanganMahesh <rangan502@gmail.com>
Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
Signed-off-by: Rangan Mahesh <rangan502@gmail.com>
@RanganMahesh
Copy link
Contributor Author

@chipzoller Rerun the pipelines

@RanganMahesh
Copy link
Contributor Author

@chipzoller Could you please help with this one ? Not sure why it is failing

@chipzoller
Copy link
Contributor

Checks successful. Was a transient failure.

@RanganMahesh
Copy link
Contributor Author

@chipzoller Great!

@RanganMahesh
Copy link
Contributor Author

@chipzoller good to merge?

@chipzoller
Copy link
Contributor

Sorry, will check this out again soon.

@RanganMahesh
Copy link
Contributor Author

@chipzoller Can we close the merge?

@chipzoller chipzoller merged commit 3a9624e into kyverno:main Oct 12, 2023
112 checks passed
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.

[Bug] restrict-binding-system-groups example is incorrect
3 participants