Documentation
¶
Index ¶
Constants ¶
View Source
const ( ComponentFinalizer = "castware.cast.ai/cleanup-helm" LabelDeleteCandidate = "castware.cast.ai/delete-candidate" )
Definitions to manage status conditions
Variables ¶
View Source
var ErrNothingToRollback = errors.New("nothing to rollback")
Functions ¶
func GetProvider ¶
func GetProvider(ctx context.Context, log logrus.FieldLogger, cluster *castwarev1alpha1.Cluster) (providers.Provider, error)
Types ¶
type ClusterReconciler ¶
type ClusterReconciler struct {
client.Client
Scheme *runtime.Scheme
Log logrus.FieldLogger
Config *config.Config
HelmClient helm.Client
ChartLoader helm.ChartLoader
Clientset kubernetes.Interface
RestConfig *rest.Config
}
ClusterReconciler reconciles a Cluster object
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ComponentReconciler ¶
type ComponentReconciler struct {
client.Client
Scheme *runtime.Scheme
Log logrus.FieldLogger
HelmClient helm.Client
Recorder record.EventRecorder
Config *config.Config
// contains filtered or unexported fields
}
ComponentReconciler reconciles a Component object
func (*ComponentReconciler) Reconcile ¶
func (r *ComponentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, retErr error)
nolint:gocyclo
func (*ComponentReconciler) SetupWithManager ¶
func (r *ComponentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.