utils

package
v0.4.11-0rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelMasterRole contains the key for the role label
	LabelMasterRole = "node-role.kubernetes.io/master"

	// LabelControlPlane contains the key for the control-plane role label
	LabelControlPlane = "node-role.kubernetes.io/control-plane"
)

Variables

This section is empty.

Functions

func GetDeploymentByOwnerReference

func GetDeploymentByOwnerReference(uid types.UID) (*v1.Deployment, error)

func GetNodeNames

func GetNodeNames(nodes []corev1.Node) []string

func ListMasterNodes

func ListMasterNodes(aclient client.Client) ([]corev1.Node, error)

func ListPodsByDaemonset

func ListPodsByDaemonset(cli client.Client, ds appsv1.DaemonSet) ([]corev1.Pod, error)

func ListPodsByDeployment

func ListPodsByDeployment(aclient client.Client, deployment v1.Deployment) ([]corev1.Pod, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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