Skip to content

fix: correct resource policy to support GPUs and CPUs#22

Merged
butler54 merged 4 commits intovalidatedpatterns:mainfrom
butler54:fix-resource-policy
May 7, 2026
Merged

fix: correct resource policy to support GPUs and CPUs#22
butler54 merged 4 commits intovalidatedpatterns:mainfrom
butler54:fix-resource-policy

Conversation

@butler54
Copy link
Copy Markdown
Collaborator

@butler54 butler54 commented May 7, 2026

  • fix: correct resource policies
  • chore: release bump

butler54 added 2 commits May 7, 2026 09:04
Signed-off-by: Chris Butler <chris.butler@redhat.com>
Signed-off-by: Chris Butler <chris.butler@redhat.com>
@butler54 butler54 changed the title fix resource policy fix: correct resource policy to support GPUs and CPUs May 7, 2026
@butler54 butler54 requested a review from bpradipt May 7, 2026 00:20
Comment thread templates/resource-policy.yaml Outdated
default allow = false
allow {
input["submods"]["cpu0"]["ear.status"] == "affirming"
gpu0_ok
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

May be you can switch to TrusteeConfig restrictive and permissive, which will be simpler to manage?
example restrictive rego - https://github.com/confidential-containers/trustee-operator/blob/main/config/templates/resource-policy-restrictive.rego

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes probably this is even better solution as it will support more than "cpu0" entries in list

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Problem is trustee creates configurations that then need to be patched. This is really problematic

Signed-off-by: Chris Butler <chris.butler@redhat.com>
Signed-off-by: Chris Butler <chris.butler@redhat.com>
@butler54 butler54 merged commit ebde8b7 into validatedpatterns:main May 7, 2026
4 checks passed
@butler54 butler54 deleted the fix-resource-policy branch May 7, 2026 06:30
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.

3 participants