tests

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReadyNode = v1.Node{
		ObjectMeta: v12.ObjectMeta{
			Name: "aks-agentpool0-20562481-vmss_0",
			Labels: map[string]string{
				"agentpool":                      "agentpool0",
				"kubernetes.azure.com/agentpool": "agentpool0",
			},
		},
		Status: v1.NodeStatus{
			Conditions: []v1.NodeCondition{
				{
					Type:   v1.NodeReady,
					Status: v1.ConditionTrue,
				},
			},
		},
	}
)

Functions

func GetAgentPoolObj

func GetAgentPoolObj(apType armcontainerservice.AgentPoolType, capacityType armcontainerservice.ScaleSetPriority,
	labels map[string]*string, taints []*string, storage int32, vmSize string) armcontainerservice.AgentPool

func GetAgentPoolObjWithName added in v0.2.0

func GetAgentPoolObjWithName(apName string, apId string, vmSize string) armcontainerservice.AgentPool

func GetMachineObj

func GetMachineObj(name string, labels map[string]string, taints []v1.Taint, resource v1alpha5.ResourceRequirements, req []v1.NodeSelectorRequirement) *v1alpha5.Machine

func GetNodeList added in v0.2.0

func GetNodeList(nodes []v1.Node) *v1.NodeList

func NotFoundAzError added in v0.2.0

func NotFoundAzError() *azcore.ResponseError

Types

This section is empty.

Jump to

Keyboard shortcuts

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