Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the demo v1 API group +kubebuilder:object:generate=true +groupName=storage.openloft.cn
Index ¶
- Variables
- type ClusterDomain
- type ClusterDomainList
- type ClusterDomainSpec
- type ClusterDomainStatus
- type Condition
- type ConditionSeverity
- type ConditionType
- type Conditions
- type CoreDNS
- type CoreDNSPluginConfig
- type Ingress
- type Ingresses
- type Isolation
- type NodeProxyPermission
- type Nodes
- type ResourceQuota
- type Service
- type Sync
- type Syncer
- type VCluster
- type VirtualCluster
- type VirtualClusterList
- type VirtualClusterSpec
- type VirtualClusterStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "storage.openloft.cn", Version: "v1"} // 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 ClusterDomain ¶
type ClusterDomain struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterDomainSpec `json:"spec,omitempty"` Status ClusterDomainStatus `json:"status,omitempty"` }
ClusterDomain is the Schema for the clusterdomains API
func (*ClusterDomain) DeepCopy ¶
func (in *ClusterDomain) DeepCopy() *ClusterDomain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomain.
func (*ClusterDomain) DeepCopyInto ¶
func (in *ClusterDomain) DeepCopyInto(out *ClusterDomain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDomain) DeepCopyObject ¶
func (in *ClusterDomain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDomainList ¶
type ClusterDomainList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterDomain `json:"items"` }
ClusterDomainList contains a list of ClusterDomain
func (*ClusterDomainList) DeepCopy ¶
func (in *ClusterDomainList) DeepCopy() *ClusterDomainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainList.
func (*ClusterDomainList) DeepCopyInto ¶
func (in *ClusterDomainList) DeepCopyInto(out *ClusterDomainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDomainList) DeepCopyObject ¶
func (in *ClusterDomainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDomainSpec ¶
type ClusterDomainSpec struct {
Domain string `json:"domain,omitempty"`
}
ClusterDomainSpec defines the desired state of ClusterDomain
func (*ClusterDomainSpec) DeepCopy ¶
func (in *ClusterDomainSpec) DeepCopy() *ClusterDomainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainSpec.
func (*ClusterDomainSpec) DeepCopyInto ¶
func (in *ClusterDomainSpec) DeepCopyInto(out *ClusterDomainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDomainStatus ¶
type ClusterDomainStatus struct { }
ClusterDomainStatus defines the observed state of ClusterDomain
func (*ClusterDomainStatus) DeepCopy ¶
func (in *ClusterDomainStatus) DeepCopy() *ClusterDomainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainStatus.
func (*ClusterDomainStatus) DeepCopyInto ¶
func (in *ClusterDomainStatus) DeepCopyInto(out *ClusterDomainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { // Type of condition in CamelCase or in foo.example.com/CamelCase. // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions // can be useful (see .node.status.conditions), the ability to deconflict is important. // +required Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. // +required Status corev1.ConditionStatus `json:"status"` // Severity provides an explicit classification of Reason code, so the users or machines can immediately // understand the current situation and act accordingly. // The Severity field MUST be set only when Status=False. // +optional Severity ConditionSeverity `json:"severity,omitempty"` // Last time the condition transitioned from one status to another. // This should be when the underlying condition changed. If that is not known, then using the time when // the API field changed is acceptable. // +required LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition in CamelCase. // The specific API may choose whether this field is considered a guaranteed API. // This field may not be empty. // +optional Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. // This field may be empty. // +optional Message string `json:"message,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionSeverity ¶
type ConditionSeverity string
ConditionSeverity expresses the severity of a Condition Type failing.
const ( // ConditionSeverityError specifies that a condition with `Status=False` is an error. ConditionSeverityError ConditionSeverity = "Error" // ConditionSeverityWarning specifies that a condition with `Status=False` is a warning. ConditionSeverityWarning ConditionSeverity = "Warning" // ConditionSeverityInfo specifies that a condition with `Status=False` is informative. ConditionSeverityInfo ConditionSeverity = "Info" // ConditionSeverityNone should apply only to conditions with `Status=True`. ConditionSeverityNone ConditionSeverity = "" )
type ConditionType ¶
type ConditionType string
ConditionType is a valid value for Condition.Type.
const ( // InitializedCondition defines the helm chart initialized condition type that defines if the helm chart was initialized correctly. InitializedCondition ConditionType = "Initialized" // DeployedCondition defines the helm chart deployed condition type that defines if the helm chart was deployed correctly. DeployedCondition ConditionType = "Deployed" )
type Conditions ¶
type Conditions []Condition
Conditions is an array of conditions
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CoreDNS ¶
type CoreDNS struct { Enabled bool `json:"enabled,omitempty"` Integrated bool `json:"integrated,omitempty"` Plugin *CoreDNSPluginConfig `json:"plugin,omitempty"` PodAnnotations map[string]string `json:"podAnnotations,omitempty"` PodLabels map[string]string `json:"podLabels,omitempty"` Replicas int `json:"replicas,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` }
CoreDNS defines the configuration for CoreDNS
func (*CoreDNS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreDNS.
func (*CoreDNS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CoreDNSPluginConfig ¶
type CoreDNSPluginConfig struct {
Enabled bool `json:"enabled,omitempty"`
}
CoreDNSPluginConfig defines the configuration for CoreDNS plugins
func (*CoreDNSPluginConfig) DeepCopy ¶
func (in *CoreDNSPluginConfig) DeepCopy() *CoreDNSPluginConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreDNSPluginConfig.
func (*CoreDNSPluginConfig) DeepCopyInto ¶
func (in *CoreDNSPluginConfig) DeepCopyInto(out *CoreDNSPluginConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ingress ¶
type Ingress struct { Enabled bool `json:"enabled,omitempty"` PathType networkingv1.PathType `json:"pathType,omitempty"` APIVersion string `json:"apiVersion,omitempty"` IngressClassName *string `json:"ingressClassName,omitempty"` Host string `json:"host,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` TLS []networkingv1.IngressTLS `json:"tls,omitempty"` }
Ingress defines the configuration for ingress
func (*Ingress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
func (*Ingress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ingresses ¶
type Ingresses struct {
Enabled bool `json:"enabled,omitempty"`
}
Ingresses defines the configuration for ingress
func (*Ingresses) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingresses.
func (*Ingresses) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Isolation ¶
type Isolation struct { Enabled bool `json:"enabled,omitempty"` Namespace *string `json:"namespace,omitempty"` //+kubebuilder:validation:Enum=privileged;baseline;restricted PodSecurityStandard *string `json:"podSecurityStandard,omitempty"` NodeProxyPermission *NodeProxyPermission `json:"nodeProxyPermission,omitempty"` ResourceQuota *ResourceQuota `json:"resourceQuota,omitempty"` }
Isolation defines the configuration for isolation
func (*Isolation) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Isolation.
func (*Isolation) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeProxyPermission ¶
type NodeProxyPermission struct {
Enabled bool `json:"enabled,omitempty"`
}
func (*NodeProxyPermission) DeepCopy ¶
func (in *NodeProxyPermission) DeepCopy() *NodeProxyPermission
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProxyPermission.
func (*NodeProxyPermission) DeepCopyInto ¶
func (in *NodeProxyPermission) DeepCopyInto(out *NodeProxyPermission)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Nodes ¶
type Nodes struct { // Enabled controls whether the nodes are Fake or Real Enabled bool `json:"enabled,omitempty"` NodeSelector string `json:"nodeSelector,omitempty"` }
func (*Nodes) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nodes.
func (*Nodes) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceQuota ¶
type ResourceQuota struct { Enabled bool `json:"enabled,omitempty"` Quota corev1.ResourceList `json:"quota,omitempty"` ScopeSelector *corev1.ScopeSelector `json:"scopeSelector,omitempty"` Scopes []corev1.ResourceQuotaScope `json:"scopes,omitempty"` }
func (*ResourceQuota) DeepCopy ¶
func (in *ResourceQuota) DeepCopy() *ResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuota.
func (*ResourceQuota) DeepCopyInto ¶
func (in *ResourceQuota) DeepCopyInto(out *ResourceQuota)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
type Service struct { //+kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer;ExternalName Type corev1.ServiceType `json:"type,omitempty"` ExternalIPs []string `json:"externalIPs,omitempty"` //+kubebuilder:validation:Enum=Local;Cluster ExternalTrafficPolicy corev1.ServiceExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty"` LoadBalancerIP string `json:"loadBalancerIP,omitempty"` LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"` LoadBalancerClass *string `json:"loadBalancerClass,omitempty"` }
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sync ¶
type Sync struct { Ingresses *Ingresses `json:"ingresses,omitempty"` Nodes *Nodes `json:"nodes,omitempty"` }
Sync defines the configuration for sync
func (*Sync) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sync.
func (*Sync) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Syncer ¶
type Syncer struct { ExtraArgs []string `json:"extraArgs,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` }
func (*Syncer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Syncer.
func (*Syncer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VCluster ¶
type VCluster struct { // XXX: Supported K3s versions are 1.25, 1.26, 1.27 and 1.28 // See available images at https://github.com/loft-sh/vcluster/blob/main/pkg/values/k3s.go#L12 Image string `json:"image,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` }
VCluster defines the configuration for vCluster
func (*VCluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCluster.
func (*VCluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualCluster ¶
type VirtualCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualClusterSpec `json:"spec,omitempty"` Status VirtualClusterStatus `json:"status,omitempty"` }
VirtualCluster is the Schema for the virtualclusters API
func (*VirtualCluster) DeepCopy ¶
func (in *VirtualCluster) DeepCopy() *VirtualCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualCluster.
func (*VirtualCluster) DeepCopyInto ¶
func (in *VirtualCluster) DeepCopyInto(out *VirtualCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualCluster) DeepCopyObject ¶
func (in *VirtualCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualClusterList ¶
type VirtualClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualCluster `json:"items"` }
VirtualClusterList contains a list of VirtualCluster
func (*VirtualClusterList) DeepCopy ¶
func (in *VirtualClusterList) DeepCopy() *VirtualClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterList.
func (*VirtualClusterList) DeepCopyInto ¶
func (in *VirtualClusterList) DeepCopyInto(out *VirtualClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualClusterList) DeepCopyObject ¶
func (in *VirtualClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualClusterSpec ¶
type VirtualClusterSpec struct { Affinity *corev1.Affinity `json:"affinity,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` CoreDNS *CoreDNS `json:"coredns,omitempty"` Isolation *Isolation `json:"isolation,omitempty"` Sync *Sync `json:"sync,omitempty"` Syncer *Syncer `json:"syncer,omitempty"` Service *Service `json:"service,omitempty"` Ingress *Ingress `json:"ingress,omitempty"` VCluster *VCluster `json:"vcluster,omitempty"` }
VirtualClusterSpec defines the desired state of VirtualCluster
func (*VirtualClusterSpec) DeepCopy ¶
func (in *VirtualClusterSpec) DeepCopy() *VirtualClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSpec.
func (*VirtualClusterSpec) DeepCopyInto ¶
func (in *VirtualClusterSpec) DeepCopyInto(out *VirtualClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualClusterStatus ¶
type VirtualClusterStatus struct { // Conditions holds several conditions the vcluster might be in // +optional Conditions Conditions `json:"conditions,omitempty"` }
VirtualClusterStatus defines the observed state of VirtualCluster
func (*VirtualClusterStatus) DeepCopy ¶
func (in *VirtualClusterStatus) DeepCopy() *VirtualClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStatus.
func (*VirtualClusterStatus) DeepCopyInto ¶
func (in *VirtualClusterStatus) DeepCopyInto(out *VirtualClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.