Documentation ¶
Index ¶
- Variables
- func GetAppResourceFigures(ctx context.Context, client client.Client, o *crd.ClowdApp) (crd.AppResourceStatus, string, error)
- func GetAppResourceStatus(ctx context.Context, client client.Client, o *crd.ClowdApp) (bool, error)
- func GetEnvResourceFigures(ctx context.Context, client client.Client, o *crd.ClowdEnvironment) (crd.EnvResourceStatus, string, error)
- func GetEnvResourceStatus(ctx context.Context, client client.Client, o *crd.ClowdEnvironment) (bool, string, error)
- func GetJobsStatus(jobs *batchv1.JobList, cji *crd.ClowdJobInvocation) bool
- func ReadEnv() string
- func ReleaseEnv()
- func Run(metricsAddr string, probeAddr string, enableLeaderElection bool, ...)
- func SetAppResourceStatus(ctx context.Context, client client.Client, o *crd.ClowdApp) error
- func SetClowdAppConditions(ctx context.Context, client client.Client, o *crd.ClowdApp, ...) error
- func SetClowdEnvConditions(ctx context.Context, client client.Client, o *crd.ClowdEnvironment, ...) error
- func SetClowdJobInvocationConditions(ctx context.Context, client client.Client, o *crd.ClowdJobInvocation, ...) error
- func SetEnv(name string)
- func SetEnvResourceStatus(ctx context.Context, client client.Client, o *crd.ClowdEnvironment) error
- func UpdateInvokedJobStatus(ctx context.Context, jobs *batchv1.JobList, cji *crd.ClowdJobInvocation) error
- type ClowdAppReconciler
- type ClowdEnvironmentReconciler
- type ClowdJobInvocationReconciler
- func (r *ClowdJobInvocationReconciler) InvokeJob(ctx context.Context, cache *rc.ObjectCache, job *crd.Job, app *crd.ClowdApp, ...) error
- func (r *ClowdJobInvocationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ClowdJobInvocationReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ReconciliationMetrics
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() CacheConfig *rc.CacheConfig DebugOptions rc.DebugOptions ProtectedGVKs = make(map[schema.GroupVersionKind]bool) )
View Source
var ClowdJob = rc.NewMultiResourceIdent("cji", "clowdjob", &batchv1.Job{})
View Source
var IqeClowdJob = rc.NewSingleResourceIdent("cji", "iqe_clowdjob", &batchv1.Job{})
View Source
var IqeSecret = rc.NewSingleResourceIdent("cji", "iqe_secret", &core.Secret{})
View Source
var Version string
Functions ¶
func GetAppResourceFigures ¶ added in v0.21.0
func GetAppResourceStatus ¶ added in v0.21.0
func GetEnvResourceFigures ¶ added in v0.21.0
func GetEnvResourceFigures(ctx context.Context, client client.Client, o *crd.ClowdEnvironment) (crd.EnvResourceStatus, string, error)
func GetEnvResourceStatus ¶ added in v0.21.0
func GetJobsStatus ¶ added in v0.21.0
func GetJobsStatus(jobs *batchv1.JobList, cji *crd.ClowdJobInvocation) bool
func ReleaseEnv ¶ added in v0.19.0
func ReleaseEnv()
func Run ¶
func Run(metricsAddr string, probeAddr string, enableLeaderElection bool, config *rest.Config, signalHandler context.Context, enableWebHooks bool)
Run inits the manager and controllers and then starts the manager
func SetAppResourceStatus ¶ added in v0.21.0
SetAppResourceStatus the status on the passed ClowdObject interface.
func SetClowdAppConditions ¶
func SetClowdEnvConditions ¶
func SetClowdEnvConditions(ctx context.Context, client client.Client, o *crd.ClowdEnvironment, state clusterv1.ConditionType, err error) error
func SetClowdJobInvocationConditions ¶ added in v0.21.0
func SetClowdJobInvocationConditions(ctx context.Context, client client.Client, o *crd.ClowdJobInvocation, state clusterv1.ConditionType, err error) error
func SetEnvResourceStatus ¶ added in v0.21.0
SetEnvResourceStatus the status on the passed ClowdObject interface.
func UpdateInvokedJobStatus ¶ added in v0.21.0
Types ¶
type ClowdAppReconciler ¶
type ClowdAppReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder }
ClowdAppReconciler reconciles a ClowdApp object
func (*ClowdAppReconciler) SetupWithManager ¶
func (r *ClowdAppReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up with Manager
type ClowdEnvironmentReconciler ¶
type ClowdEnvironmentReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder }
ClowdEnvironmentReconciler reconciles a ClowdEnvironment object
func (*ClowdEnvironmentReconciler) Reconcile ¶
func (r *ClowdEnvironmentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile fn
func (*ClowdEnvironmentReconciler) SetupWithManager ¶
func (r *ClowdEnvironmentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up with manager
type ClowdJobInvocationReconciler ¶
type ClowdJobInvocationReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder }
ClowdJobInvocationReconciler reconciles a ClowdJobInvocation object
func (*ClowdJobInvocationReconciler) InvokeJob ¶
func (r *ClowdJobInvocationReconciler) InvokeJob(ctx context.Context, cache *rc.ObjectCache, job *crd.Job, app *crd.ClowdApp, env *crd.ClowdEnvironment, cji *crd.ClowdJobInvocation) error
InvokeJob is responsible for applying the Job. It also updates and reports the status of that job
func (*ClowdJobInvocationReconciler) Reconcile ¶
func (r *ClowdJobInvocationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile CJI Resources
func (*ClowdJobInvocationReconciler) SetupWithManager ¶
func (r *ClowdJobInvocationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the CJI with the main manager process
type ReconciliationMetrics ¶ added in v0.31.0
type ReconciliationMetrics struct {
// contains filtered or unexported fields
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
metrics/subscriptions
+kubebuilder:object:generate=true +groupName=operators.coreos.com
|
+kubebuilder:object:generate=true +groupName=operators.coreos.com |
Click to show internal directories.
Click to hide internal directories.