v1beta1

package
Version: v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointApplyConfiguration

type EndpointApplyConfiguration struct {
	Addresses  []string                              `json:"addresses,omitempty"`
	Conditions *EndpointConditionsApplyConfiguration `json:"conditions,omitempty"`
	Hostname   *string                               `json:"hostname,omitempty"`
	TargetRef  *v1.ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"`
	Topology   map[string]string                     `json:"topology,omitempty"`
	NodeName   *string                               `json:"nodeName,omitempty"`
	Hints      *EndpointHintsApplyConfiguration      `json:"hints,omitempty"`
}

EndpointApplyConfiguration represents an declarative configuration of the Endpoint type for use with apply.

func Endpoint

func Endpoint() *EndpointApplyConfiguration

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

func (*EndpointApplyConfiguration) WithAddresses

func (b *EndpointApplyConfiguration) WithAddresses(values ...string) *EndpointApplyConfiguration

WithAddresses adds the given value to the Addresses 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 Addresses field.

func (*EndpointApplyConfiguration) WithConditions

WithConditions sets the Conditions 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 Conditions field is set to the value of the last call.

func (*EndpointApplyConfiguration) WithHints

WithHints sets the Hints 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 Hints field is set to the value of the last call.

func (*EndpointApplyConfiguration) WithHostname

WithHostname sets the Hostname 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 Hostname field is set to the value of the last call.

func (*EndpointApplyConfiguration) WithNodeName

WithNodeName sets the NodeName 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 NodeName field is set to the value of the last call.

func (*EndpointApplyConfiguration) WithTargetRef

WithTargetRef sets the TargetRef 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 TargetRef field is set to the value of the last call.

func (*EndpointApplyConfiguration) WithTopology

WithTopology puts the entries into the Topology 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 Topology field, overwriting an existing map entries in Topology field with the same key.

type EndpointConditionsApplyConfiguration

type EndpointConditionsApplyConfiguration struct {
	Ready       *bool `json:"ready,omitempty"`
	Serving     *bool `json:"serving,omitempty"`
	Terminating *bool `json:"terminating,omitempty"`
}

EndpointConditionsApplyConfiguration represents an declarative configuration of the EndpointConditions type for use with apply.

func EndpointConditions

func EndpointConditions() *EndpointConditionsApplyConfiguration

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

func (*EndpointConditionsApplyConfiguration) WithReady

WithReady sets the Ready 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 Ready field is set to the value of the last call.

func (*EndpointConditionsApplyConfiguration) WithServing

WithServing sets the Serving 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 Serving field is set to the value of the last call.

func (*EndpointConditionsApplyConfiguration) WithTerminating

WithTerminating sets the Terminating 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 Terminating field is set to the value of the last call.

type EndpointHintsApplyConfiguration

type EndpointHintsApplyConfiguration struct {
	ForZones []ForZoneApplyConfiguration `json:"forZones,omitempty"`
}

EndpointHintsApplyConfiguration represents an declarative configuration of the EndpointHints type for use with apply.

func EndpointHints

func EndpointHints() *EndpointHintsApplyConfiguration

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

func (*EndpointHintsApplyConfiguration) WithForZones

WithForZones adds the given value to the ForZones 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 ForZones field.

type EndpointPortApplyConfiguration

type EndpointPortApplyConfiguration struct {
	Name        *string      `json:"name,omitempty"`
	Protocol    *v1.Protocol `json:"protocol,omitempty"`
	Port        *int32       `json:"port,omitempty"`
	AppProtocol *string      `json:"appProtocol,omitempty"`
}

EndpointPortApplyConfiguration represents an declarative configuration of the EndpointPort type for use with apply.

func EndpointPort

func EndpointPort() *EndpointPortApplyConfiguration

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

func (*EndpointPortApplyConfiguration) WithAppProtocol

WithAppProtocol sets the AppProtocol 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 AppProtocol field is set to the value of the last call.

func (*EndpointPortApplyConfiguration) 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 (*EndpointPortApplyConfiguration) 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 (*EndpointPortApplyConfiguration) WithProtocol

WithProtocol sets the Protocol 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 Protocol field is set to the value of the last call.

type EndpointSliceApplyConfiguration

type EndpointSliceApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	AddressType                      *v1beta1.AddressType             `json:"addressType,omitempty"`
	Endpoints                        []EndpointApplyConfiguration     `json:"endpoints,omitempty"`
	Ports                            []EndpointPortApplyConfiguration `json:"ports,omitempty"`
}

EndpointSliceApplyConfiguration represents an declarative configuration of the EndpointSlice type for use with apply.

func EndpointSlice

func EndpointSlice(name, namespace string) *EndpointSliceApplyConfiguration

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

func ExtractEndpointSlice

func ExtractEndpointSlice(endpointSlice *v1beta1.EndpointSlice, fieldManager string) (*EndpointSliceApplyConfiguration, error)

ExtractEndpointSlice extracts the applied configuration owned by fieldManager from endpointSlice. If no managedFields are found in endpointSlice for fieldManager, a EndpointSliceApplyConfiguration 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. endpointSlice must be a unmodified EndpointSlice API object that was retrieved from the Kubernetes API. ExtractEndpointSlice 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 ExtractEndpointSliceStatus added in v0.22.0

func ExtractEndpointSliceStatus(endpointSlice *v1beta1.EndpointSlice, fieldManager string) (*EndpointSliceApplyConfiguration, error)

ExtractEndpointSliceStatus is the same as ExtractEndpointSlice except that it extracts the status subresource applied configuration. Experimental!

func (*EndpointSliceApplyConfiguration) WithAPIVersion

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 (*EndpointSliceApplyConfiguration) WithAddressType

WithAddressType sets the AddressType 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 AddressType field is set to the value of the last call.

func (*EndpointSliceApplyConfiguration) WithAnnotations

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 (*EndpointSliceApplyConfiguration) WithClusterName

WithClusterName sets the ClusterName 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 ClusterName field is set to the value of the last call.

func (*EndpointSliceApplyConfiguration) WithCreationTimestamp

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 (*EndpointSliceApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*EndpointSliceApplyConfiguration) WithDeletionTimestamp

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 (*EndpointSliceApplyConfiguration) WithEndpoints

WithEndpoints adds the given value to the Endpoints 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 Endpoints field.

func (*EndpointSliceApplyConfiguration) WithFinalizers

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 (*EndpointSliceApplyConfiguration) WithGenerateName

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 (*EndpointSliceApplyConfiguration) WithGeneration

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 (*EndpointSliceApplyConfiguration) 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 (*EndpointSliceApplyConfiguration) WithLabels

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 (*EndpointSliceApplyConfiguration) 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 (*EndpointSliceApplyConfiguration) WithNamespace

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 (*EndpointSliceApplyConfiguration) 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 (*EndpointSliceApplyConfiguration) WithPorts

WithPorts adds the given value to the Ports 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 Ports field.

func (*EndpointSliceApplyConfiguration) WithResourceVersion

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.

WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.

func (*EndpointSliceApplyConfiguration) 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 ForZoneApplyConfiguration

type ForZoneApplyConfiguration struct {
	Name *string `json:"name,omitempty"`
}

ForZoneApplyConfiguration represents an declarative configuration of the ForZone type for use with apply.

func ForZone

func ForZone() *ForZoneApplyConfiguration

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

func (*ForZoneApplyConfiguration) 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.

Jump to

Keyboard shortcuts

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