policy

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadTimeout  = 180 * time.Second
	ReadInterval = 1 * time.Second
	TestPolicy   = "test-policy"
)

Variables

This section is empty.

Functions

func ContainPolicyAvailable

func ContainPolicyAvailable() gomegatypes.GomegaMatcher

func ContainPolicyDegraded

func ContainPolicyDegraded() gomegatypes.GomegaMatcher

func EnactmentConditionsStatus

func EnactmentConditionsStatus(node, policy string) shared.ConditionList

func EnactmentConditionsStatusConsistently

func EnactmentConditionsStatusConsistently(node string) AsyncAssertion

func EnactmentConditionsStatusEventually

func EnactmentConditionsStatusEventually(node string) AsyncAssertion

func EnactmentConditionsStatusForPolicyConsistently

func EnactmentConditionsStatusForPolicyConsistently(node, policy string) AsyncAssertion

func EnactmentConditionsStatusForPolicyEventually

func EnactmentConditionsStatusForPolicyEventually(node string, policy string) AsyncAssertion

func EnactmentsStatusToYaml

func EnactmentsStatusToYaml() string

func MatchConditionsFrom

func MatchConditionsFrom(conditionsSetter func(*shared.ConditionList, string)) gomegatypes.GomegaMatcher

func NodeNetworkConfigurationPolicy

func NodeNetworkConfigurationPolicy(policyName string) nmstatev1.NodeNetworkConfigurationPolicy

func Status

func Status(policyName string) shared.ConditionList

Status In case a condition does not exist create with Unknown type, this way is easier to just use gomega matchers to check in a homogenous way that condition is not present or unknown.

func StatusConsistently

func StatusConsistently() AsyncAssertion

func StatusEventually added in v0.78.0

func StatusEventually() AsyncAssertion

func StatusForPolicyConsistently

func StatusForPolicyConsistently(policy string) AsyncAssertion

func StatusForPolicyEventually

func StatusForPolicyEventually(policy string) AsyncAssertion

func WaitForAvailablePolicy

func WaitForAvailablePolicy(policy string)

func WaitForAvailableTestPolicy

func WaitForAvailableTestPolicy()

func WaitForDegradedPolicy

func WaitForDegradedPolicy(policy string)

func WaitForDegradedTestPolicy

func WaitForDegradedTestPolicy()

func WaitForPolicy

func WaitForPolicy(policy string, matcher gomegatypes.GomegaMatcher)

func WaitForPolicyTransitionUpdate

func WaitForPolicyTransitionUpdate(policy string)

func WaitForPolicyTransitionUpdateWithTime added in v0.77.0

func WaitForPolicyTransitionUpdateWithTime(policy string, applyTime time.Time)

Types

This section is empty.

Jump to

Keyboard shortcuts

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