skip

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2025 Nutanix. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

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

Evaluator is used to determine which checks should be skipped, based on the cluster's annotations.

func New

func New(cluster *clusterv1.Cluster) *Evaluator

New creates a new Evaluator from the cluster's annotations.

func (*Evaluator) For

func (o *Evaluator) For(checkName string) bool

For checks if the specific check should be skipped. It returns true if the cluster skip annotation contains the check name. The check name is case-insensitive, so "CheckName1" and "checkname1" will both match. If the cluster has skipped all checks, For will return true for any check name.

For example, if the cluster has skipped "CheckName1", then calling For("CheckName1") or For("checkname1") will return true, but For("CheckName2") will return false.

func (*Evaluator) ForAll

func (o *Evaluator) ForAll() bool

ForAll checks if all checks should be skipped. It returns true if the cluster skip annotation contains "all". The check is case-insensitive, so "all", "ALL", and "All" will all match.

Jump to

Keyboard shortcuts

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