v1alpha1

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenStackServerApplyConfiguration

type OpenStackServerApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *OpenStackServerSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *OpenStackServerStatusApplyConfiguration `json:"status,omitempty"`
}

OpenStackServerApplyConfiguration represents an declarative configuration of the OpenStackServer type for use with apply.

func ExtractOpenStackServer

func ExtractOpenStackServer(openStackServer *apiv1alpha1.OpenStackServer, fieldManager string) (*OpenStackServerApplyConfiguration, error)

ExtractOpenStackServer extracts the applied configuration owned by fieldManager from openStackServer. If no managedFields are found in openStackServer for fieldManager, a OpenStackServerApplyConfiguration 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. openStackServer must be a unmodified OpenStackServer API object that was retrieved from the Kubernetes API. ExtractOpenStackServer 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 ExtractOpenStackServerStatus

func ExtractOpenStackServerStatus(openStackServer *apiv1alpha1.OpenStackServer, fieldManager string) (*OpenStackServerApplyConfiguration, error)

ExtractOpenStackServerStatus is the same as ExtractOpenStackServer except that it extracts the status subresource applied configuration. Experimental!

func OpenStackServer

func OpenStackServer(name, namespace string) *OpenStackServerApplyConfiguration

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

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

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

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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 (*OpenStackServerApplyConfiguration) 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 OpenStackServerSpecApplyConfiguration

type OpenStackServerSpecApplyConfiguration struct {
	AdditionalBlockDevices            []v1beta1.AdditionalBlockDeviceApplyConfiguration           `json:"additionalBlockDevices,omitempty"`
	AvailabilityZone                  *string                                                     `json:"availabilityZone,omitempty"`
	ConfigDrive                       *bool                                                       `json:"configDrive,omitempty"`
	Flavor                            *string                                                     `json:"flavor,omitempty"`
	FlavorID                          *string                                                     `json:"flavorID,omitempty"`
	FloatingIPPoolRef                 *v1.TypedLocalObjectReference                               `json:"floatingIPPoolRef,omitempty"`
	IdentityRef                       *v1beta1.OpenStackIdentityReferenceApplyConfiguration       `json:"identityRef,omitempty"`
	Image                             *v1beta1.ImageParamApplyConfiguration                       `json:"image,omitempty"`
	Ports                             []v1beta1.PortOptsApplyConfiguration                        `json:"ports,omitempty"`
	RootVolume                        *v1beta1.RootVolumeApplyConfiguration                       `json:"rootVolume,omitempty"`
	SSHKeyName                        *string                                                     `json:"sshKeyName,omitempty"`
	SecurityGroups                    []v1beta1.SecurityGroupParamApplyConfiguration              `json:"securityGroups,omitempty"`
	ServerGroup                       *v1beta1.ServerGroupParamApplyConfiguration                 `json:"serverGroup,omitempty"`
	ServerMetadata                    []v1beta1.ServerMetadataApplyConfiguration                  `json:"serverMetadata,omitempty"`
	Tags                              []string                                                    `json:"tags,omitempty"`
	Trunk                             *bool                                                       `json:"trunk,omitempty"`
	UserDataRef                       *v1.LocalObjectReference                                    `json:"userDataRef,omitempty"`
	SchedulerHintAdditionalProperties []v1beta1.SchedulerHintAdditionalPropertyApplyConfiguration `json:"schedulerHintAdditionalProperties,omitempty"`
}

OpenStackServerSpecApplyConfiguration represents an declarative configuration of the OpenStackServerSpec type for use with apply.

func OpenStackServerSpec

func OpenStackServerSpec() *OpenStackServerSpecApplyConfiguration

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

func (*OpenStackServerSpecApplyConfiguration) WithAdditionalBlockDevices

WithAdditionalBlockDevices adds the given value to the AdditionalBlockDevices 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 AdditionalBlockDevices field.

func (*OpenStackServerSpecApplyConfiguration) WithAvailabilityZone

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

func (*OpenStackServerSpecApplyConfiguration) WithConfigDrive

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

func (*OpenStackServerSpecApplyConfiguration) WithFlavor

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

func (*OpenStackServerSpecApplyConfiguration) WithFlavorID

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

