Documentation ¶
Index ¶
- Constants
- func BundleValidationTest(dir string, labels registryutil.Labels) scapiv1alpha3.TestStatus
- func CRDsHaveResourcesTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
- func CRDsHaveValidationTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
- func CheckResources(crd operatorsv1alpha1.CustomResourceDefinitions, r scapiv1alpha3.TestResult) scapiv1alpha3.TestResult
- func CheckSpecTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
- func GetCRs(bundle *apimanifests.Bundle) (crList []unstructured.Unstructured, err error)
- func SpecDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
- func StatusDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
Constants ¶
View Source
const ( OLMBundleValidationTest = "olm-bundle-validation" OLMCRDsHaveValidationTest = "olm-crds-have-validation" OLMCRDsHaveResourcesTest = "olm-crds-have-resources" OLMSpecDescriptorsTest = "olm-spec-descriptors" OLMStatusDescriptorsTest = "olm-status-descriptors" )
View Source
const (
BasicCheckSpecTest = "basic-check-spec"
)
Variables ¶
This section is empty.
Functions ¶
func BundleValidationTest ¶
func BundleValidationTest(dir string, labels registryutil.Labels) scapiv1alpha3.TestStatus
BundleValidationTest validates an on-disk bundle
func CRDsHaveResourcesTest ¶
func CRDsHaveResourcesTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
CRDsHaveResourcesTest verifies CRDs have resources listed in its owned CRDs section
func CRDsHaveValidationTest ¶
func CRDsHaveValidationTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
CRDsHaveValidationTest verifies all CRDs have a validation section
func CheckResources ¶
func CheckResources(crd operatorsv1alpha1.CustomResourceDefinitions, r scapiv1alpha3.TestResult) scapiv1alpha3.TestResult
CheckResources verified if the owned CRDs have the resources field.
func CheckSpecTest ¶
func CheckSpecTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
CheckSpecTest verifies that CRs have a spec block
func GetCRs ¶
func GetCRs(bundle *apimanifests.Bundle) (crList []unstructured.Unstructured, err error)
GetCRs parses a Bundle's CSV for CRs
func SpecDescriptorsTest ¶
func SpecDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
SpecDescriptorsTest verifies all spec fields have descriptors
func StatusDescriptorsTest ¶
func StatusDescriptorsTest(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus
StatusDescriptorsTest verifies all CRDs have status descriptors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.