k8s

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(logr logr.Logger, client client_go.Client, factory v1alpha1.ChannelFactory) *Client

func (*Client) DeleteChannel

func (c *Client) DeleteChannel(channel v1alpha1.NotificationChannel) error

func (*Client) GetChannel

func (*Client) GetChannels

func (c *Client) GetChannels() (v1alpha1.NotificationChannelList, error)

func (*Client) GetPolicies

func (c *Client) GetPolicies(channel v1alpha1.NotificationChannel) (v1alpha1.AlertPolicyList, error)

func (*Client) SetFinalizer

func (c *Client) SetFinalizer(channel v1alpha1.NotificationChannel) error

func (*Client) UpdateChannelStatus

func (c *Client) UpdateChannelStatus(channel v1alpha1.NotificationChannel) error

type StatusChangedPredicate

type StatusChangedPredicate struct {
	predicate.Funcs
}

func (StatusChangedPredicate) Create

Create will prevent reconciliation when an alert policy is created

func (StatusChangedPredicate) Update

Update will trigger a reconciliation loop when the NewrelicPolicyId is updated in the object status

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL