v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=satellite.ibm.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: satellite.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterSpec   `json:"spec,omitempty"`
	Status            ClusterStatus `json:"status,omitempty"`
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cluster) DeepCopyObject

func (in *Cluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Cluster) SetupWebhookWithManager

func (r *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Cluster) ValidateCreate

func (r *Cluster) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateDelete

func (r *Cluster) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateUpdate

func (r *Cluster) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Cluster CRD objects
	Items []Cluster `json:"items,omitempty"`
}

ClusterList is a list of Clusters

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterList) DeepCopyObject

func (in *ClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterSpec

type ClusterSpec struct {
	State *ClusterSpecResource `json:"state,omitempty" tf:"-"`

	Resource ClusterSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSpecResource

type ClusterSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// CRN of resource instance
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// Labels on the default worker pool
	// +optional
	DefaultWorkerPoolLabels *map[string]string `json:"defaultWorkerPoolLabels,omitempty" tf:"default_worker_pool_labels"`
	// Boolean value true if Public service endpoint to be disabled
	// +optional
	DisablePublicServiceEndpoint *bool `json:"disablePublicServiceEndpoint,omitempty" tf:"disable_public_service_endpoint"`
	// Grant cluster admin access to Satellite Config to manage Kubernetes resources.
	// +optional
	EnableConfigAdmin *bool `json:"enableConfigAdmin,omitempty" tf:"enable_config_admin"`
	// Labels that describe a Satellite host for default workerpool
	// +optional
	HostLabels []string `json:"hostLabels,omitempty" tf:"host_labels"`
	// +optional
	IngressHostname *string `json:"ingressHostname,omitempty" tf:"ingress_hostname"`
	// +optional
	IngressSecret *string `json:"-" sensitive:"true" tf:"ingress_secret"`
	// The OpenShift Container Platform version
	// +optional
	KubeVersion *string `json:"kubeVersion,omitempty" tf:"kube_version"`
	// The name or ID of the Satellite location
	Location *string `json:"location" tf:"location"`
	// +optional
	MasterStatus *string `json:"masterStatus,omitempty" tf:"master_status"`
	// +optional
	MasterURL *string `json:"masterURL,omitempty" tf:"master_url"`
	// The unique name for the new IBM Cloud Satellite cluster
	Name *string `json:"name" tf:"name"`
	// Kubernetes patch version
	// +optional
	PatchVersion *string `json:"patchVersion,omitempty" tf:"patch_version"`
	// User provided value for the pod subnet
	// +optional
	PodSubnet *string `json:"podSubnet,omitempty" tf:"pod_subnet"`
	// +optional
	PrivateServiceEndpointEnabled *bool `json:"privateServiceEndpointEnabled,omitempty" tf:"private_service_endpoint_enabled"`
	// +optional
	PrivateServiceEndpointURL *string `json:"privateServiceEndpointURL,omitempty" tf:"private_service_endpoint_url"`
	// +optional
	PublicServiceEndpointEnabled *bool `json:"publicServiceEndpointEnabled,omitempty" tf:"public_service_endpoint_enabled"`
	// +optional
	PublicServiceEndpointURL *string `json:"publicServiceEndpointURL,omitempty" tf:"public_service_endpoint_url"`
	// The RedHat pull secret to create the OpenShift cluster
	// +optional
	PullSecret *string `json:"pullSecret,omitempty" tf:"pull_secret"`
	// ID of the resource group.
	// +optional
	ResourceGroupID *string `json:"resourceGroupID,omitempty" tf:"resource_group_id"`
	// The resource group name in which resource is provisioned
	// +optional
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name"`
	// Argument which helps to retry the patch version updates on worker nodes. Increment the value to retry the patch updates if the previous apply fails
	// +optional
	RetryPatchVersion *int64 `json:"retryPatchVersion,omitempty" tf:"retry_patch_version"`
	// User provided value for service subnet
	// +optional
	ServiceSubnet *string `json:"serviceSubnet,omitempty" tf:"service_subnet"`
	// The lifecycle state of the cluster.
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// List of tags for the resources
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// Wait for worker node to update during kube version update.
	// +optional
	WaitForWorkerUpdate *bool `json:"waitForWorkerUpdate,omitempty" tf:"wait_for_worker_update"`
	// The number of worker nodes per zone in the default worker pool. Required when '--host-label' is specified. (default: 0)
	// +optional
	WorkerCount *int64 `json:"workerCount,omitempty" tf:"worker_count"`
	// Zone info for worker pool
	// +optional
	Zones []ClusterSpecZones `json:"zones,omitempty" tf:"zones"`
}

func (*ClusterSpecResource) DeepCopy

func (in *ClusterSpecResource) DeepCopy() *ClusterSpecResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpecResource.

func (*ClusterSpecResource) DeepCopyInto

func (in *ClusterSpecResource) DeepCopyInto(out *ClusterSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSpecZones

type ClusterSpecZones struct {
	// Zone for the worker pool in a multizone cluster
	ID *string `json:"ID" tf:"id"`
}

func (*ClusterSpecZones) DeepCopy

func (in *ClusterSpecZones) DeepCopy() *ClusterSpecZones

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpecZones.

func (*ClusterSpecZones) DeepCopyInto

func (in *ClusterSpecZones) DeepCopyInto(out *ClusterSpecZones)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterStatus

type ClusterStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterWorkerPool

type ClusterWorkerPool struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterWorkerPoolSpec   `json:"spec,omitempty"`
	Status            ClusterWorkerPoolStatus `json:"status,omitempty"`
}

func (*ClusterWorkerPool) DeepCopy

func (in *ClusterWorkerPool) DeepCopy() *ClusterWorkerPool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkerPool.

func (*ClusterWorkerPool) DeepCopyInto

func (in *ClusterWorkerPool) DeepCopyInto(out *ClusterWorkerPool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterWorkerPool) DeepCopyObject

func (in *ClusterWorkerPool) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterWorkerPool) SetupWebhookWithManager

