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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterNetworkApplyConfiguration

type ClusterNetworkApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Network                          *string                                 `json:"network,omitempty"`
	HostSubnetLength                 *uint32                                 `json:"hostsubnetlength,omitempty"`
	ServiceNetwork                   *string                                 `json:"serviceNetwork,omitempty"`
	PluginName                       *string                                 `json:"pluginName,omitempty"`
	ClusterNetworks                  []ClusterNetworkEntryApplyConfiguration `json:"clusterNetworks,omitempty"`
	VXLANPort                        *uint32                                 `json:"vxlanPort,omitempty"`
	MTU                              *uint32                                 `json:"mtu,omitempty"`
}

ClusterNetworkApplyConfiguration represents an declarative configuration of the ClusterNetwork type for use with apply.

func ClusterNetwork

func ClusterNetwork(name string) *ClusterNetworkApplyConfiguration

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

func ExtractClusterNetwork

func ExtractClusterNetwork(clusterNetwork *apinetworkv1.ClusterNetwork, fieldManager string) (*ClusterNetworkApplyConfiguration, error)

ExtractClusterNetwork extracts the applied configuration owned by fieldManager from clusterNetwork. If no managedFields are found in clusterNetwork for fieldManager, a ClusterNetworkApplyConfiguration 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. clusterNetwork must be a unmodified ClusterNetwork API object that was retrieved from the Kubernetes API. ExtractClusterNetwork 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 ExtractClusterNetworkStatus

func ExtractClusterNetworkStatus(clusterNetwork *apinetworkv1.ClusterNetwork, fieldManager string) (*ClusterNetworkApplyConfiguration, error)

ExtractClusterNetworkStatus is the same as ExtractClusterNetwork except that it extracts the status subresource applied configuration. Experimental!

func (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) WithClusterNetworks

WithClusterNetworks adds the given value to the ClusterNetworks 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 ClusterNetworks field.

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

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

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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) WithHostSubnetLength

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

func (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) WithMTU

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

func (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) WithNetwork

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

func (*ClusterNetworkApplyConfiguration) 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 (*ClusterNetworkApplyConfiguration) WithPluginName

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

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

func (*ClusterNetworkApplyConfiguration) WithServiceNetwork

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

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

func (*ClusterNetworkApplyConfiguration) WithVXLANPort

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

type ClusterNetworkEntryApplyConfiguration

type ClusterNetworkEntryApplyConfiguration struct {
	CIDR             *string `json:"CIDR,omitempty"`
	HostSubnetLength *uint32 `json:"hostSubnetLength,omitempty"`
}

ClusterNetworkEntryApplyConfiguration represents an declarative configuration of the ClusterNetworkEntry type for use with apply.

func ClusterNetworkEntry

func ClusterNetworkEntry() *ClusterNetworkEntryApplyConfiguration

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

func (*ClusterNetworkEntryApplyConfiguration) WithCIDR

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

func (*ClusterNetworkEntryApplyConfiguration) WithHostSubnetLength

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

type EgressNetworkPolicyApplyConfiguration

type EgressNetworkPolicyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *EgressNetworkPolicySpecApplyConfiguration `json:"spec,omitempty"`
}

EgressNetworkPolicyApplyConfiguration represents an declarative configuration of the EgressNetworkPolicy type for use with apply.

func EgressNetworkPolicy

func EgressNetworkPolicy(name, namespace string) *EgressNetworkPolicyApplyConfiguration

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

func ExtractEgressNetworkPolicy

func ExtractEgressNetworkPolicy(egressNetworkPolicy *apinetworkv1.EgressNetworkPolicy, fieldManager string) (*EgressNetworkPolicyApplyConfiguration, error)

ExtractEgressNetworkPolicy extracts the applied configuration owned by fieldManager from egressNetworkPolicy. If no managedFields are found in egressNetworkPolicy for fieldManager, a EgressNetworkPolicyApplyConfiguration 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. egressNetworkPolicy must be a unmodified EgressNetworkPolicy API object that was retrieved from the Kubernetes API. ExtractEgressNetworkPolicy 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 ExtractEgressNetworkPolicyStatus

func ExtractEgressNetworkPolicyStatus(egressNetworkPolicy *apinetworkv1.EgressNetworkPolicy, fieldManager string) (*EgressNetworkPolicyApplyConfiguration, error)

ExtractEgressNetworkPolicyStatus is the same as ExtractEgressNetworkPolicy except that it extracts the status subresource applied configuration. Experimental!

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

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

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

func (*EgressNetworkPolicyApplyConfiguration) 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 (*EgressNetworkPolicyApplyConfiguration) 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 EgressNetworkPolicyPeerApplyConfiguration

type EgressNetworkPolicyPeerApplyConfiguration struct {
	CIDRSelector *string `json:"cidrSelector,omitempty"`
	DNSName      *string `json:"dnsName,omitempty"`
}

EgressNetworkPolicyPeerApplyConfiguration represents an declarative configuration of the EgressNetworkPolicyPeer type for use with apply.

func EgressNetworkPolicyPeer

func EgressNetworkPolicyPeer() *EgressNetworkPolicyPeerApplyConfiguration

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

func (*EgressNetworkPolicyPeerApplyConfiguration) WithCIDRSelector

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

