Documentation
¶
Index ¶
- Constants
- func AddErrand(ctx context.Context, config *config.Config, mgr manager.Manager) error
- func AddJob(ctx context.Context, config *config.Config, mgr manager.Manager) error
- func NewErrandReconciler(ctx context.Context, config *config.Config, mgr manager.Manager, ...) reconcile.Reconciler
- func NewJobReconciler(ctx context.Context, config *config.Config, mgr manager.Manager, ...) (reconcile.Reconciler, error)
- type ErrandReconciler
- type JobCreator
- type PodLogGetter
- type PodLogGetterImpl
- type ReconcileJob
Constants ¶
const ( // EnvKubeAz is set by available zone name EnvKubeAz = "KUBE_AZ" // EnvBoshAz is set by available zone name EnvBoshAz = "BOSH_AZ" // EnvReplicas describes the number of replicas in the ExtendedStatefulSet EnvReplicas = "REPLICAS" // EnvCfOperatorAz is set by available zone name EnvCfOperatorAz = "CF_OPERATOR_AZ" // EnvCfOperatorAzIndex is set by available zone index EnvCfOperatorAzIndex = "AZ_INDEX" // EnvPodOrdinal is the pod's index EnvPodOrdinal = "POD_ORDINAL" )
Variables ¶
This section is empty.
Functions ¶
func AddErrand ¶
AddErrand creates a new ExtendedJob controller to start errands, when their trigger strategy matches 'now' or 'once', or their configuration changed.
func AddJob ¶
AddJob creates a new Job controller to collect the output from jobs, persist that output as a secret and delete the k8s job afterwards.
Types ¶
type ErrandReconciler ¶
type ErrandReconciler struct {
// contains filtered or unexported fields
}
ErrandReconciler implements the Reconciler interface.
type JobCreator ¶ added in v0.4.0
type JobCreator interface {
Create(ctx context.Context, eJob ejv1.ExtendedJob) (retry bool, err error)
}
JobCreator is the interface that wraps the basic Create method.
func NewJobCreator ¶ added in v0.4.0
func NewJobCreator(client crc.Client, scheme *runtime.Scheme, f setOwnerReferenceFunc, store vss.VersionedSecretStore) JobCreator
NewJobCreator returns a new job creator
type PodLogGetter ¶
PodLogGetter fetches the logs from a Pod
func NewPodLogGetter ¶
func NewPodLogGetter(client corev1client.CoreV1Interface) PodLogGetter
NewPodLogGetter returns an instance of a PodLogGetterImpl
type PodLogGetterImpl ¶
type PodLogGetterImpl struct {
// contains filtered or unexported fields
}
PodLogGetterImpl implements the PodLogGetter interface
func (*PodLogGetterImpl) Get ¶
func (p *PodLogGetterImpl) Get(namespace, podName, containerName string) ([]byte, error)
Get fetches the logs for the given pod
type ReconcileJob ¶
type ReconcileJob struct {
// contains filtered or unexported fields
}
ReconcileJob reconciles an Job object
func (*ReconcileJob) Reconcile ¶
Reconcile reads that state of the cluster for a Job object that is owned by an ExtendedJob and makes changes based on the state read and what is in the ExtendedJob.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
Source Files
¶
- errand_controller.go
- errand_reconciler.go
- job_controller.go
- job_creator.go
- job_reconciler.go
- pod_log_getter.go