func (r *ClusterWorkerPool) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterWorkerPool) ValidateCreate

func (r *ClusterWorkerPool) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ClusterWorkerPool) ValidateDelete

func (r *ClusterWorkerPool) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ClusterWorkerPool) ValidateUpdate

func (r *ClusterWorkerPool) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterWorkerPoolList

type ClusterWorkerPoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of ClusterWorkerPool CRD objects
	Items []ClusterWorkerPool `json:"items,omitempty"`
}

ClusterWorkerPoolList is a list of ClusterWorkerPools

func (*ClusterWorkerPoolList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkerPoolList.

func (*ClusterWorkerPoolList) DeepCopyInto

func (in *ClusterWorkerPoolList) DeepCopyInto(out *ClusterWorkerPoolList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterWorkerPoolList) DeepCopyObject

func (in *ClusterWorkerPoolList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterWorkerPoolSpec

type ClusterWorkerPoolSpec struct {
	State *ClusterWorkerPoolSpecResource `json:"state,omitempty" tf:"-"`

	Resource ClusterWorkerPoolSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*ClusterWorkerPoolSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkerPoolSpec.

func (*ClusterWorkerPoolSpec) DeepCopyInto

func (in *ClusterWorkerPoolSpec) DeepCopyInto(out *ClusterWorkerPoolSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterWorkerPoolSpecResource

type ClusterWorkerPoolSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The unique name for the new IBM Cloud Satellite cluster
	Cluster *string `json:"cluster" tf:"cluster"`
	// Disk encryption for worker node
	// +optional
	DiskEncryption *bool `json:"diskEncryption,omitempty" tf:"disk_encryption"`
	// +optional
	Entitlement *string `json:"entitlement,omitempty" tf:"entitlement"`
	// The flavor defines the amount of virtual CPU, memory, and disk space that is set up in each worker node
	// +optional
	Flavor *string `json:"flavor,omitempty" tf:"flavor"`
	// Labels that describe a Satellite host
	// +optional
	HostLabels []string `json:"hostLabels,omitempty" tf:"host_labels"`
	// +optional
	Isolation *string `json:"isolation,omitempty" tf:"isolation"`
	// The name for the worker pool
	Name *string `json:"name" tf:"name"`
	// ID of the resource group.
	// +optional
	ResourceGroupID *string `json:"resourceGroupID,omitempty" tf:"resource_group_id"`
	// Specify the desired number of workers per zone in this worker pool
	// +optional
	WorkerCount *int64 `json:"workerCount,omitempty" tf:"worker_count"`
	// Labels on all the workers in the worker pool
	// +optional
	WorkerPoolLabels *map[string]string `json:"workerPoolLabels,omitempty" tf:"worker_pool_labels"`
	// Zone info for worker pool
	// +optional
	Zones []ClusterWorkerPoolSpecZones `json:"zones,omitempty" tf:"zones"`
}

func (*ClusterWorkerPoolSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkerPoolSpecResource.

func (*ClusterWorkerPoolSpecResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterWorkerPoolSpecZones

type ClusterWorkerPoolSpecZones struct {
	// Zone for the worker pool in a multizone cluster
	ID *string `json:"ID" tf:"id"`
}

func (*ClusterWorkerPoolSpecZones) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkerPoolSpecZones.

func (*ClusterWorkerPoolSpecZones) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterWorkerPoolStatus

type ClusterWorkerPoolStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*ClusterWorkerPoolStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkerPoolStatus.

func (*ClusterWorkerPoolStatus) DeepCopyInto

func (in *ClusterWorkerPoolStatus) DeepCopyInto(out *ClusterWorkerPoolStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Host

type Host struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              HostSpec   `json:"spec,omitempty"`
	Status            HostStatus `json:"status,omitempty"`
}

func (*Host) DeepCopy

func (in *Host) DeepCopy() *Host

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Host.

func (*Host) DeepCopyInto

func (in *Host) DeepCopyInto(out *Host)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Host) DeepCopyObject

func (in *Host) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Host) SetupWebhookWithManager

func (r *Host) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Host) ValidateCreate

func (r *Host) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Host) ValidateDelete

func (r *Host) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Host) ValidateUpdate

