Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

change: adjustments to support ImageRoleBindings in Manager #2118

Merged

Conversation

iwilltry42
Copy link
Contributor

@iwilltry42 iwilltry42 commented Aug 24, 2023

This PR includes some refactoring to expose functionality to manager to use with the new ImageRoleBindings feature.

Checklist

  • The title of this PR would make a good line in Acorn's Release Note's Changelog
  • The title of this PR ends with a link to the main issue being address in parentheses, like: This is a title (#1216). Here's an example
  • All relevant issues are referenced in the PR description. NOTE: don't use GitHub keywords that auto-close issues
  • Commits follow contributing guidance
  • Automated tests added to cover the changes. If tests couldn't be added, an explanation is provided in the Verification and Testing section
  • Changes to user-facing functionality, API, CLI, and upgrade impacts are clearly called out in PR description
  • PR has at least two approvals before merging (or a reasonable exception, like it's just a docs change)

@iwilltry42 iwilltry42 marked this pull request as ready for review September 6, 2023 08:15
@iwilltry42 iwilltry42 force-pushed the change/imagerolebinding-support branch from 4a925e9 to b77e088 Compare September 6, 2023 08:21
@@ -120,7 +120,7 @@ func TestImageAllowRules(t *testing.T) {
assert.Error(t, err, "should error since image is not covered by images scope of IAR")

// update image allow rule to cover that image
iar.Images = []string{tagName}
iar.Images = []string{"**"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will merge that change away with #2113 👍

pkg/imageallowrules/imageallowrules.go Show resolved Hide resolved
Signed-off-by: Thorsten Klein <tk@thklein.io>
Signed-off-by: Thorsten Klein <tk@thklein.io>
Signed-off-by: Thorsten Klein <tk@thklein.io>
This reverts commit 469b636.

Signed-off-by: Thorsten Klein <tk@thklein.io>
@iwilltry42 iwilltry42 force-pushed the change/imagerolebinding-support branch from 7c3da38 to 353e405 Compare September 6, 2023 15:59
@iwilltry42 iwilltry42 merged commit 89b0ee5 into acorn-io:main Sep 6, 2023
4 checks passed
@iwilltry42 iwilltry42 deleted the change/imagerolebinding-support branch September 6, 2023 16:17
cloudnautique pushed a commit to cloudnautique/runtime that referenced this pull request Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants