Documentation ¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsInvalidExecution(err error) bool
- type ChartConfigResource
- type ChartConfigResourceConfig
- type OrphanConfigMap
- type OrphanConfigMapConfig
- type OrphanSecret
- type OrphanSecretConfig
- type Set
- type SetConfig
- type TillerMaxHistory
- type TillerMaxHistoryConfig
- type TillerReachable
- type TillerReachableConfig
- type TillerRunningPods
- type TillerRunningPodsConfig
Constants ¶
const (
Namespace = "chart_operator"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidExecution ¶
IsInvalidExecution asserts invalidExecutionError.
Types ¶
type ChartConfigResource ¶
type ChartConfigResource struct {
// contains filtered or unexported fields
}
ChartConfigResource is the main struct for this collector.
func NewChartConfigResource ¶
func NewChartConfigResource(config ChartConfigResourceConfig) (*ChartConfigResource, error)
NewChartConfigResource creates a new ChartConfigResource metrics collector.
func (*ChartConfigResource) Collect ¶
func (c *ChartConfigResource) Collect(ch chan<- prometheus.Metric) error
func (*ChartConfigResource) Describe ¶
func (a *ChartConfigResource) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type ChartConfigResourceConfig ¶
type ChartConfigResourceConfig struct { G8sClient versioned.Interface Logger micrologger.Logger }
ChartConfigResourceConfig is this collector's configuration struct.
type OrphanConfigMap ¶ added in v0.11.3
type OrphanConfigMap struct {
// contains filtered or unexported fields
}
func NewOrphanConfigMap ¶ added in v0.11.3
func NewOrphanConfigMap(config OrphanConfigMapConfig) (*OrphanConfigMap, error)
func (*OrphanConfigMap) Collect ¶ added in v0.11.3
func (oc *OrphanConfigMap) Collect(ch chan<- prometheus.Metric) error
func (*OrphanConfigMap) Describe ¶ added in v0.11.3
func (oc *OrphanConfigMap) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type OrphanConfigMapConfig ¶ added in v0.11.3
type OrphanConfigMapConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger }
type OrphanSecret ¶ added in v0.11.3
type OrphanSecret struct {
// contains filtered or unexported fields
}
func NewOrphanSecret ¶ added in v0.11.3
func NewOrphanSecret(config OrphanSecretConfig) (*OrphanSecret, error)
func (*OrphanSecret) Collect ¶ added in v0.11.3
func (oc *OrphanSecret) Collect(ch chan<- prometheus.Metric) error
func (*OrphanSecret) Describe ¶ added in v0.11.3
func (oc *OrphanSecret) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type OrphanSecretConfig ¶ added in v0.11.3
type OrphanSecretConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger }
type Set ¶
Set is basically only a wrapper for the operator's collector implementations. It eases the iniitialization and prevents some weird import mess so we do not have to alias packages.
type SetConfig ¶
type SetConfig struct { K8sClient k8sclient.Interface HelmClient *helmclient.Client Logger micrologger.Logger TillerNamespace string }
type TillerMaxHistory ¶
type TillerMaxHistory struct {
// contains filtered or unexported fields
}
TillerMaxHistory is the main struct for this collector.
func NewTillerMaxHistory ¶
func NewTillerMaxHistory(config TillerMaxHistoryConfig) (*TillerMaxHistory, error)
NewTillerMaxHistory creates a new TillerMaxHistory metrics collector.
func (*TillerMaxHistory) Collect ¶
func (t *TillerMaxHistory) Collect(ch chan<- prometheus.Metric) error
func (*TillerMaxHistory) Describe ¶
func (t *TillerMaxHistory) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type TillerMaxHistoryConfig ¶
type TillerMaxHistoryConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger TillerNamespace string }
TillerMaxHistoryConfig is this collector's configuration struct.
type TillerReachable ¶
type TillerReachable struct {
// contains filtered or unexported fields
}
TillerReachable is the main struct for this collector.
func NewTillerReachable ¶
func NewTillerReachable(config TillerReachableConfig) (*TillerReachable, error)
NewTillerReachable creates a new TillerReachable metrics collector.
func (*TillerReachable) Collect ¶
func (t *TillerReachable) Collect(ch chan<- prometheus.Metric) error
func (*TillerReachable) Describe ¶
func (t *TillerReachable) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type TillerReachableConfig ¶
type TillerReachableConfig struct { G8sClient versioned.Interface HelmClient helmclient.Interface Logger micrologger.Logger TillerNamespace string }
TillerReachableConfig is this collector's configuration struct.
type TillerRunningPods ¶ added in v0.11.0
type TillerRunningPods struct {
// contains filtered or unexported fields
}
TillerRunningPods is the main struct for this collector.
func NewTillerRunningPods ¶ added in v0.11.0
func NewTillerRunningPods(config TillerRunningPodsConfig) (*TillerRunningPods, error)
NewTillerRunningPods creates a new TillerRunningPods metrics collector.
func (*TillerRunningPods) Collect ¶ added in v0.11.0
func (t *TillerRunningPods) Collect(ch chan<- prometheus.Metric) error
func (*TillerRunningPods) Describe ¶ added in v0.11.0
func (t *TillerRunningPods) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type TillerRunningPodsConfig ¶ added in v0.11.0
type TillerRunningPodsConfig struct { G8sClient versioned.Interface HelmClient helmclient.Interface Logger micrologger.Logger TillerNamespace string }
TillerRunningPodsConfig is this collector's configuration struct.