Documentation ¶
Index ¶
- Variables
- type Framework
- func (f *Framework) AddAlertingToPrometheus(p *v1alpha1.Prometheus, name string)
- func (f *Framework) AlertmanagerConfigSecret(name string) (*v1.Secret, error)
- func (f *Framework) CreateAlertmanagerAndWaitUntilReady(a *v1alpha1.Alertmanager) error
- func (f *Framework) CreateDeployment(kclient kubernetes.Interface, ns string, deploy *v1beta1.Deployment) error
- func (f *Framework) CreateIngress(i *v1beta1.Ingress) error
- func (f *Framework) CreatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
- func (f *Framework) CreateServiceAndWaitUntilReady(service *v1.Service) error
- func (f *Framework) DeleteAlertmanagerAndWaitUntilGone(name string) error
- func (f *Framework) DeleteNginxIngressControllerIncDefaultBackend() error
- func (f *Framework) DeletePrometheusAndWaitUntilGone(name string) error
- func (f *Framework) DeleteService(serviceName string) error
- func (f *Framework) GetActiveTargets() ([]*Target, error)
- func (f *Framework) GetAlertmanagerConfig(n string) (alertmanagerStatus, error)
- func (f *Framework) GetIngressIP(ingressName string) (*string, error)
- func (f *Framework) GetLogs(podName, containerName string) (string, error)
- func (f *Framework) MakeAlertmanagerNodePortService(name, group string, nodePort int32) *v1.Service
- func (f *Framework) MakeAlertmanagerService(name, group string, serviceType v1.ServiceType) *v1.Service
- func (f *Framework) MakeBasicAlertmanager(name string, replicas int32) *v1alpha1.Alertmanager
- func (f *Framework) MakeBasicIngress(serviceName string, servicePort int) *v1beta1.Ingress
- func (f *Framework) MakeBasicPrometheus(name, group string, replicas int32) *v1alpha1.Prometheus
- func (f *Framework) MakeBasicPrometheusNodePortService(name, group string, nodePort int32) *v1.Service
- func (f *Framework) MakeBasicServiceMonitor(name string) *v1alpha1.ServiceMonitor
- func (f *Framework) MakePrometheusService(name, group string, serviceType v1.ServiceType) *v1.Service
- func (f *Framework) Poll(timeout, pollInterval time.Duration, pollFunc func() (bool, error)) error
- func (f *Framework) ProxyGetPod(podName string, port string, path string) *rest.Request
- func (f *Framework) SecretFromYaml(filepath string) (*v1.Secret, error)
- func (f *Framework) SetupNginxIngressControllerIncDefaultBackend() error
- func (f *Framework) Teardown() error
- func (f *Framework) UpdateAlertmanagerAndWaitUntilReady(a *v1alpha1.Alertmanager) error
- func (f *Framework) UpdatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
- func (f *Framework) WaitForAlertmanagerInitializedMesh(name string, amountPeers int) error
- func (f *Framework) WaitForHTTPSuccessStatusCode(timeout time.Duration, url string) error
- func (f *Framework) WaitForPodsReady(expectedReplicas int, opts metav1.ListOptions) error
- func (f *Framework) WaitForPodsRunImage(expectedReplicas int, image string, opts metav1.ListOptions) error
- func (f *Framework) WaitForPrometheusRunImageAndReady(p *v1alpha1.Prometheus) error
- func (f *Framework) WaitForServiceReady(serviceName string) error
- func (f *Framework) WaitForSpecificAlertmanagerConfig(amName string, expectedConfig string) error
- func (f *Framework) WaitForTargets(amount int) error
- type Target
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) AlertmanagerConfigSecret ¶ added in v0.7.0
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) CreateIngress ¶ added in v0.5.0
func (*Framework) CreatePrometheusAndWaitUntilReady ¶ added in v0.3.0
func (f *Framework) CreatePrometheusAndWaitUntilReady(p *v1alpha1.Prometheus) error
func (*Framework) CreateServiceAndWaitUntilReady ¶ added in v0.5.0
func (*Framework) DeleteAlertmanagerAndWaitUntilGone ¶ added in v0.3.0
func (*Framework) DeleteNginxIngressControllerIncDefaultBackend ¶ added in v0.5.0
func (*Framework) DeletePrometheusAndWaitUntilGone ¶ added in v0.3.0
func (*Framework) DeleteService ¶ added in v0.5.0
func (*Framework) GetActiveTargets ¶ added in v0.6.0
func (*Framework) GetAlertmanagerConfig ¶ added in v0.7.0
func (*Framework) GetIngressIP ¶ added in v0.6.0
func (*Framework) MakeAlertmanagerNodePortService ¶ added in v0.5.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) MakeBasicIngress ¶ added in v0.5.0
func (*Framework) MakeBasicPrometheus ¶ added in v0.3.0
func (f *Framework) MakeBasicPrometheus(name, group string, replicas int32) *v1alpha1.Prometheus
func (*Framework) MakeBasicPrometheusNodePortService ¶ added in v0.5.0
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) ProxyGetPod ¶ added in v0.7.0
func (*Framework) SecretFromYaml ¶ added in v0.7.0
func (*Framework) SetupNginxIngressControllerIncDefaultBackend ¶ added in v0.5.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
func (*Framework) WaitForAlertmanagerInitializedMesh ¶ added in v0.7.0
func (*Framework) WaitForHTTPSuccessStatusCode ¶ added in v0.5.0
func (*Framework) WaitForPodsReady ¶
func (f *Framework) WaitForPodsReady(expectedReplicas int, opts metav1.ListOptions) error
WaitForPodsReady waits for a selection of Pods to be running and each container to pass its readiness check.
func (*Framework) WaitForPodsRunImage ¶ added in v0.7.0
func (*Framework) WaitForPrometheusRunImageAndReady ¶ added in v0.7.0
func (f *Framework) WaitForPrometheusRunImageAndReady(p *v1alpha1.Prometheus) error
func (*Framework) WaitForServiceReady ¶ added in v0.5.0
func (*Framework) WaitForSpecificAlertmanagerConfig ¶ added in v0.7.0
func (*Framework) WaitForTargets ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.