func (*OpenStackServerSpecApplyConfiguration) WithFloatingIPPoolRef

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

func (*OpenStackServerSpecApplyConfiguration) WithIdentityRef

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

func (*OpenStackServerSpecApplyConfiguration) WithImage

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

func (*OpenStackServerSpecApplyConfiguration) 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 (*OpenStackServerSpecApplyConfiguration) WithRootVolume

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

func (*OpenStackServerSpecApplyConfiguration) WithSSHKeyName

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

func (*OpenStackServerSpecApplyConfiguration) WithSchedulerHintAdditionalProperties

WithSchedulerHintAdditionalProperties adds the given value to the SchedulerHintAdditionalProperties 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 SchedulerHintAdditionalProperties field.

func (*OpenStackServerSpecApplyConfiguration) WithSecurityGroups

WithSecurityGroups adds the given value to the SecurityGroups 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 SecurityGroups field.

func (*OpenStackServerSpecApplyConfiguration) WithServerGroup

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

func (*OpenStackServerSpecApplyConfiguration) WithServerMetadata

WithServerMetadata adds the given value to the ServerMetadata 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 ServerMetadata field.

func (*OpenStackServerSpecApplyConfiguration) WithTags

WithTags adds the given value to the Tags 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 Tags field.

func (*OpenStackServerSpecApplyConfiguration) WithTrunk

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

func (*OpenStackServerSpecApplyConfiguration) WithUserDataRef

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

type OpenStackServerStatusApplyConfiguration

type OpenStackServerStatusApplyConfiguration struct {
	Ready         *bool                                 `json:"ready,omitempty"`
	InstanceID    *string                               `json:"instanceID,omitempty"`
	InstanceState *v1beta1.InstanceState                `json:"instanceState,omitempty"`
	Addresses     []v1.NodeAddress                      `json:"addresses,omitempty"`
	Resolved      *ResolvedServerSpecApplyConfiguration `json:"resolved,omitempty"`
	Resources     *ServerResourcesApplyConfiguration    `json:"resources,omitempty"`
	Conditions    *apiv1beta1.Conditions                `json:"conditions,omitempty"`
}

OpenStackServerStatusApplyConfiguration represents an declarative configuration of the OpenStackServerStatus type for use with apply.

func OpenStackServerStatus

func OpenStackServerStatus() *OpenStackServerStatusApplyConfiguration

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

func (*OpenStackServerStatusApplyConfiguration) WithAddresses

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 (*OpenStackServerStatusApplyConfiguration) 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 (*OpenStackServerStatusApplyConfiguration) WithInstanceID

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

func (*OpenStackServerStatusApplyConfiguration) WithInstanceState

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

func (*OpenStackServerStatusApplyConfiguration) 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 (*OpenStackServerStatusApplyConfiguration) WithResolved

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

func (*OpenStackServerStatusApplyConfiguration) WithResources

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

type ResolvedServerSpecApplyConfiguration

type ResolvedServerSpecApplyConfiguration struct {
	ServerGroupID *string                                      `json:"serverGroupID,omitempty"`
	ImageID       *string                                      `json:"imageID,omitempty"`
	FlavorID      *string                                      `json:"flavorID,omitempty"`
	Ports         []v1beta1.ResolvedPortSpecApplyConfiguration `json:"ports,omitempty"`
}

ResolvedServerSpecApplyConfiguration represents an declarative configuration of the ResolvedServerSpec type for use with apply.

func ResolvedServerSpec

func ResolvedServerSpec() *ResolvedServerSpecApplyConfiguration

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

func (*ResolvedServerSpecApplyConfiguration) WithFlavorID

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

func (*ResolvedServerSpecApplyConfiguration) WithImageID

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

func (*ResolvedServerSpecApplyConfiguration) 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 (*ResolvedServerSpecApplyConfiguration) WithServerGroupID

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

type ServerResourcesApplyConfiguration

type ServerResourcesApplyConfiguration struct {
	Ports []v1beta1.PortStatusApplyConfiguration `json:"ports,omitempty"`
}

ServerResourcesApplyConfiguration represents an declarative configuration of the ServerResources type for use with apply.

func ServerResources

func ServerResources() *ServerResourcesApplyConfiguration

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

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

Jump to

Keyboard shortcuts

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