func (*EgressNetworkPolicyPeerApplyConfiguration) WithDNSName

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

type EgressNetworkPolicyRuleApplyConfiguration

type EgressNetworkPolicyRuleApplyConfiguration struct {
	Type *v1.EgressNetworkPolicyRuleType            `json:"type,omitempty"`
	To   *EgressNetworkPolicyPeerApplyConfiguration `json:"to,omitempty"`
}

EgressNetworkPolicyRuleApplyConfiguration represents an declarative configuration of the EgressNetworkPolicyRule type for use with apply.

func EgressNetworkPolicyRule

func EgressNetworkPolicyRule() *EgressNetworkPolicyRuleApplyConfiguration

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

func (*EgressNetworkPolicyRuleApplyConfiguration) 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 (*EgressNetworkPolicyRuleApplyConfiguration) 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 EgressNetworkPolicySpecApplyConfiguration

type EgressNetworkPolicySpecApplyConfiguration struct {
	Egress []EgressNetworkPolicyRuleApplyConfiguration `json:"egress,omitempty"`
}

EgressNetworkPolicySpecApplyConfiguration represents an declarative configuration of the EgressNetworkPolicySpec type for use with apply.

func EgressNetworkPolicySpec

func EgressNetworkPolicySpec() *EgressNetworkPolicySpecApplyConfiguration

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

func (*EgressNetworkPolicySpecApplyConfiguration) WithEgress

WithEgress adds the given value to the Egress 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 Egress field.

type HostSubnetApplyConfiguration

type HostSubnetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Host                             *string                          `json:"host,omitempty"`
	HostIP                           *string                          `json:"hostIP,omitempty"`
	Subnet                           *string                          `json:"subnet,omitempty"`
	EgressIPs                        []networkv1.HostSubnetEgressIP   `json:"egressIPs,omitempty"`
	EgressCIDRs                      []networkv1.HostSubnetEgressCIDR `json:"egressCIDRs,omitempty"`
}

HostSubnetApplyConfiguration represents an declarative configuration of the HostSubnet type for use with apply.

func ExtractHostSubnet

func ExtractHostSubnet(hostSubnet *networkv1.HostSubnet, fieldManager string) (*HostSubnetApplyConfiguration, error)

ExtractHostSubnet extracts the applied configuration owned by fieldManager from hostSubnet. If no managedFields are found in hostSubnet for fieldManager, a HostSubnetApplyConfiguration 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. hostSubnet must be a unmodified HostSubnet API object that was retrieved from the Kubernetes API. ExtractHostSubnet 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 ExtractHostSubnetStatus

func ExtractHostSubnetStatus(hostSubnet *networkv1.HostSubnet, fieldManager string) (*HostSubnetApplyConfiguration, error)

ExtractHostSubnetStatus is the same as ExtractHostSubnet except that it extracts the status subresource applied configuration. Experimental!

func HostSubnet

func HostSubnet(name string) *HostSubnetApplyConfiguration

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

func (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) WithCreationTimestamp

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

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

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

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

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

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 (*HostSubnetApplyConfiguration) WithEgressCIDRs

WithEgressCIDRs adds the given value to the EgressCIDRs 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 EgressCIDRs field.

func (*HostSubnetApplyConfiguration) WithEgressIPs

WithEgressIPs adds the given value to the EgressIPs 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 EgressIPs field.

func (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) WithHostIP

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

func (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) 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 (*HostSubnetApplyConfiguration) WithResourceVersion

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

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 (*HostSubnetApplyConfiguration) WithSubnet

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

func (*HostSubnetApplyConfiguration) 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 NetNamespaceApplyConfiguration

type NetNamespaceApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	NetName                          *string                          `json:"netname,omitempty"`
	NetID                            *uint32                          `json:"netid,omitempty"`
	EgressIPs                        []networkv1.NetNamespaceEgressIP `json:"egressIPs,omitempty"`
}

NetNamespaceApplyConfiguration represents an declarative configuration of the NetNamespace type for use with apply.

func ExtractNetNamespace

func ExtractNetNamespace(netNamespace *networkv1.NetNamespace, fieldManager string) (*NetNamespaceApplyConfiguration, error)

ExtractNetNamespace extracts the applied configuration owned by fieldManager from netNamespace. If no managedFields are found in netNamespace for fieldManager, a NetNamespaceApplyConfiguration 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. netNamespace must be a unmodified NetNamespace API object that was retrieved from the Kubernetes API. ExtractNetNamespace 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 ExtractNetNamespaceStatus

func ExtractNetNamespaceStatus(netNamespace *networkv1.NetNamespace, fieldManager string) (*NetNamespaceApplyConfiguration, error)

ExtractNetNamespaceStatus is the same as ExtractNetNamespace except that it extracts the status subresource applied configuration. Experimental!

func NetNamespace

func NetNamespace(name string) *NetNamespaceApplyConfiguration

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

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

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

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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) WithEgressIPs

WithEgressIPs adds the given value to the EgressIPs 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 EgressIPs field.

func (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) 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 (*NetNamespaceApplyConfiguration) WithNetID

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

func (*NetNamespaceApplyConfiguration) WithNetName

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

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

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

Jump to

Keyboard shortcuts

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