conditions

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2025 HAProxy Technologies LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// This reason is used with GatewayClassConditionAccepted (false).
	GatewayClassReasonGatewayClassConflict gatewayv1.GatewayClassConditionReason = "GatewayClassConflict"

	// GatewayClassMessageGatewayClassConflict is a message that describes GatewayClassReasonGatewayClassConflict.
	GatewayClassMessageGatewayClassConflict = "Resource ignored due to a conflicting GatewayClass resource"

	// GatewayClassReasonUnsupported is a message that describes GatewayClassReasonUnsupported
	GatewayClassReasonUnsupported = "Resource ignored due to an unsupported GatewayClass"
)

Variables

This section is empty.

Functions

func NewDefaultGatewayClassConditions

func NewDefaultGatewayClassConditions() generic.Conditions

NewDefaultGatewayClassConditions returns genericconditions.Conditions that indicate that the GatewayClass is accepted and that the Gateway API CRD versions are supported.

func NewGatewayAcceptedInvalidConditions

func NewGatewayAcceptedInvalidConditions(msg string) generic.Conditions

func NewGatewayAcceptedInvalidParameters

func NewGatewayAcceptedInvalidParameters(err *field.Error) generic.Conditions

func NewGatewayAcceptedListenerNotValidAllInvalid

func NewGatewayAcceptedListenerNotValidAllInvalid() generic.Conditions

func NewGatewayAcceptedListenerNotValidAtLeast1Valid

func NewGatewayAcceptedListenerNotValidAtLeast1Valid() generic.Conditions

func NewGatewayAcceptedListenersNotValid added in v1.0.1

func NewGatewayAcceptedListenersNotValid(msg string) generic.Conditions

func NewGatewayAcceptedOK

func NewGatewayAcceptedOK() generic.Conditions

func NewGatewayClassAcceptedConflict

func NewGatewayClassAcceptedConflict() generic.Conditions

func NewGatewayClassAcceptedInvalidParameters

func NewGatewayClassAcceptedInvalidParameters(err *field.Error) generic.Conditions

NewGatewayClassAcceptedInvalidParameters returns a Condition that indicates that the GatewayClass has invalid parameters.

func NewGatewayClassAcceptedOK

func NewGatewayClassAcceptedOK() generic.Conditions

func NewGatewayClassAcceptedUnsupported

func NewGatewayClassAcceptedUnsupported() generic.Conditions

func NewGatewayClassSupportedVersionOK

func NewGatewayClassSupportedVersionOK() generic.Conditions

func NewGatewayClassSupportedVersionUnsupportedVersion

func NewGatewayClassSupportedVersionUnsupportedVersion(recommendedVersion string) generic.Conditions

NewGatewayClassSupportedVersionUnsupportedVersion returns genericconditions.Conditions to indicate: - the Gateway API CRD versions are not supported.

func NewGatewayProgrammedInvalidParameters

func NewGatewayProgrammedInvalidParameters(msg string) generic.Conditions

func NewGatewayProgrammedListenersNotValid added in v1.0.1

func NewGatewayProgrammedListenersNotValid(msg string) generic.Conditions

func NewGatewayProgrammedOK

func NewGatewayProgrammedOK() generic.Conditions

func NewListenerAcceptedOK

func NewListenerAcceptedOK() generic.Conditions

func NewListenerAcceptedUnsupportedProtocol

func NewListenerAcceptedUnsupportedProtocol(msg string) generic.Conditions

func NewListenerConflicted

func NewListenerConflicted(msg, reason string) generic.Conditions

func NewListenerProgrammedInvalid

func NewListenerProgrammedInvalid() generic.Conditions

func NewListenerProgrammedOK

func NewListenerProgrammedOK() generic.Conditions

func NewListenerProgrammedPending

func NewListenerProgrammedPending() generic.Conditions

func NewListenerResolvedRefInvalidCertificateRefs

func NewListenerResolvedRefInvalidCertificateRefs(msg string) generic.Conditions

func NewListenerResolvedRefInvalidRouteKinds

func NewListenerResolvedRefInvalidRouteKinds(msg string) generic.Conditions

func NewListenerResolvedRefOK

func NewListenerResolvedRefOK() generic.Conditions

Types

type Condition

type Condition struct {
	Type               ConditionType
	Status             metav1.ConditionStatus
	Reason             string
	Message            string
	ObservedGeneration int64
}

type ConditionType

type ConditionType string

type Conditions

type Conditions map[ConditionType]Condition

func NewConditionsFromMetav1Conditions

func NewConditionsFromMetav1Conditions(conditions []metav1.Condition) Conditions

func (Conditions) Equal

func (c Conditions) Equal(b Conditions) bool

func (Conditions) GetCondition

func (c Conditions) GetCondition(conditionType ConditionType) (Condition, bool)

func (Conditions) GetMessage

func (c Conditions) GetMessage(conditionType ConditionType) string

func (Conditions) MergeOverrideConditions

func (c Conditions) MergeOverrideConditions(b Conditions)

func (Conditions) SetGeneration

func (c Conditions) SetGeneration(generation int64)

func (Conditions) ToMetav1Conditions

func (c Conditions) ToMetav1Conditions() []metav1.Condition

type GatewayClassConditionImpl

type GatewayClassConditionImpl struct{}

func (*GatewayClassConditionImpl) GetConditions

func (*GatewayClassConditionImpl) SetConditions

type GatewayConditionImpl

type GatewayConditionImpl struct{}

func (*GatewayConditionImpl) GetConditions

func (*GatewayConditionImpl) SetConditions

func (*GatewayConditionImpl) SetConditions(obj *gatewayv1.Gateway, conds generic.Conditions)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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