Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the cloud-resources v1beta1 API group +kubebuilder:object:generate=true +groupName=cloud-resources.kyma-project.io
Index ¶
- Constants
- Variables
- type AwsNfsVolume
- type AwsNfsVolumeList
- type AwsNfsVolumeSpec
- type AwsNfsVolumeStatus
- type AwsPerformanceMode
- type AwsThroughputMode
- type CloudResources
- type CloudResourcesList
- type CloudResourcesSpec
- type CloudResourcesStatus
- type GcpFileTier
- type GcpNfsVolume
- type GcpNfsVolumeList
- type GcpNfsVolumeSpec
- type GcpNfsVolumeStatus
- type IpRange
- type IpRangeList
- type IpRangeRef
- type IpRangeSpec
- type IpRangeStatus
- type ModuleState
Constants ¶
const ( AwsPerformanceModeGeneralPurpose = AwsPerformanceMode("generalPurpose") AwsPerformanceModeBursting = AwsPerformanceMode("maxIO") )
const ( AwsThroughputModeBursting = AwsThroughputMode("bursting") AwsThroughputModeElastic = AwsThroughputMode("elastic") )
const ( ServedTrue = "True" ServedFalse = "False" )
const ( ConditionTypeSubmitted = "Submitted" ConditionReasonSubmissionSucceeded = "SubmissionSucceeded" ConditionReasonSubmissionFailed = "SubmissionFailed" )
const ( ConditionTypeReady = "Ready" ConditionReasonError = "Error" )
const ( ConditionTypeError = "Error" // ConditionReasonIpRangeNotFound used with ConditionTypeError in case IpRange specified in object does not exist ConditionReasonIpRangeNotFound = "IpRangeNotFound" )
const ( ConditionTypeDeleting = "Deleting" ConditionReasonDeletingPV = "DeletingPersistentVolume" ConditionReasonDeletingInstance = "DeletingInstance" )
const ( ConditionReasonCapacityInvalid = "CapacityGbInvalid" ConditionReasonIpRangeNotReady = "IpRangeNotReady" ConditionReasonTierInvalid = "TierInvalid" ConditionReasonPVNotReadyForDeletion = "PVNotReadyForDeletion" )
Additional error reasons
const ( STANDARD = GcpFileTier("STANDARD") PREMIUM = GcpFileTier("PREMIUM") BASIC_HDD = GcpFileTier("BASIC_HDD") BASIC_SSD = GcpFileTier("BASIC_SSD") HIGH_SCALE_SSD = GcpFileTier("HIGH_SCALE_SSD") ENTERPRISE = GcpFileTier("ENTERPRISE") ZONAL = GcpFileTier("ZONAL") REGIONAL = GcpFileTier("REGIONAL") )
const ( ConditionReasonInvalidCidr = "InvalidCidr" ConditionReasonCidrCanNotBeChanged = "CidrCanNotBeChanged" )
const ( LabelCloudManaged = "cloud-resources.kyma-project.io/managed" LabelId = "cloud-resources.kyma-project.io/id" LabelNfsVolName = "cloud-resources.kyma-project.io/nfsVolumeName" LabelNfsVolNS = "cloud-resources.kyma-project.io/nfsVolumeNamespace" )
const (
ConditionReasonOtherIsServed = "OtherIsServed"
)
const (
Finalizer = "cloud-resources.kyma-project.io/deletion-hook"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cloud-resources.kyma-project.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AwsNfsVolume ¶
type AwsNfsVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AwsNfsVolumeSpec `json:"spec,omitempty"` Status AwsNfsVolumeStatus `json:"status,omitempty"` }
AwsNfsVolume is the Schema for the awsnfsvolumes API
func (*AwsNfsVolume) Conditions ¶
func (in *AwsNfsVolume) Conditions() *[]metav1.Condition
func (*AwsNfsVolume) DeepCopy ¶
func (in *AwsNfsVolume) DeepCopy() *AwsNfsVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsNfsVolume.
func (*AwsNfsVolume) DeepCopyInto ¶
func (in *AwsNfsVolume) DeepCopyInto(out *AwsNfsVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AwsNfsVolume) DeepCopyObject ¶
func (in *AwsNfsVolume) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AwsNfsVolume) GetObjectMeta ¶
func (in *AwsNfsVolume) GetObjectMeta() *metav1.ObjectMeta
type AwsNfsVolumeList ¶
type AwsNfsVolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AwsNfsVolume `json:"items"` }
AwsNfsVolumeList contains a list of AwsNfsVolume
func (*AwsNfsVolumeList) DeepCopy ¶
func (in *AwsNfsVolumeList) DeepCopy() *AwsNfsVolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsNfsVolumeList.
func (*AwsNfsVolumeList) DeepCopyInto ¶
func (in *AwsNfsVolumeList) DeepCopyInto(out *AwsNfsVolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AwsNfsVolumeList) DeepCopyObject ¶
func (in *AwsNfsVolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AwsNfsVolumeSpec ¶
type AwsNfsVolumeSpec struct { // +kubebuilder:validation:Required IpRange IpRangeRef `json:"ipRange"` // +kubebuilder:validation:Required Capacity resource.Quantity `json:"capacity"` // +kubebuilder:default=generalPurpose PerformanceMode AwsPerformanceMode `json:"performanceMode,omitempty"` // +kubebuilder:default=bursting Throughput AwsThroughputMode `json:"throughput,omitempty"` }
AwsNfsVolumeSpec defines the desired state of AwsNfsVolume
func (*AwsNfsVolumeSpec) DeepCopy ¶
func (in *AwsNfsVolumeSpec) DeepCopy() *AwsNfsVolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsNfsVolumeSpec.
func (*AwsNfsVolumeSpec) DeepCopyInto ¶
func (in *AwsNfsVolumeSpec) DeepCopyInto(out *AwsNfsVolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsNfsVolumeStatus ¶
type AwsNfsVolumeStatus struct { // +optional Id string `json:"id,omitempty"` // +optional Server string `json:"server,omitempty" json:"server,omitempty"` // List of status conditions // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" json:"conditions,omitempty"` }
AwsNfsVolumeStatus defines the observed state of AwsNfsVolume
func (*AwsNfsVolumeStatus) DeepCopy ¶
func (in *AwsNfsVolumeStatus) DeepCopy() *AwsNfsVolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsNfsVolumeStatus.
func (*AwsNfsVolumeStatus) DeepCopyInto ¶
func (in *AwsNfsVolumeStatus) DeepCopyInto(out *AwsNfsVolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsPerformanceMode ¶
type AwsPerformanceMode string
+kubebuilder:validation:Enum=generalPurpose;maxIO
type AwsThroughputMode ¶
type AwsThroughputMode string
+kubebuilder:validation:Enum=bursting;elastic
type CloudResources ¶
type CloudResources struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudResourcesSpec `json:"spec,omitempty"` Status CloudResourcesStatus `json:"status,omitempty"` }
CloudResources is the Schema for the cloudresources API
func (*CloudResources) Conditions ¶
func (in *CloudResources) Conditions() *[]metav1.Condition
func (*CloudResources) DeepCopy ¶
func (in *CloudResources) DeepCopy() *CloudResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudResources.
func (*CloudResources) DeepCopyInto ¶
func (in *CloudResources) DeepCopyInto(out *CloudResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudResources) DeepCopyObject ¶
func (in *CloudResources) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudResources) GetObjectMeta ¶
func (in *CloudResources) GetObjectMeta() *metav1.ObjectMeta
type CloudResourcesList ¶
type CloudResourcesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CloudResources `json:"items"` }
CloudResourcesList contains a list of CloudResources
func (*CloudResourcesList) DeepCopy ¶
func (in *CloudResourcesList) DeepCopy() *CloudResourcesList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudResourcesList.
func (*CloudResourcesList) DeepCopyInto ¶
func (in *CloudResourcesList) DeepCopyInto(out *CloudResourcesList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudResourcesList) DeepCopyObject ¶
func (in *CloudResourcesList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudResourcesSpec ¶
type CloudResourcesSpec struct { // Foo is an example field of CloudResources. Edit cloudresources_types.go to remove/update Foo string `json:"foo,omitempty"` }
CloudResourcesSpec defines the desired state of CloudResources
func (*CloudResourcesSpec) DeepCopy ¶
func (in *CloudResourcesSpec) DeepCopy() *CloudResourcesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudResourcesSpec.
func (*CloudResourcesSpec) DeepCopyInto ¶
func (in *CloudResourcesSpec) DeepCopyInto(out *CloudResourcesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudResourcesStatus ¶
type CloudResourcesStatus struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=Deleting;Ready;Warning State ModuleState `json:"state,omitempty"` // +kubebuilder:validation:Enum=True;False Served string `json:"served,omitempty"` // List of status conditions // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" json:"conditions,omitempty"` }
CloudResourcesStatus defines the observed state of CloudResources
func (*CloudResourcesStatus) DeepCopy ¶
func (in *CloudResourcesStatus) DeepCopy() *CloudResourcesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudResourcesStatus.
func (*CloudResourcesStatus) DeepCopyInto ¶
func (in *CloudResourcesStatus) DeepCopyInto(out *CloudResourcesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GcpFileTier ¶
type GcpFileTier string
type GcpNfsVolume ¶
type GcpNfsVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GcpNfsVolumeSpec `json:"spec,omitempty"` Status GcpNfsVolumeStatus `json:"status,omitempty"` }
GcpNfsVolume is the Schema for the gcpnfsvolumes API
func (*GcpNfsVolume) Conditions ¶
func (in *GcpNfsVolume) Conditions() *[]metav1.Condition
func (*GcpNfsVolume) DeepCopy ¶
func (in *GcpNfsVolume) DeepCopy() *GcpNfsVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpNfsVolume.
func (*GcpNfsVolume) DeepCopyInto ¶
func (in *GcpNfsVolume) DeepCopyInto(out *GcpNfsVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GcpNfsVolume) DeepCopyObject ¶
func (in *GcpNfsVolume) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GcpNfsVolume) GetObjectMeta ¶
func (in *GcpNfsVolume) GetObjectMeta() *metav1.ObjectMeta
type GcpNfsVolumeList ¶
type GcpNfsVolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GcpNfsVolume `json:"items"` }
GcpNfsVolumeList contains a list of GcpNfsVolume
func (*GcpNfsVolumeList) DeepCopy ¶
func (in *GcpNfsVolumeList) DeepCopy() *GcpNfsVolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpNfsVolumeList.
func (*GcpNfsVolumeList) DeepCopyInto ¶
func (in *GcpNfsVolumeList) DeepCopyInto(out *GcpNfsVolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GcpNfsVolumeList) DeepCopyObject ¶
func (in *GcpNfsVolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GcpNfsVolumeSpec ¶
type GcpNfsVolumeSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:XValidation:rule=(self == oldSelf), message="IpRange is immutable." IpRange IpRangeRef `json:"ipRange"` // +kubebuilder:validation:Required // +kubebuilder:validation:XValidation:rule=(self == oldSelf), message="Location is immutable." Location string `json:"location"` // +kubebuilder:default=BASIC_HDD // +kubebuilder:validation:XValidation:rule=(self == oldSelf), message="Tier is immutable." Tier GcpFileTier `json:"tier"` // +kubebuilder:default=vol1 // +kubebuilder:validation:XValidation:rule=(self == oldSelf), message="FileShareName is immutable." FileShareName string `json:"fileShareName"` // +kubebuilder:default=2560 CapacityGb int `json:"capacityGb"` }
GcpNfsVolumeSpec defines the desired state of GcpNfsVolume
func (*GcpNfsVolumeSpec) DeepCopy ¶
func (in *GcpNfsVolumeSpec) DeepCopy() *GcpNfsVolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpNfsVolumeSpec.
func (*GcpNfsVolumeSpec) DeepCopyInto ¶
func (in *GcpNfsVolumeSpec) DeepCopyInto(out *GcpNfsVolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GcpNfsVolumeStatus ¶
type GcpNfsVolumeStatus struct { // +optional Id string `json:"id,omitempty"` //List of NFS Hosts (DNS Names or IP Addresses) that clients can use to connect // +optional Hosts []string `json:"hosts,omitempty"` // Capacity of the volume with Ready Condition // +optional CapacityGb int `json:"capacityGb"` // List of status conditions // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` }
GcpNfsVolumeStatus defines the observed state of GcpNfsVolume
func (*GcpNfsVolumeStatus) DeepCopy ¶
func (in *GcpNfsVolumeStatus) DeepCopy() *GcpNfsVolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpNfsVolumeStatus.
func (*GcpNfsVolumeStatus) DeepCopyInto ¶
func (in *GcpNfsVolumeStatus) DeepCopyInto(out *GcpNfsVolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IpRange ¶
type IpRange struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IpRangeSpec `json:"spec,omitempty"` Status IpRangeStatus `json:"status,omitempty"` }
IpRange is the Schema for the ipranges API
func (*IpRange) Conditions ¶
func (*IpRange) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRange.
func (*IpRange) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IpRange) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IpRange) GetObjectMeta ¶
func (in *IpRange) GetObjectMeta() *metav1.ObjectMeta
type IpRangeList ¶
type IpRangeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []IpRange `json:"items"` }
IpRangeList contains a list of IpRange
func (*IpRangeList) DeepCopy ¶
func (in *IpRangeList) DeepCopy() *IpRangeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRangeList.
func (*IpRangeList) DeepCopyInto ¶
func (in *IpRangeList) DeepCopyInto(out *IpRangeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IpRangeList) DeepCopyObject ¶
func (in *IpRangeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IpRangeRef ¶
type IpRangeRef struct { // +kubebuilder:validation:Required Name string `json:"name"` // +kubebuilder:validation:Required Namespace string `json:"namespace"` }
func (*IpRangeRef) DeepCopy ¶
func (in *IpRangeRef) DeepCopy() *IpRangeRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRangeRef.
func (*IpRangeRef) DeepCopyInto ¶
func (in *IpRangeRef) DeepCopyInto(out *IpRangeRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IpRangeRef) ObjKey ¶
func (in *IpRangeRef) ObjKey() types.NamespacedName
type IpRangeSpec ¶
type IpRangeSpec struct { // +kubebuilder:validation:Required Cidr string `json:"cidr"` }
IpRangeSpec defines the desired state of IpRange
func (*IpRangeSpec) DeepCopy ¶
func (in *IpRangeSpec) DeepCopy() *IpRangeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRangeSpec.
func (*IpRangeSpec) DeepCopyInto ¶
func (in *IpRangeSpec) DeepCopyInto(out *IpRangeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IpRangeStatus ¶
type IpRangeStatus struct { // +optional Cidr string `json:"cidr,omitempty"` // +optional Id string `json:"id,omitempty"` // List of status conditions // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` }
IpRangeStatus defines the observed state of IpRange
func (*IpRangeStatus) DeepCopy ¶
func (in *IpRangeStatus) DeepCopy() *IpRangeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRangeStatus.
func (*IpRangeStatus) DeepCopyInto ¶
func (in *IpRangeStatus) DeepCopyInto(out *IpRangeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModuleState ¶
type ModuleState string
+kubebuilder:validation:Enum=Deleting;Ready;Warning
const ( // StateReady signifies Module CR is Ready and has been installed successfully. StateReady ModuleState = "Ready" // StateDeleting signifies Module CR is being deleted. This is the state that is used // when a deletionTimestamp was detected and Finalizers are picked up. StateDeleting ModuleState = "Deleting" // StateWarning signifies specified resource has been deployed, but cannot be used due to misconfiguration, // usually it means that user interaction is required. StateWarning ModuleState = "Warning" )
Valid Module CR States.