-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: main
Are you sure you want to change the base?
Conversation
@@ -255,6 +255,32 @@ func isDataResource(gvr schema.GroupVersionResource) bool { | |||
return true | |||
case utils.ClusterRoleBindingGVR: | |||
return true | |||
case utils.ServiceAccountGVR: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we propagate SA?
case utils.CSIDriverGVR: | ||
return true | ||
case utils.CSINodeGVR: | ||
return true |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we propagate this?
case utils.MutatingWebhookConfigurationGVR: | ||
return true | ||
case utils.ValidatingWebhookConfigurationGVR: | ||
return true |
There was a problem hiding this comment.
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
Description of your changes
Fixes #
I have: add resources to
isDataResource
for resources that don't have conditions that is related to it's availabilitymake reviewable
to ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer