operator

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertifiedImagesCheck

func NewCertifiedImagesCheck(imageFinder imageFinder) *certifiedImagesCheck

NewCertifiedImagesCheck returns a *certifiedImagesCheck that will scan the CSV and validate that all referenced images are certified.

func NewSecurityContextConstraintsCheck

func NewSecurityContextConstraintsCheck() *securityContextConstraintsInCSV

Types

type DeployableByOlmCheck

type DeployableByOlmCheck struct {
	// contains filtered or unexported fields
}

func NewDeployableByOlmCheck

func NewDeployableByOlmCheck(
	indexImage,
	dockerConfig,
	channel string,
) *DeployableByOlmCheck

NewDeployableByOlmCheck will return a check that validates if an operator is deployable by OLM. An empty dockerConfig value implies that the images in scope are public. An empty channel value implies that the check should introspect the channel from the bundle. indexImage is required.

func (*DeployableByOlmCheck) Help

func (*DeployableByOlmCheck) Metadata

func (*DeployableByOlmCheck) Name

func (p *DeployableByOlmCheck) Name() string

func (*DeployableByOlmCheck) Validate

type RelatedImagesCheck

type RelatedImagesCheck struct{}

func (*RelatedImagesCheck) Help

func (*RelatedImagesCheck) Metadata

func (*RelatedImagesCheck) Name

func (p *RelatedImagesCheck) Name() string

func (*RelatedImagesCheck) Validate

type ScorecardBasicSpecCheck

type ScorecardBasicSpecCheck struct {
	// contains filtered or unexported fields
}

ScorecardBasicSpecCheck evaluates the image to ensure it passes the operator-sdk scorecard check with the basic-check-spec-test suite selected.

func NewScorecardBasicSpecCheck

func NewScorecardBasicSpecCheck(operatorSdk operatorSdk, ns, sa, kubeconfig, waittime string) *ScorecardBasicSpecCheck

func (*ScorecardBasicSpecCheck) Help

func (*ScorecardBasicSpecCheck) Metadata

func (*ScorecardBasicSpecCheck) Name

func (p *ScorecardBasicSpecCheck) Name() string

func (*ScorecardBasicSpecCheck) Validate

type ScorecardOlmSuiteCheck

type ScorecardOlmSuiteCheck struct {
	// contains filtered or unexported fields
}

ScorecardOlmSuiteCheck evaluates the image to ensure it passes the operator-sdk scorecard check with the olm suite selected.

func NewScorecardOlmSuiteCheck

func NewScorecardOlmSuiteCheck(operatorSdk operatorSdk, ns, sa, kubeconfig, waittime string) *ScorecardOlmSuiteCheck

func (*ScorecardOlmSuiteCheck) Help

func (*ScorecardOlmSuiteCheck) Metadata

func (*ScorecardOlmSuiteCheck) Name

func (p *ScorecardOlmSuiteCheck) Name() string

func (*ScorecardOlmSuiteCheck) Validate

type ValidateOperatorBundleCheck

type ValidateOperatorBundleCheck struct{}

ValidateOperatorBundleCheck evaluates the image and ensures that it passes bundle validation as executed by `operator-sdk bundle validate`

func NewValidateOperatorBundleCheck

func NewValidateOperatorBundleCheck() *ValidateOperatorBundleCheck

func (*ValidateOperatorBundleCheck) Help

func (*ValidateOperatorBundleCheck) Metadata

func (*ValidateOperatorBundleCheck) Name

func (*ValidateOperatorBundleCheck) Validate

Jump to

Keyboard shortcuts

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