Documentation ¶
Index ¶
Constants ¶
const ( NameLabel = "app.kubernetes.io/name" InstanceLabel = "app.kubernetes.io/instance" VersionLabel = "app.kubernetes.io/version" ComponentLabel = "app.kubernetes.io/component" ManagedByLabel = "app.kubernetes.io/managed-by" BanzaiCloudManagedComponent = "banzaicloud.io/managed-component" BanzaiCloudOwnedBy = "banzaicloud.io/owned-by" BanzaiCloudRelatedTo = "banzaicloud.io/related-to" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerBase ¶
type ContainerBase struct { Resources *corev1.ResourceRequirements `json:"resources,omitempty"` Image string `json:"image,omitempty"` PullPolicy corev1.PullPolicy `json:"pullPolicy,omitempty"` Command []string `json:"command,omitempty"` VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` }
func (*ContainerBase) DeepCopy ¶
func (in *ContainerBase) DeepCopy() *ContainerBase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerBase.
func (*ContainerBase) DeepCopyInto ¶
func (in *ContainerBase) DeepCopyInto(out *ContainerBase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentSpecBase ¶ added in v0.15.3
type DeploymentSpecBase struct { Replicas *int32 `json:"replicas,omitempty"` Selector *metav1.LabelSelector `json:"selector"` Strategy *appsv1.DeploymentStrategy `json:"strategy,omitempty"` }
func (*DeploymentSpecBase) DeepCopy ¶ added in v0.15.3
func (in *DeploymentSpecBase) DeepCopy() *DeploymentSpecBase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpecBase.
func (*DeploymentSpecBase) DeepCopyInto ¶ added in v0.15.3
func (in *DeploymentSpecBase) DeepCopyInto(out *DeploymentSpecBase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeploymentSpecBase) Override ¶ added in v0.15.3
func (base *DeploymentSpecBase) Override(spec appsv1.DeploymentSpec) appsv1.DeploymentSpec
type MetaBase ¶
type MetaBase struct { Annotations map[string]string `json:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
func (*MetaBase) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaBase.
func (*MetaBase) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetaBase) Merge ¶
func (base *MetaBase) Merge(meta metav1.ObjectMeta) metav1.ObjectMeta
type PodSpecBase ¶
type PodSpecBase struct { Tolerations []corev1.Toleration `json:"tolerations,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` ServiceAccountName string `json:"serviceAccountName,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` Volumes []corev1.Volume `json:"volumes,omitempty"` PriorityClassName string `json:"priorityClassName,omitempty"` }
func (*PodSpecBase) DeepCopy ¶
func (in *PodSpecBase) DeepCopy() *PodSpecBase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpecBase.
func (*PodSpecBase) DeepCopyInto ¶
func (in *PodSpecBase) DeepCopyInto(out *PodSpecBase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReconcileStatus ¶ added in v0.11.0
type ReconcileStatus string
const ( // Used for components and for aggregated status ReconcileStatusFailed ReconcileStatus = "Failed" // Used for components and for aggregated status ReconcileStatusReconciling ReconcileStatus = "Reconciling" // Used for components ReconcileStatusAvailable ReconcileStatus = "Available" ReconcileStatusUnmanaged ReconcileStatus = "Unmanaged" ReconcileStatusRemoved ReconcileStatus = "Removed" // Used for aggregated status if all the components are stableized (Available, Unmanaged or Removed) ReconcileStatusSucceeded ReconcileStatus = "Succeeded" // Used to trigger reconciliation for a resource that otherwise ignores status changes, but listens to the Pending state // See PendingStatusPredicate in pkg/reconciler ReconcileStatusPending ReconcileStatus = "Pending" )
func AggregatedState ¶ added in v0.13.0
func AggregatedState(componentStatuses []ReconcileStatus) ReconcileStatus
Computes an aggregated state based on component statuses
func (ReconcileStatus) Available ¶ added in v0.11.0
func (s ReconcileStatus) Available() bool
func (ReconcileStatus) Failed ¶ added in v0.11.0
func (s ReconcileStatus) Failed() bool
func (ReconcileStatus) Pending ¶ added in v0.11.0
func (s ReconcileStatus) Pending() bool
func (ReconcileStatus) Stable ¶ added in v0.13.0
func (s ReconcileStatus) Stable() bool
type StatefulsetSpecBase ¶ added in v0.15.3
type StatefulsetSpecBase struct { Replicas *int32 `json:"replicas,omitempty"` Selector *metav1.LabelSelector `json:"selector"` PodManagementPolicy appsv1.PodManagementPolicyType `json:"podManagementPolicy,omitempty"` UpdateStrategy *appsv1.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"` }
func (*StatefulsetSpecBase) DeepCopy ¶ added in v0.15.3
func (in *StatefulsetSpecBase) DeepCopy() *StatefulsetSpecBase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulsetSpecBase.
func (*StatefulsetSpecBase) DeepCopyInto ¶ added in v0.15.3
func (in *StatefulsetSpecBase) DeepCopyInto(out *StatefulsetSpecBase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulsetSpecBase) Override ¶ added in v0.15.3
func (base *StatefulsetSpecBase) Override(spec appsv1.StatefulSetSpec) appsv1.StatefulSetSpec