check

package
v0.0.0-...-34b34ea Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 32 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 (p *DeployableByOlmCheck) Metadata() types.Metadata

func (*DeployableByOlmCheck) Name

func (p *DeployableByOlmCheck) Name() string

func (*DeployableByOlmCheck) Validate

func (p *DeployableByOlmCheck) Validate(ctx context.Context, bundleRef image.Reference) (bool, error)

type FollowsRestrictedNetworkEnablementGuidelines

type FollowsRestrictedNetworkEnablementGuidelines struct{}

func (FollowsRestrictedNetworkEnablementGuidelines) Help

func (FollowsRestrictedNetworkEnablementGuidelines) Metadata

func (FollowsRestrictedNetworkEnablementGuidelines) Name

func (FollowsRestrictedNetworkEnablementGuidelines) Validate

type RelatedImagesCheck

type RelatedImagesCheck struct{}

func (*RelatedImagesCheck) Help

func (p *RelatedImagesCheck) Help() types.HelpText

func (*RelatedImagesCheck) Metadata

func (p *RelatedImagesCheck) Metadata() types.Metadata

func (*RelatedImagesCheck) Name

func (p *RelatedImagesCheck) Name() string

func (*RelatedImagesCheck) Validate

func (p *RelatedImagesCheck) Validate(ctx context.Context, imgRef image.Reference) (bool, error)

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 string, kubeconfig []byte, waittime string) *ScorecardBasicSpecCheck

func (*ScorecardBasicSpecCheck) Help

func (*ScorecardBasicSpecCheck) Metadata

func (p *ScorecardBasicSpecCheck) Metadata() types.Metadata

func (*ScorecardBasicSpecCheck) Name

func (p *ScorecardBasicSpecCheck) Name() string

func (*ScorecardBasicSpecCheck) Validate

func (p *ScorecardBasicSpecCheck) Validate(ctx context.Context, bundleRef image.Reference) (bool, error)

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 string, kubeconfig []byte, waittime string) *ScorecardOlmSuiteCheck

func (*ScorecardOlmSuiteCheck) Help

func (*ScorecardOlmSuiteCheck) Metadata

func (p *ScorecardOlmSuiteCheck) Metadata() types.Metadata

func (*ScorecardOlmSuiteCheck) Name

func (p *ScorecardOlmSuiteCheck) Name() string

func (*ScorecardOlmSuiteCheck) Validate

func (p *ScorecardOlmSuiteCheck) Validate(ctx context.Context, bundleRef image.Reference) (bool, error)

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

func (p *ValidateOperatorBundleCheck) Validate(ctx context.Context, bundleRef image.Reference) (bool, error)

Jump to

Keyboard shortcuts

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