Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRules = []ImageReferenceExtractionRule{ { TypeMeta: metav1.TypeMeta{ Kind: "Pod", APIVersion: "v1", }, Paths: []string{"$.spec.containers[*].image"}, }, { TypeMeta: metav1.TypeMeta{ Kind: "Deployment", APIVersion: "apps/v1", }, Paths: []string{"$.spec.template.spec.containers[*].image"}, }, { TypeMeta: metav1.TypeMeta{ Kind: "StatefulSet", APIVersion: "apps/v1", }, Paths: []string{"$.spec.template.spec.containers[*].image"}, }, { TypeMeta: metav1.TypeMeta{ Kind: "DaemonSet", APIVersion: "apps/v1", }, Paths: []string{"$.spec.template.spec.containers[*].image"}, }, { TypeMeta: metav1.TypeMeta{ Kind: "Job", APIVersion: "batch/v1", }, Paths: []string{"$.spec.template.spec.containers[*].image"}, }, { TypeMeta: metav1.TypeMeta{ Kind: "CronJob", APIVersion: "batch/v1", }, Paths: []string{"$.spec.jobTemplate.spec.template.spec.containers[*].image"}, }, { TypeMeta: metav1.TypeMeta{ Kind: "Config", APIVersion: "airgapify.pecke.tt/v1alpha1", }, Paths: []string{"$.spec.images[*]"}, }, }
Functions ¶
This section is empty.
Types ¶
type ImageReferenceExtractor ¶
type ImageReferenceExtractor struct {
// contains filtered or unexported fields
}
func NewImageReferenceExtractor ¶
func NewImageReferenceExtractor(rules []ImageReferenceExtractionRule) *ImageReferenceExtractor
func (*ImageReferenceExtractor) ExtractImageReferences ¶
func (e *ImageReferenceExtractor) ExtractImageReferences(objects []unstructured.Unstructured) (sets.String, error)
Click to show internal directories.
Click to hide internal directories.