Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHookFailed indicates a hook executed and failed. ErrHookFailed = errors.New("hook failed") // ErrHookInProgress indicates a hook is currently running. ErrHookInProgress = errors.New("hook in progress") )
Functions ¶
This section is empty.
Types ¶
type EnvironmentReconciler ¶
type EnvironmentReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder *events.Recorder
Router routing.Router
DatabaseProvider database.DatabaseProvider
ChangeDetector changeset.ChangeDetector
Notifier notifier.Notifier
StatusReporter notifier.StatusReporter
Deployer deployer.Deployer
TestRunner divtesting.TestRunner
AsyncProvisioner async.Provisioner
}
EnvironmentReconciler reconciles a Environment object
func (*EnvironmentReconciler) Reconcile ¶
func (r *EnvironmentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)
Reconcile performs its designated operation.
func (*EnvironmentReconciler) SetupWithManager ¶
func (r *EnvironmentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HookJobConfig ¶ added in v0.7.0
type HookJobConfig struct {
JobName string
Namespace string
Image string
Args []string
EnvVars []corev1.EnvVar
EnvFrom []corev1.EnvFromSource
Timeout int32
Owner metav1.Object
Labels map[string]string
}
HookJobConfig holds the parameters for creating a hook Job.
type PreviewGroupReconciler ¶
type PreviewGroupReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder *events.Recorder
Notifier notifier.PreviewGroupNotifier
StatusReporter notifier.StatusReporter
DatabaseProvider database.DatabaseProvider
EnableGAMMA bool // Enable GAMMA mesh routing (requires Istio Ambient)
}
PreviewGroupReconciler reconciles a PreviewGroup object. It acts as an "operator of operators", creating and managing child Environment CRs for each service in the group.
func (*PreviewGroupReconciler) Reconcile ¶
func (r *PreviewGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)
Reconcile performs its designated operation.
func (*PreviewGroupReconciler) SetupWithManager ¶
func (r *PreviewGroupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.