package
5.0.1+incompatible
Repository: https://github.com/fairwindsops/polaris.git
Documentation: pkg.go.dev
# Functions
CreateResourceProvider returns a new ResourceProvider object to interact with k8s resources.
CreateResourceProviderFromAPI creates a new ResourceProvider from an existing k8s interface.
CreateResourceProviderFromCluster creates a new ResourceProvider using live data from a cluster.
CreateResourceProviderFromPath returns a new ResourceProvider using the YAML files in a directory.
CreateResourceProviderFromResource creates a new ResourceProvider that just contains one workload.
GetPodSpec looks inside arbitrary YAML for a PodSpec.
LoadControllers loads a list of controllers from the kubeResources Pods.
NewGenericResourceFromBytes parses a generic kubernetes resource.
NewGenericResourceFromPod builds a new workload for a given Pod without looking at parents.
NewGenericResourceFromUnstructured creates a workload from an unstructured.Unstructured.
ResolveControllerFromPod builds a new workload for a given Pod.
# Structs
GenericResource is a base implementation with some free methods for inherited structs.
ResourceProvider contains k8s resources to be audited.