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 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 v1.ObjectMeta) v1.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