Documentation ¶
Index ¶
- Variables
- type Framework
- func (f *Framework) AddAlertingToPrometheus(p *v1alpha1.Prometheus, name string)
- func (f *Framework) CreateAlertmanagerAndWaitUntilReady(a *v1alpha1.Alertmanager) error
- func (f *Framework) CreateDeployment(kclient kubernetes.Interface, ns string, deploy *v1beta1.Deployment) error
- func (f *Framework) CreatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
- func (f *Framework) DeleteAlertmanagerAndWaitUntilGone(name string) error
- func (f *Framework) DeletePrometheusAndWaitUntilGone(name string) error
- func (f *Framework) GetLogs(podName, containerName string) (string, error)
- func (f *Framework) MakeAlertmanagerService(name, group string) *v1.Service
- func (f *Framework) MakeBasicAlertmanager(name string, replicas int32) *v1alpha1.Alertmanager
- func (f *Framework) MakeBasicPrometheus(name, group string, replicas int32) *v1alpha1.Prometheus
- func (f *Framework) MakeBasicServiceMonitor(name string) *v1alpha1.ServiceMonitor
- func (f *Framework) MakePrometheusService(name, group string) *v1.Service
- func (f *Framework) Teardown() error
- func (f *Framework) UpdateAlertmanagerAndWaitUntilReady(a *v1alpha1.Alertmanager) error
- func (f *Framework) UpdatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
- func (f *Framework) WaitForPodsReady(timeout time.Duration, expectedReplicas int, image string, ...) (*v1.PodList, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidAlertmanagerConfig = `` /* 229-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Framework ¶
type Framework struct { KubeClient kubernetes.Interface MonClient *v1alpha1.MonitoringV1alpha1Client HTTPClient *http.Client MasterHost string Namespace *v1.Namespace OperatorPod *v1.Pod ClusterIP string }
func (*Framework) AddAlertingToPrometheus ¶ added in v0.3.0
func (f *Framework) AddAlertingToPrometheus(p *v1alpha1.Prometheus, name string)
func (*Framework) CreateAlertmanagerAndWaitUntilReady ¶ added in v0.3.0
func (f *Framework) CreateAlertmanagerAndWaitUntilReady(a *v1alpha1.Alertmanager) error
func (*Framework) CreateDeployment ¶
func (f *Framework) CreateDeployment(kclient kubernetes.Interface, ns string, deploy *v1beta1.Deployment) error
func (*Framework) CreatePrometheusAndWaitUntilReady ¶ added in v0.3.0
func (f *Framework) CreatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
func (*Framework) DeleteAlertmanagerAndWaitUntilGone ¶ added in v0.3.0
func (*Framework) DeletePrometheusAndWaitUntilGone ¶ added in v0.3.0
func (*Framework) MakeAlertmanagerService ¶ added in v0.3.0
func (*Framework) MakeBasicAlertmanager ¶ added in v0.3.0
func (f *Framework) MakeBasicAlertmanager(name string, replicas int32) *v1alpha1.Alertmanager
func (*Framework) MakeBasicPrometheus ¶ added in v0.3.0
func (f *Framework) MakeBasicPrometheus(name, group string, replicas int32) *v1alpha1.Prometheus
func (*Framework) MakeBasicServiceMonitor ¶ added in v0.3.0
func (f *Framework) MakeBasicServiceMonitor(name string) *v1alpha1.ServiceMonitor
func (*Framework) MakePrometheusService ¶ added in v0.3.0
func (*Framework) UpdateAlertmanagerAndWaitUntilReady ¶ added in v0.3.0
func (f *Framework) UpdateAlertmanagerAndWaitUntilReady(a *v1alpha1.Alertmanager) error
func (*Framework) UpdatePrometheusAndWaitUntilReady ¶ added in v0.3.0
func (f *Framework) UpdatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
Click to show internal directories.
Click to hide internal directories.