Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchKyvernoCrds ¶
func FetchKyvernoCrds(client dynamic.Interface) (*unstructured.UnstructuredList, error)
FetchKyvernoCrds - Fetches all Custom Resource Definitions(CRDs) related to Kyverno Policies from the cluster Filters CRDs with the group kyverno.io and returns the list
func FetchKyvernoPolicies ¶
func FetchKyvernoPolicies(client dynamic.Interface, name string) (*unstructured.UnstructuredList, error)
FetchKyvernoPolicies - Fetches all Kyverno Policies for the specified resource name(crdname) across different API versions Iterates over each API version, collects all retrieved Kyverno Policies into a single list, and returns it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.