namespace

package
v0.0.0-...-5fa7998 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInvalidCRsNum

func GetInvalidCRsNum(invalidCrs map[string]map[string][]string, logger *log.Logger) int

GetInvalidCRDsNum returns the number of invalid CRs in the map. Return:

  • int : number of invalid CRs in the map.

func TestCrsNamespaces

func TestCrsNamespaces(crds []*apiextv1.CustomResourceDefinition, configNamespaces []string, logger *log.Logger) (invalidCrs map[string]map[string][]string, err error)

TestCrsNamespaces finds the list of the input CRDs (crds parameter) instances (CRs) and verify that they are only in namespaces provided as input. Returns :

  • map[string]map[string][]string : The list of CRs not belonging to the namespaces passed as input is returned as invalid.
  • error : if exist error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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