v1

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteApplyConfiguration

type RouteApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *RouteSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *RouteStatusApplyConfiguration `json:"status,omitempty"`
}

RouteApplyConfiguration represents an declarative configuration of the Route type for use with apply.

func ExtractRoute

func ExtractRoute(route *apiroutev1.Route, fieldManager string) (*RouteApplyConfiguration, error)

ExtractRoute extracts the applied configuration owned by fieldManager from route. If no managedFields are found in route for fieldManager, a RouteApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. route must be a unmodified Route API object that was retrieved from the Kubernetes API. ExtractRoute provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractRouteStatus

func ExtractRouteStatus(route *apiroutev1.Route, fieldManager string) (*RouteApplyConfiguration, error)

ExtractRouteStatus is the same as ExtractRoute except that it extracts the status subresource applied configuration. Experimental!

func Route

func Route(name, namespace string) *RouteApplyConfiguration

Route constructs an declarative configuration of the Route type for use with apply.

func (*RouteApplyConfiguration) WithAPIVersion

func (b *RouteApplyConfiguration) WithAPIVersion(value string) *RouteApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*RouteApplyConfiguration) WithAnnotations

func (b *RouteApplyConfiguration) WithAnnotations(entries map[string]string) *RouteApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*RouteApplyConfiguration) WithCreationTimestamp

func (b *RouteApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RouteApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*RouteApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *RouteApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RouteApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*RouteApplyConfiguration) WithDeletionTimestamp

func (b *RouteApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RouteApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*RouteApplyConfiguration) WithFinalizers

func (b *RouteApplyConfiguration) WithFinalizers(values ...string) *RouteApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*RouteApplyConfiguration) WithGenerateName

func (b *RouteApplyConfiguration) WithGenerateName(value string) *RouteApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*RouteApplyConfiguration) WithGeneration

func (b *RouteApplyConfiguration) WithGeneration(value int64) *RouteApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*RouteApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*RouteApplyConfiguration) WithLabels

func (b *RouteApplyConfiguration) WithLabels(entries map[string]string) *RouteApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*RouteApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*RouteApplyConfiguration) WithNamespace

func (b *RouteApplyConfiguration) WithNamespace(value string) *RouteApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*RouteApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*RouteApplyConfiguration) WithResourceVersion

func (b *RouteApplyConfiguration) WithResourceVersion(value string) *RouteApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*RouteApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*RouteApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*RouteApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type RouteIngressApplyConfiguration

type RouteIngressApplyConfiguration struct {
	Host                    *string                                   `json:"host,omitempty"`
	RouterName              *string                                   `json:"routerName,omitempty"`
	Conditions              []RouteIngressConditionApplyConfiguration `json:"conditions,omitempty"`
	WildcardPolicy          *routev1.WildcardPolicyType               `json:"wildcardPolicy,omitempty"`
	RouterCanonicalHostname *string                                   `json:"routerCanonicalHostname,omitempty"`
}

RouteIngressApplyConfiguration represents an declarative configuration of the RouteIngress type for use with apply.

func RouteIngress

func RouteIngress() *RouteIngressApplyConfiguration

RouteIngressApplyConfiguration constructs an declarative configuration of the RouteIngress type for use with apply.

func (*RouteIngressApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*RouteIngressApplyConfiguration) WithHost

WithHost sets the Host field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Host field is set to the value of the last call.

func (*RouteIngressApplyConfiguration) WithRouterCanonicalHostname

func (b *RouteIngressApplyConfiguration) WithRouterCanonicalHostname(value string) *RouteIngressApplyConfiguration

WithRouterCanonicalHostname sets the RouterCanonicalHostname field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RouterCanonicalHostname field is set to the value of the last call.

func (*RouteIngressApplyConfiguration) WithRouterName

WithRouterName sets the RouterName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RouterName field is set to the value of the last call.

func (*RouteIngressApplyConfiguration) WithWildcardPolicy

WithWildcardPolicy sets the WildcardPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the WildcardPolicy field is set to the value of the last call.

type RouteIngressConditionApplyConfiguration

type RouteIngressConditionApplyConfiguration struct {
	Type               *v1.RouteIngressConditionType `json:"type,omitempty"`
	Status             *corev1.ConditionStatus       `json:"status,omitempty"`
	Reason             *string                       `json:"reason,omitempty"`
	Message            *string                       `json:"message,omitempty"`
	LastTransitionTime *metav1.Time                  `json:"lastTransitionTime,omitempty"`
}

RouteIngressConditionApplyConfiguration represents an declarative configuration of the RouteIngressCondition type for use with apply.

func RouteIngressCondition

func RouteIngressCondition() *RouteIngressConditionApplyConfiguration

RouteIngressConditionApplyConfiguration constructs an declarative configuration of the RouteIngressCondition type for use with apply.

