Skip to content

Conversation

reshnm
Copy link
Contributor

@reshnm reshnm commented May 15, 2025

What this PR does / why we need it:

Currently both clusterRef and requestRef are required in an AccessRequest while it should require either or.
Make both of them optional.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

I think it is not possible via kubebuilder validation to check if either or is set and that there would need to be a webhook to validate this.

Release note:

Allow to either specify `clusterRef` and `requestRef` in `AccessRequest`

@reshnm reshnm requested a review from Diaphteiros May 15, 2025 08:11
@Diaphteiros Diaphteiros merged commit eb8eb89 into main May 15, 2025
4 checks passed
@Diaphteiros Diaphteiros deleted the fix/accessrequest branch May 15, 2025 08: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.

2 participants