Documentation ¶
Index ¶
- func CountImportResult(controllerName, cluster, namespace, name string, successful bool)
- func EnsureImagePullSecret(ctx context.Context, namespace string, client ctrlruntimeclient.Client, ...) error
- func EnsureNamespaceNotMonitored(ctx context.Context, name string, client ctrlruntimeclient.Client, ...) error
- func IsTerminal(err error) bool
- func RegisterMetrics() error
- func SwallowIfTerminal(err error) error
- func TerminalError(inner error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountImportResult ¶
CountImportResult increase the counter metric
func EnsureImagePullSecret ¶
func EnsureImagePullSecret(ctx context.Context, namespace string, client ctrlruntimeclient.Client, log *logrus.Entry) error
EnsureImagePullSecret copy secret PullSecretName from ci namespace to another namespace
func EnsureNamespaceNotMonitored ¶
func EnsureNamespaceNotMonitored(ctx context.Context, name string, client ctrlruntimeclient.Client, log *logrus.Entry) error
EnsureNamespaceNotMonitored make sure the namespace is ignored by openshift-monitoring
func SwallowIfTerminal ¶
SwallowIfTerminal will swallow errors if they are terminal. It supports wrapped errors.
func TerminalError ¶
TerminalError returns a new terminal error which indicates that there is no point in retrying reconciliation. The reconciler should use SwallowIfTerminal to wrap any errors it got before returning them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.