Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApplicationName = "korrel8r" ComponentName = "engine" ConfigKey = "korrel8r.yaml" // ConfigKey for the root configuration in ConfigMap.Data. ImageEnv = "KORREL8R_IMAGE" VerboseEnv = "KORREL8R_VERBOSE" ConditionTypeAvailable = "Available" ConditionTypeDegraded = "Degraded" ReasonReconciling = "Reconciling" ReasonReconciled = "Reconciled" // K8s recommended label names App = "app.kubernetes.io/" AppComponent = App + "component" AppInstance = App + "instance" AppName = App + "name" AppVersion = App + "version" )
Variables ¶
View Source
var ( // Static labels applied to all owned objects. CommonLabels = map[string]string{ AppName: ApplicationName, AppComponent: ComponentName, } )
Functions ¶
func AddToScheme ¶
AddToScheme adds all types needed by controllers.
func CacheOptions ¶
CacheOptions for the controller manager to limit watches objects in the korrel8r app.
Types ¶
type Korrel8rReconciler ¶
type Korrel8rReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder // contains filtered or unexported fields }
Korrel8rReconciler reconciles a Korrel8r object
func NewKorrel8rReconciler ¶
func NewKorrel8rReconciler(image string, c client.Client, s *runtime.Scheme, e record.EventRecorder) *Korrel8rReconciler
func (*Korrel8rReconciler) Reconcile ¶
func (r *Korrel8rReconciler) Reconcile(ctx context.Context, req reconcile.Request) (result reconcile.Result, err error)
Reconcile is the main reconcile loop
func (*Korrel8rReconciler) SetupWithManager ¶
func (r *Korrel8rReconciler) SetupWithManager(mgr manager.Manager) error
Click to show internal directories.
Click to hide internal directories.