k8sinput

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package k8sinput contains the methods used to get Deprecated objects from a Kubernetes Cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sInput

type K8sInput struct {
	K8sconfig *genericclioptions.ConfigFlags
	Store     store.DefinitionStorer

	Client          dynamic.Interface
	DiscoveryClient discovery.DiscoveryInterface

	// We will have a IncludeGroup and a IgnoreGroup configs to tune false positives and false negatives
	// If there is an IncludeGroup, only the resources on this group will be parsed
	IncludePrefixGroup []string
	// If an API is inside the IgnoreGroup it will be bypassed
	IgnoreExactGroup []string
}

K8sInput defines a struct that will be used when comparing APIs against a K8s Cluster

func (*K8sInput) GetDeprecations

func (f *K8sInput) GetDeprecations() (deprecated, deleted []results.ResultItem, err error)

GetDeprecated retrieves the map of FileItems and compares with Kubepug store, returning the set of Deprecated results

func (*K8sInput) IgnoreAPIService

func (f *K8sInput) IgnoreAPIService() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL