Back to godoc.org
github.com/aliok/eventing / pkg / reconciler / apiserversource

Package apiserversource

v0.99.0
Latest Go to latest

The latest major version is .

Published: Jan 21, 2020 | License: Apache-2.0 | Module: github.com/aliok/eventing

Overview

Package apiserversource implements the ApiSource controller.

Index

Constants

const (
	// ReconcilerName is the name of the reconciler
	ReconcilerName = "ApiServerSources"
)

func GetCfgHost

func GetCfgHost(ctx context.Context) string

GetCfgHost extracts the k8s rest config host from the context.

func NewController

func NewController(
	ctx context.Context,
	cmw configmap.Watcher,
) *controller.Impl

NewController initializes the controller and is called by the generated code Registers event handlers to enqueue events

type HostKey

type HostKey struct{}

HostKey is used as the key for associating information with a context.Context.

type Reconciler

type Reconciler struct {
	*reconciler.Base
	// contains filtered or unexported fields
}

Reconciler reconciles a ApiServerSource object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the ApiServerSource resource with the current status of the resource.

func (*Reconciler) UpdateFromLoggingConfigMap

func (r *Reconciler) UpdateFromLoggingConfigMap(cfg *corev1.ConfigMap)

TODO determine how to push the updated logging config to existing data plane Pods.

func (*Reconciler) UpdateFromMetricsConfigMap

func (r *Reconciler) UpdateFromMetricsConfigMap(cfg *corev1.ConfigMap)

TODO determine how to push the updated metrics config to existing data plane Pods.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier