Documentation ¶
Index ¶
- func NewCheck(image, indeximage string, kubeconfig []byte, opts ...Option) *operatorCheck
- type Option
- func WithCSVTimeout(csvTimeout time.Duration) Option
- func WithDockerConfigJSONFromFile(path string) Option
- func WithInsecureConnection() Option
- func WithOperatorChannel(ch string) Option
- func WithScorecardImage(image string) Option
- func WithScorecardNamespace(ns string) Option
- func WithScorecardServiceAccount(sa string) Option
- func WithScorecardWaitTime(seconds string) Option
- func WithSubscriptionTimeout(subscriptionTimeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option = func(*operatorCheck)
func WithCSVTimeout ¶
WithCSVTimeout customizes how long to wait for a ClusterServiceVersion to become healthy.
func WithDockerConfigJSONFromFile ¶
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 ¶
WithOperatorChannel configures the operator value to use when attempting to deploy the operator under test.
func WithScorecardImage ¶
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 ¶
WithScorecardNamespace configures the namespace value to use for OperatorSDK Scorecard checks.
func WithScorecardServiceAccount ¶
WithScorecardServiceAccount adjusts the service account used for OperatorSDK Scorecard-based checks.
func WithScorecardWaitTime ¶
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.
func WithSubscriptionTimeout ¶
WithSubscriptionTimeout customizes how long to wait for a subscription to become healthy.