Documentation ¶
Index ¶
Constants ¶
const ( // LabelSubscriptionName is the label for immutable name of the name LabelSubscriptionName = "name" // LabelNamespaceName is the label for immutable name of the namespace LabelNamespaceName = "subscription_ns" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController returns a new controller that reconciles Subscriptions objects.
Types ¶
type KnativeChannelReportArgs ¶
KnativeChannelReportArgs Knative Channel Report Args
func NewKnativeChannelReportArgs ¶
func NewKnativeChannelReportArgs(name string, ready bool) *KnativeChannelReportArgs
NewKnativeChannelReportArgs constructs a NewKnativeChannelReportArgs
type KnativeSubscriptionReportArgs ¶
KnativeSubscriptionReportArgs Knative Subscription Report Args
func NewKnativeSubscriptionReportArgs ¶
func NewKnativeSubscriptionReportArgs(namespace string, name string, ready bool) *KnativeSubscriptionReportArgs
NewKnativeSubscriptionReportArgs constructs a NewKnativeSubscriptionReportArgs
type KymaSubscriptionReportArgs ¶
KymaSubscriptionReportArgs Kyma Subscription Report Args
func NewKymaSubscriptionReportArgs ¶
func NewKymaSubscriptionReportArgs(namespace string, name string, ready bool) *KymaSubscriptionReportArgs
NewKymaSubscriptionReportArgs constructs a kymaSubscriptionReportArgs
type Reconciler ¶
type Reconciler struct { // wrapper for core controller components (clients, logger, ...) *reconciler.Base StatsReporter StatsReporter // contains filtered or unexported fields }
Reconciler Kyma subscriptions reconciler
type StatsReporter ¶
type StatsReporter interface { // ReportKymaSubscriptionGauge captures the kyma subscription count. ReportKymaSubscriptionGauge(args *KymaSubscriptionReportArgs) error // ReportKnativeSubscriptionGauge captures the knative subscription count. ReportKnativeSubscriptionGauge(args *KnativeSubscriptionReportArgs) error // ReportKnativeChannelGauge captures the knative channel count. ReportKnativeChannelGauge(args *KnativeChannelReportArgs) error }
StatsReporter defines the interface for sending Kyma Subscription Controller metrics.
func NewStatsReporter ¶
func NewStatsReporter() (StatsReporter, error)
NewStatsReporter creates a reporter that collects and reports source metrics.