func (*RouteIngressConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*RouteIngressConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*RouteIngressConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*RouteIngressConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*RouteIngressConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type RoutePortApplyConfiguration

type RoutePortApplyConfiguration struct {
	TargetPort *intstr.IntOrString `json:"targetPort,omitempty"`
}

RoutePortApplyConfiguration represents an declarative configuration of the RoutePort type for use with apply.

func RoutePort

func RoutePort() *RoutePortApplyConfiguration

RoutePortApplyConfiguration constructs an declarative configuration of the RoutePort type for use with apply.

func (*RoutePortApplyConfiguration) WithTargetPort

WithTargetPort sets the TargetPort field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetPort field is set to the value of the last call.

type RouteSpecApplyConfiguration

type RouteSpecApplyConfiguration struct {
	Host              *string                                  `json:"host,omitempty"`
	Subdomain         *string                                  `json:"subdomain,omitempty"`
	Path              *string                                  `json:"path,omitempty"`
	To                *RouteTargetReferenceApplyConfiguration  `json:"to,omitempty"`
	AlternateBackends []RouteTargetReferenceApplyConfiguration `json:"alternateBackends,omitempty"`
	Port              *RoutePortApplyConfiguration             `json:"port,omitempty"`
	TLS               *TLSConfigApplyConfiguration             `json:"tls,omitempty"`
	WildcardPolicy    *routev1.WildcardPolicyType              `json:"wildcardPolicy,omitempty"`
}

RouteSpecApplyConfiguration represents an declarative configuration of the RouteSpec type for use with apply.

func RouteSpec

func RouteSpec() *RouteSpecApplyConfiguration

RouteSpecApplyConfiguration constructs an declarative configuration of the RouteSpec type for use with apply.

func (*RouteSpecApplyConfiguration) WithAlternateBackends

WithAlternateBackends adds the given value to the AlternateBackends field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the AlternateBackends field.

func (*RouteSpecApplyConfiguration) WithHost

WithHost sets the Host field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Host field is set to the value of the last call.

func (*RouteSpecApplyConfiguration) WithPath

WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.

func (*RouteSpecApplyConfiguration) WithPort

WithPort sets the Port field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Port field is set to the value of the last call.

func (*RouteSpecApplyConfiguration) WithSubdomain

WithSubdomain sets the Subdomain field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Subdomain field is set to the value of the last call.

func (*RouteSpecApplyConfiguration) WithTLS

WithTLS sets the TLS field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TLS field is set to the value of the last call.

func (*RouteSpecApplyConfiguration) WithTo

WithTo sets the To field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the To field is set to the value of the last call.

func (*RouteSpecApplyConfiguration) WithWildcardPolicy

WithWildcardPolicy sets the WildcardPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the WildcardPolicy field is set to the value of the last call.

type RouteStatusApplyConfiguration

type RouteStatusApplyConfiguration struct {
	Ingress []RouteIngressApplyConfiguration `json:"ingress,omitempty"`
}

RouteStatusApplyConfiguration represents an declarative configuration of the RouteStatus type for use with apply.

func RouteStatus

func RouteStatus() *RouteStatusApplyConfiguration

RouteStatusApplyConfiguration constructs an declarative configuration of the RouteStatus type for use with apply.

func (*RouteStatusApplyConfiguration) WithIngress

WithIngress adds the given value to the Ingress field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Ingress field.

type RouteTargetReferenceApplyConfiguration

type RouteTargetReferenceApplyConfiguration struct {
	Kind   *string `json:"kind,omitempty"`
	Name   *string `json:"name,omitempty"`
	Weight *int32  `json:"weight,omitempty"`
}

RouteTargetReferenceApplyConfiguration represents an declarative configuration of the RouteTargetReference type for use with apply.

func RouteTargetReference

func RouteTargetReference() *RouteTargetReferenceApplyConfiguration

RouteTargetReferenceApplyConfiguration constructs an declarative configuration of the RouteTargetReference type for use with apply.

func (*RouteTargetReferenceApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*RouteTargetReferenceApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*RouteTargetReferenceApplyConfiguration) WithWeight

WithWeight sets the Weight field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Weight field is set to the value of the last call.

type TLSConfigApplyConfiguration

type TLSConfigApplyConfiguration struct {
	Termination                   *v1.TLSTerminationType                `json:"termination,omitempty"`
	Certificate                   *string                               `json:"certificate,omitempty"`
	Key                           *string                               `json:"key,omitempty"`
	CACertificate                 *string                               `json:"caCertificate,omitempty"`
	DestinationCACertificate      *string                               `json:"destinationCACertificate,omitempty"`
	InsecureEdgeTerminationPolicy *v1.InsecureEdgeTerminationPolicyType `json:"insecureEdgeTerminationPolicy,omitempty"`
}

TLSConfigApplyConfiguration represents an declarative configuration of the TLSConfig type for use with apply.

func TLSConfig

func TLSConfig() *TLSConfigApplyConfiguration

TLSConfigApplyConfiguration constructs an declarative configuration of the TLSConfig type for use with apply.

func (*TLSConfigApplyConfiguration) WithCACertificate

func (b *TLSConfigApplyConfiguration) WithCACertificate(value string) *TLSConfigApplyConfiguration

WithCACertificate sets the CACertificate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CACertificate field is set to the value of the last call.

func (*TLSConfigApplyConfiguration) WithCertificate

WithCertificate sets the Certificate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Certificate field is set to the value of the last call.

func (*TLSConfigApplyConfiguration) WithDestinationCACertificate

func (b *TLSConfigApplyConfiguration) WithDestinationCACertificate(value string) *TLSConfigApplyConfiguration

WithDestinationCACertificate sets the DestinationCACertificate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DestinationCACertificate field is set to the value of the last call.

func (*TLSConfigApplyConfiguration) WithInsecureEdgeTerminationPolicy

WithInsecureEdgeTerminationPolicy sets the InsecureEdgeTerminationPolicy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the InsecureEdgeTerminationPolicy field is set to the value of the last call.

func (*TLSConfigApplyConfiguration) WithKey

WithKey sets the Key field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Key field is set to the value of the last call.

func (*TLSConfigApplyConfiguration) WithTermination

WithTermination sets the Termination field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Termination field is set to the value of the last call.

Jump to

Keyboard shortcuts

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