Documentation ¶
Index ¶
- Constants
- func ContainPolicyAvailable() gomegatypes.GomegaMatcher
- func ContainPolicyDegraded() gomegatypes.GomegaMatcher
- func EnactmentConditionsStatus(node, policy string) shared.ConditionList
- func EnactmentConditionsStatusConsistently(node string) AsyncAssertion
- func EnactmentConditionsStatusEventually(node string) AsyncAssertion
- func EnactmentConditionsStatusForPolicyConsistently(node, policy string) AsyncAssertion
- func EnactmentConditionsStatusForPolicyEventually(node string, policy string) AsyncAssertion
- func EnactmentsStatusToYaml() string
- func IndexEnactmentStatusByName() map[string]shared.NodeNetworkConfigurationEnactmentStatus
- func MatchConditionsFrom(conditionsSetter func(*shared.ConditionList, string)) gomegatypes.GomegaMatcher
- func NodeNetworkConfigurationEnactment(key types.NamespacedName) nmstatev1beta1.NodeNetworkConfigurationEnactment
- func NodeNetworkConfigurationPolicy(policyName string) nmstatev1.NodeNetworkConfigurationPolicy
- func Status(policyName string) shared.ConditionList
- func StatusConsistently() AsyncAssertion
- func StatusEventually() AsyncAssertion
- func StatusForPolicyConsistently(policy string) AsyncAssertion
- func StatusForPolicyEventually(policy string) AsyncAssertion
- func WaitForAvailablePolicy(policy string)
- func WaitForAvailableTestPolicy()
- func WaitForDegradedPolicy(policy string)
- func WaitForDegradedTestPolicy()
- func WaitForPolicy(policy string, matcher gomegatypes.GomegaMatcher)
- func WaitForPolicyTransitionUpdate(policy string)
- func WaitForPolicyTransitionUpdateWithTime(policy string, applyTime time.Time)
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 EnactmentsStatusToYaml ¶
func EnactmentsStatusToYaml() string
func IndexEnactmentStatusByName ¶
func IndexEnactmentStatusByName() map[string]shared.NodeNetworkConfigurationEnactmentStatus
func MatchConditionsFrom ¶
func MatchConditionsFrom(conditionsSetter func(*shared.ConditionList, string)) gomegatypes.GomegaMatcher
func NodeNetworkConfigurationEnactment ¶
func NodeNetworkConfigurationEnactment(key types.NamespacedName) nmstatev1beta1.NodeNetworkConfigurationEnactment
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.