Skip to content

Commit

Permalink
add expected startupTaints for e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie McBride authored and Charlie McBride committed Dec 27, 2023
1 parent 0bcd77d commit ef84c07
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/pkg/environment/azure/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ func (env *Environment) DefaultNodePool(nodeClass *v1alpha2.AKSNodeClass) *corev
v1.ResourceCPU: resource.MustParse("100"),
v1.ResourceMemory: resource.MustParse("1000Gi"),
})

nodePool.Spec.Template.Spec.StartupTaints = []v1.Taint{
{
Key: "node.cilium.io/agent-not-ready",
Value: "true",
Effect: v1.TaintEffectNoExecute,
},
{
Key: "node.kubernetes.io/network-unavailable",
Effect: v1.TaintEffectNoSchedule,
},
}
return nodePool
}

Expand Down

0 comments on commit ef84c07

Please sign in to comment.