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

feat: add data resources availability #1027

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

britaniar
Copy link
Contributor

@britaniar britaniar commented Jan 28, 2025

Description of your changes

Fixes #

I have: add resources to isDataResource for resources that don't have conditions that is related to it's availability

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@@ -255,6 +255,32 @@ func isDataResource(gvr schema.GroupVersionResource) bool {
return true
case utils.ClusterRoleBindingGVR:
return true
case utils.ServiceAccountGVR:
Copy link
Contributor

Choose a reason for hiding this comment

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

how do we know the secret associated with the SA is mounted/generated

Copy link
Contributor

Choose a reason for hiding this comment

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

do we propagate SA?

Comment on lines +262 to +265
case utils.CSIDriverGVR:
return true
case utils.CSINodeGVR:
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

do we propagate those?

return true
case utils.CSIStorageCapacityGVR:
return true
case utils.ControllerRevisionGVR:
Copy link
Contributor

Choose a reason for hiding this comment

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

do we propagate this?

Comment on lines +276 to +279
case utils.MutatingWebhookConfigurationGVR:
return true
case utils.ValidatingWebhookConfigurationGVR:
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

these two don't look like data resource since the real webhook server needs to be setup

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