Skip to content

Fix: #10. Add Rolebinding#11

Merged
ioggstream merged 6 commits into
mainfrom
ioggstream-10
May 12, 2025
Merged

Fix: #10. Add Rolebinding#11
ioggstream merged 6 commits into
mainfrom
ioggstream-10

Conversation

@ioggstream
Copy link
Copy Markdown
Contributor

This PR

  • add RoleBinding

@ioggstream ioggstream requested a review from Copilot May 5, 2025 20:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes issue #10 by adding support for RoleBinding resources and refactoring related resource handling in the K8s resource module.

  • Removed duplicate definitions of get_app_uri and the old label property.
  • Introduced a new label property that now includes a mapping for RoleBinding.
  • Added new Role and RoleBinding classes with appropriate apiVersion and kind properties, and updated CLASSMAP accordingly.
Files not reviewed (1)
  • d3fendtools/kuberdf/ontology.ttl: Language not supported

Comment thread d3fendtools/kuberdf/__init__.py Outdated
yield user_u, NS_D3F.accesses, self.ns

else:
raise NotImplementedError(kind)
Copy link

Copilot AI May 5, 2025

Choose a reason for hiding this comment

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

Consider providing a more descriptive error message in RoleBinding.triple_spec to clarify which subject kind is unsupported, for example: raise NotImplementedError(f'Unsupported subject kind: {kind}').

Suggested change
raise NotImplementedError(kind)
raise NotImplementedError(f"Unsupported subject kind: {kind}")

Copilot uses AI. Check for mistakes.
@ioggstream ioggstream merged commit f94a4dc into main May 12, 2025
2 of 5 checks passed
@ioggstream ioggstream deleted the ioggstream-10 branch May 12, 2025 09:00
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.

2 participants