Skip to content

Commit ba2a4da

Browse files
committed
fixup! test: another case when dns is set without coreDNS
1 parent 2d32c13 commit ba2a4da

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pkg/handlers/generic/mutation/coredns/inject_test.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,32 @@ var _ = Describe("Generate CoreDNS patches", func() {
6363
},
6464
},
6565
},
66+
{
67+
patchTest: capitest.PatchTestDef{
68+
Name: "variable with defaults",
69+
Vars: []runtimehooksv1.Variable{
70+
capitest.VariableWithValue(
71+
v1alpha1.ClusterConfigVariableName,
72+
v1alpha1.CoreDNS{},
73+
v1alpha1.DNSVariableName,
74+
),
75+
},
76+
},
77+
cluster: clusterv1.Cluster{
78+
ObjectMeta: metav1.ObjectMeta{
79+
Name: "test-cluster",
80+
Namespace: request.Namespace,
81+
Labels: map[string]string{
82+
clusterv1.ProviderNameLabel: "nutanix",
83+
},
84+
},
85+
Spec: clusterv1.ClusterSpec{
86+
Topology: &clusterv1.Topology{
87+
Version: "1.30.100",
88+
},
89+
},
90+
},
91+
},
6692
{
6793
patchTest: capitest.PatchTestDef{
6894
Name: "variable with defaults",

0 commit comments

Comments
 (0)