Documentation ¶
Index ¶
- type CloudProvider
- type ConfigMapRef
- type ConfigRef
- type CpuT
- type FsType
- type LocalObjectReference
- type ManagedResourceOutput
- type ManagedServiceOutput
- type MemoryT
- type MinMaxFloat
- type MinMaxInt
- type MsvcRef
- type NamespacedResourceRef
- type NodeSelectorAndTolerations
- type Output
- type Resources
- type SecretKeyRef
- type SecretRef
- type Storage
- type StorageSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider string
+kubebuilder:validation:Enum=aws;do;azure;gcp
const ( CloudProviderAWS CloudProvider = "aws" CloudProviderDigitalOcean CloudProvider = "digitalocean" CloudProviderAzure CloudProvider = "azure" CloudProviderGCP CloudProvider = "gcp" )
type ConfigMapRef ¶
type CpuT ¶
type CpuT struct { // +kubebuilder:validation:Pattern=[\d]+m$ Min string `json:"min"` // +kubebuilder:validation:Pattern=[\d]+m$ Max string `json:"max"` }
func (*CpuT) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CpuT.
func (*CpuT) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalObjectReference ¶ added in v1.1.0
type LocalObjectReference struct { // .metadata.name of the resource Name string `json:"name"` }
type ManagedResourceOutput ¶ added in v1.1.0
type ManagedResourceOutput struct { // refers to a k8s secret that exists in the same namespace as managed resource CredentialsRef LocalObjectReference `json:"credentialsRef"` }
type ManagedServiceOutput ¶ added in v1.1.0
type ManagedServiceOutput struct { // refers to a k8s secret that exists in the same namespace as managed service CredentialsRef LocalObjectReference `json:"credentialsRef"` }
type MinMaxFloat ¶
type MsvcRef ¶
type MsvcRef struct { metav1.TypeMeta `json:",inline"` Name string `json:"name"` Namespace string `json:"namespace"` }
+kubebuilder:object:generate=true
func (*MsvcRef) DeepCopy ¶ added in v1.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MsvcRef.
func (*MsvcRef) DeepCopyInto ¶ added in v1.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespacedResourceRef ¶ added in v1.1.0
type NodeSelectorAndTolerations ¶ added in v1.1.0
type NodeSelectorAndTolerations struct { NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
+kubebuilder:object:generate=true
func (*NodeSelectorAndTolerations) DeepCopy ¶ added in v1.1.0
func (in *NodeSelectorAndTolerations) DeepCopy() *NodeSelectorAndTolerations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectorAndTolerations.
func (*NodeSelectorAndTolerations) DeepCopyInto ¶ added in v1.1.0
func (in *NodeSelectorAndTolerations) DeepCopyInto(out *NodeSelectorAndTolerations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Output ¶
type Output struct { SecretRef *SecretRef `json:"secretRef,omitempty"` ConfigRef *ConfigRef `json:"configRef,omitempty"` }
func (*Output) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.
func (*Output) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resources ¶
type Resources struct { Cpu CpuT `json:"cpu"` Memory MemoryT `json:"memory"` Storage *Storage `json:"storage,omitempty"` }
func (*Resources) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretKeyRef ¶
type Storage ¶
type Storage struct { Size StorageSize `json:"size"` // +kubebuilder:validation:Optional StorageClass string `json:"storageClass,omitempty"` }
type StorageSize ¶ added in v1.1.0
type StorageSize string
+kubebuilder:validation:Pattern=[\d]+(M|G)i$
func (StorageSize) ToInt ¶ added in v1.1.0
func (s StorageSize) ToInt() (int64, error)