Skip to content

feat: Add processor actions for new resources #86

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

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

obs-gh-enricogiorio
Copy link
Collaborator

Add actions to compute the "selector" facet for StatefulSet and PersistentVolumeClaim


// Generates the Statefulset "selector" facet.
func (StatefulSetSelectorAction) ComputeAttributes(statefulSet appsv1.StatefulSet) (attributes, error) {
selecotString := metav1.FormatLabelSelector(statefulSet.Spec.Selector)
Copy link
Collaborator

Choose a reason for hiding this comment

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

NICE! Good to know that we can just leverage k8s code for this :)

Add actions to compute facets for the following entities:

 - ServiceAccount
 - DaemonSet
 - StatefulSet
 - PersistentVolume
 - PersistentVolumeClaim
 - Ingress
@obs-gh-enricogiorio obs-gh-enricogiorio merged commit 1dfdea5 into main Sep 5, 2024
8 checks passed
@obs-gh-enricogiorio obs-gh-enricogiorio deleted the enrico/NewResources branch September 5, 2024 15:12
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