Documentation ¶
Index ¶
- func CreateOrUpdateEndpoints(eclient clientv1.EndpointsInterface, eps *v1.Endpoints) error
- func CreateOrUpdateService(sclient clientv1.ServiceInterface, svc *v1.Service) error
- func GetMinorVersion(dclient discovery.DiscoveryInterface) (int, error)
- func IsResourceNotFoundError(err error) bool
- func NewAlertmanagerCustomResourceDefinition(group string, labels map[string]string) *extensionsobj.CustomResourceDefinition
- func NewAlertmanagerTPRDefinition() *extensionsobjold.ThirdPartyResource
- func NewClusterConfig(host string, tlsInsecure bool, tlsConfig *rest.TLSClientConfig) (*rest.Config, error)
- func NewPrometheusCustomResourceDefinition(group string, labels map[string]string) *extensionsobj.CustomResourceDefinition
- func NewPrometheusTPRDefinition() *extensionsobjold.ThirdPartyResource
- func NewServiceMonitorCustomResourceDefinition(group string, labels map[string]string) *extensionsobj.CustomResourceDefinition
- func NewServiceMonitorTPRDefinition() *extensionsobjold.ThirdPartyResource
- func PodRunningAndReady(pod v1.Pod) (bool, error)
- func WaitForCRDReady(listFunc func(opts metav1.ListOptions) (runtime.Object, error)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateEndpoints ¶ added in v0.6.0
func CreateOrUpdateEndpoints(eclient clientv1.EndpointsInterface, eps *v1.Endpoints) error
func CreateOrUpdateService ¶ added in v0.6.0
func CreateOrUpdateService(sclient clientv1.ServiceInterface, svc *v1.Service) error
func GetMinorVersion ¶ added in v0.12.0
func GetMinorVersion(dclient discovery.DiscoveryInterface) (int, error)
GetMinorVersion returns the minor version as an integer
func IsResourceNotFoundError ¶
func NewAlertmanagerCustomResourceDefinition ¶ added in v0.12.0
func NewAlertmanagerCustomResourceDefinition(group string, labels map[string]string) *extensionsobj.CustomResourceDefinition
func NewAlertmanagerTPRDefinition ¶ added in v0.12.0
func NewAlertmanagerTPRDefinition() *extensionsobjold.ThirdPartyResource
func NewClusterConfig ¶
func NewPrometheusCustomResourceDefinition ¶ added in v0.12.0
func NewPrometheusCustomResourceDefinition(group string, labels map[string]string) *extensionsobj.CustomResourceDefinition
func NewPrometheusTPRDefinition ¶ added in v0.12.0
func NewPrometheusTPRDefinition() *extensionsobjold.ThirdPartyResource
func NewServiceMonitorCustomResourceDefinition ¶ added in v0.12.0
func NewServiceMonitorCustomResourceDefinition(group string, labels map[string]string) *extensionsobj.CustomResourceDefinition
func NewServiceMonitorTPRDefinition ¶ added in v0.12.0
func NewServiceMonitorTPRDefinition() *extensionsobjold.ThirdPartyResource
func PodRunningAndReady ¶
PodRunningAndReady returns whether a pod is running and each container has passed it's ready state.
func WaitForCRDReady ¶ added in v0.12.0
WaitForCRDReady waits for a third party resource to be available for use.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.