Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInvalidCRsNum ¶
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.
Click to show internal directories.
Click to hide internal directories.