kubernetes: k8s.io/kubernetes/pkg/kubelet/nodestatus Index | Files

package nodestatus

import "k8s.io/kubernetes/pkg/kubelet/nodestatus"

Index

Package Files

setters.go

Constants

const (
    // MaxNamesPerImageInNodeStatus is max number of names
    // per image stored in the node status.
    MaxNamesPerImageInNodeStatus = 5
)

type Setter Uses

type Setter func(node *v1.Node) error

Setter modifies the node in-place, and returns an error if the modification failed. Setters may partially mutate the node before returning an error.

func DaemonEndpoints Uses

func DaemonEndpoints(daemonEndpoints *v1.NodeDaemonEndpoints) Setter

DaemonEndpoints returns a Setter that updates the daemon endpoints on the node.

func DiskPressureCondition Uses

func DiskPressureCondition(nowFunc func() time.Time,
    pressureFunc func() bool,
    recordEventFunc func(eventType, event string),
) Setter

DiskPressureCondition returns a Setter that updates the v1.NodeDiskPressure condition on the node.

func GoRuntime Uses

func GoRuntime() Setter

GoRuntime returns a Setter that sets GOOS and GOARCH on the node.

func Images Uses

func Images(nodeStatusMaxImages int32,
    imageListFunc func() ([]kubecontainer.Image, error),
) Setter

Images returns a Setter that updates the images on the node. imageListFunc is expected to return a list of images sorted in descending order by image size. nodeStatusMaxImages is ignored if set to -1.

func MachineInfo Uses

func MachineInfo(nodeName string,
    maxPods int,
    podsPerCore int,
    machineInfoFunc func() (*cadvisorapiv1.MachineInfo, error),
    capacityFunc func() v1.ResourceList,
    devicePluginResourceCapacityFunc func() (v1.ResourceList, v1.ResourceList, []string),
    nodeAllocatableReservationFunc func() v1.ResourceList,
    recordEventFunc func(eventType, event, message string),
) Setter

MachineInfo returns a Setter that updates machine-related information on the node.

func MemoryPressureCondition Uses

func MemoryPressureCondition(nowFunc func() time.Time,
    pressureFunc func() bool,
    recordEventFunc func(eventType, event string),
) Setter

MemoryPressureCondition returns a Setter that updates the v1.NodeMemoryPressure condition on the node.

func NodeAddress Uses

func NodeAddress(nodeIP net.IP,
    validateNodeIPFunc func(net.IP) error,
    hostname string,
    hostnameOverridden bool,
    externalCloudProvider bool,
    cloud cloudprovider.Interface,
    nodeAddressesFunc func() ([]v1.NodeAddress, error),
) Setter

NodeAddress returns a Setter that updates address-related information on the node.

func PIDPressureCondition Uses

func PIDPressureCondition(nowFunc func() time.Time,
    pressureFunc func() bool,
    recordEventFunc func(eventType, event string),
) Setter

PIDPressureCondition returns a Setter that updates the v1.NodePIDPressure condition on the node.

func ReadyCondition Uses

func ReadyCondition(
    nowFunc func() time.Time,
    runtimeErrorsFunc func() error,
    networkErrorsFunc func() error,
    storageErrorsFunc func() error,
    appArmorValidateHostFunc func() error,
    cmStatusFunc func() cm.Status,
    recordEventFunc func(eventType, event string),
) Setter

ReadyCondition returns a Setter that updates the v1.NodeReady condition on the node.

func VersionInfo Uses

func VersionInfo(versionInfoFunc func() (*cadvisorapiv1.VersionInfo, error),
    runtimeTypeFunc func() string,
    runtimeVersionFunc func() (kubecontainer.Version, error),
) Setter

VersionInfo returns a Setter that updates version-related information on the node.

func VolumeLimits Uses

func VolumeLimits(volumePluginListFunc func() []volume.VolumePluginWithAttachLimits,
) Setter

VolumeLimits returns a Setter that updates the volume limits on the node.

func VolumesInUse Uses

func VolumesInUse(syncedFunc func() bool,
    volumesInUseFunc func() []v1.UniqueVolumeName,
) Setter

VolumesInUse returns a Setter that updates the volumes in use on the node.

Package nodestatus imports 24 packages (graph) and is imported by 1 packages. Updated 2019-09-20. Refresh now. Tools for package owners.