operator

package
v0.0.0-...-354d10d Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheck

func NewCheck(image, indeximage string, kubeconfig []byte, opts ...Option) *operatorCheck

NewCheck is a check runner that executes the Operator Policy.

Types

type Option

type Option = func(*operatorCheck)

func WithDockerConfigJSONFromFile

func WithDockerConfigJSONFromFile(path string) Option

WithDockerConfigJSONFromFile is a path to credentials necessary to pull the image under tests.

func WithInsecureConnection

func WithInsecureConnection() Option

WithInsecureConnection allows for preflight to connect to an insecure registry to pull images.

func WithOperatorChannel

func WithOperatorChannel(ch string) Option

WithOperatorChannel configures the operator value to use when attempting to deploy the operator under test.

func WithScorecardImage

func WithScorecardImage(image string) Option

WithScorecardImage overrides the Operator-SDK Scorecard image value. This option should ONLY be used in disconnected environments to overcome image accessibility restrictions.

Most users should omit this option.

func WithScorecardNamespace

func WithScorecardNamespace(ns string) Option

WithScorecardNamespace configures the namespace value to use for OperatorSDK Scorecard checks.

func WithScorecardServiceAccount

func WithScorecardServiceAccount(sa string) Option

WithScorecardServiceAccount adjusts the service account used for OperatorSDK Scorecard-based checks.

func WithScorecardWaitTime

func WithScorecardWaitTime(seconds string) Option

WithScorecardWaitTime overrides the wait time passed to OperatorSDK Scorecard-based checks The seconds value should be a string representation of a number of seconds without a suffix.

Jump to

Keyboard shortcuts

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