func (r *Host) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type HostList

type HostList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Host CRD objects
	Items []Host `json:"items,omitempty"`
}

HostList is a list of Hosts

func (*HostList) DeepCopy

func (in *HostList) DeepCopy() *HostList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostList.

func (*HostList) DeepCopyInto

func (in *HostList) DeepCopyInto(out *HostList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HostList) DeepCopyObject

func (in *HostList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HostSpec

type HostSpec struct {
	State *HostSpecResource `json:"state,omitempty" tf:"-"`

	Resource HostSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*HostSpec) DeepCopy

func (in *HostSpec) DeepCopy() *HostSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostSpec.

func (*HostSpec) DeepCopyInto

func (in *HostSpec) DeepCopyInto(out *HostSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostSpecResource

type HostSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The name or ID of a Satellite location or cluster to assign the host to
	// +optional
	Cluster *string `json:"cluster,omitempty" tf:"cluster"`
	// The specific host ID to assign to a Satellite location or cluster
	HostID *string `json:"hostID" tf:"host_id"`
	// Host Provider
	// +optional
	HostProvider *string `json:"hostProvider,omitempty" tf:"host_provider"`
	// Health status of the host
	// +optional
	HostState *string `json:"hostState,omitempty" tf:"host_state"`
	// List of labels for the host
	// +optional
	Labels []string `json:"labels,omitempty" tf:"labels"`
	// The name or ID of the Satellite location
	Location *string `json:"location" tf:"location"`
	// The name or ID of the worker pool within the cluster to assign the host to
	// +optional
	WorkerPool *string `json:"workerPool,omitempty" tf:"worker_pool"`
	// The zone within the cluster to assign the host to
	// +optional
	Zone *string `json:"zone,omitempty" tf:"zone"`
}

func (*HostSpecResource) DeepCopy

func (in *HostSpecResource) DeepCopy() *HostSpecResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostSpecResource.

func (*HostSpecResource) DeepCopyInto

func (in *HostSpecResource) DeepCopyInto(out *HostSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostStatus

type HostStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*HostStatus) DeepCopy

func (in *HostStatus) DeepCopy() *HostStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostStatus.

func (*HostStatus) DeepCopyInto

func (in *HostStatus) DeepCopyInto(out *HostStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Location

type Location struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LocationSpec   `json:"spec,omitempty"`
	Status            LocationStatus `json:"status,omitempty"`
}

func (*Location) DeepCopy

func (in *Location) DeepCopy() *Location

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Location.

func (*Location) DeepCopyInto

func (in *Location) DeepCopyInto(out *Location)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Location) DeepCopyObject

func (in *Location) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Location) SetupWebhookWithManager

func (r *Location) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Location) ValidateCreate

func (r *Location) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Location) ValidateDelete

func (r *Location) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Location) ValidateUpdate

func (r *Location) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type LocationList

type LocationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Location CRD objects
	Items []Location `json:"items,omitempty"`
}

LocationList is a list of Locations

func (*LocationList) DeepCopy

func (in *LocationList) DeepCopy() *LocationList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationList.

func (*LocationList) DeepCopyInto

func (in *LocationList) DeepCopyInto(out *LocationList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LocationList) DeepCopyObject

