File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
pkg/handlers/generic/mutation/coredns Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments