Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AdmissionControllerStatusName is the name of // the Admission Controller status object. AdmissionControllerStatusName = "vpa-admission-controller" // AdmissionControllerStatusNamespace is the namespace of // the Admission Controller status object. AdmissionControllerStatusNamespace = "kube-system" // AdmissionControllerStatusTimeout is a time after which // if not updated the Admission Controller status is no longer valid. AdmissionControllerStatusTimeout = 1 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for the status object.
func NewClient ¶
func NewClient(c clientset.Interface, leaseName, leaseNamespace string, leaseDuration time.Duration, holderIdentity string) *Client
NewClient returns a client for the status object.
func (*Client) IsStatusValid ¶
IsStatusValid verifies if the current status object was updated before lease timing out.
func (*Client) UpdateStatus ¶
UpdateStatus renews status object lease. Status object will be created if it doesn't exist.
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater periodically updates status object.
Click to show internal directories.
Click to hide internal directories.