func (in *LocationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LocationSpec

type LocationSpec struct {
	State *LocationSpecResource `json:"state,omitempty" tf:"-"`

	Resource LocationSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*LocationSpec) DeepCopy

func (in *LocationSpec) DeepCopy() *LocationSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationSpec.

func (*LocationSpec) DeepCopyInto

func (in *LocationSpec) DeepCopyInto(out *LocationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LocationSpecCosConfig

type LocationSpecCosConfig struct {
	// +optional
	Bucket *string `json:"bucket,omitempty" tf:"bucket"`
	// +optional
	Endpoint *string `json:"endpoint,omitempty" tf:"endpoint"`
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
}

func (*LocationSpecCosConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationSpecCosConfig.

func (*LocationSpecCosConfig) DeepCopyInto

func (in *LocationSpecCosConfig) DeepCopyInto(out *LocationSpecCosConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LocationSpecCosConfigCodec

type LocationSpecCosConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (LocationSpecCosConfigCodec) Decode

func (LocationSpecCosConfigCodec) Encode

func (LocationSpecCosConfigCodec) IsEmpty

type LocationSpecCosCredentials

type LocationSpecCosCredentials struct {
	// The HMAC secret access key ID
	// +optional
	AccessKeyID *string `json:"accessKeyID,omitempty" tf:"access_key_id"`
	// The HMAC secret access key
	// +optional
	SecretAccessKey *string `json:"secretAccessKey,omitempty" tf:"secret_access_key"`
}

func (*LocationSpecCosCredentials) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationSpecCosCredentials.

func (*LocationSpecCosCredentials) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LocationSpecCosCredentialsCodec

type LocationSpecCosCredentialsCodec struct {
}

+k8s:deepcopy-gen=false

func (LocationSpecCosCredentialsCodec) Decode

func (LocationSpecCosCredentialsCodec) Encode

func (LocationSpecCosCredentialsCodec) IsEmpty

type LocationSpecResource

type LocationSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// COSBucket - IBM Cloud Object Storage bucket configuration details
	// +optional
	CosConfig *LocationSpecCosConfig `json:"cosConfig,omitempty" tf:"cos_config"`
	// COSAuthorization - IBM Cloud Object Storage authorization keys
	// +optional
	CosCredentials *LocationSpecCosCredentials `json:"cosCredentials,omitempty" tf:"cos_credentials"`
	// Created Date
	// +optional
	CreatedOn *string `json:"createdOn,omitempty" tf:"created_on"`
	// Location CRN
	// +optional
	Crn *string `json:"crn,omitempty" tf:"crn"`
	// A description of the new Satellite location
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// The total number of hosts that are attached to the Satellite location.
	// +optional
	HostAttachedCount *int64 `json:"hostAttachedCount,omitempty" tf:"host_attached_count"`
	// The available number of hosts that can be assigned to a cluster resource in the Satellite location.
	// +optional
	HostAvailableCount *int64 `json:"hostAvailableCount,omitempty" tf:"host_available_count"`
	// +optional
	IngressHostname *string `json:"ingressHostname,omitempty" tf:"ingress_hostname"`
	// +optional
	IngressSecret *string `json:"-" sensitive:"true" tf:"ingress_secret"`
	// A unique name for the new Satellite location
	Location *string `json:"location" tf:"location"`
	// The account ID for IBM Log Analysis with LogDNA log forwarding
	// +optional
	LoggingAccountID *string `json:"loggingAccountID,omitempty" tf:"logging_account_id"`
	// The IBM Cloud metro from which the Satellite location is managed
	ManagedFrom *string `json:"managedFrom" tf:"managed_from"`
	// ID of the resource group.
	// +optional
	ResourceGroupID *string `json:"resourceGroupID,omitempty" tf:"resource_group_id"`
	// Name of the resource group
	// +optional
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name"`
	// List of tags associated with resource instance
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// The names of at least three high availability zones to use for the location
	// +optional
	Zones []string `json:"zones,omitempty" tf:"zones"`
}

func (*LocationSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationSpecResource.

func (*LocationSpecResource) DeepCopyInto

func (in *LocationSpecResource) DeepCopyInto(out *LocationSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LocationStatus

type LocationStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*LocationStatus) DeepCopy

func (in *LocationStatus) DeepCopy() *LocationStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocationStatus.

func (*LocationStatus) DeepCopyInto

func (in *LocationStatus) DeepCopyInto(out *LocationStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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