Skip to content

Commit a7dfcad

Browse files
authored
Merge pull request kubernetes-sigs#259 from nunnatsa/fix-258
Fix "should succeed with the kubevirt cluster being deleted" unit test
2 parents 2af983e + 68fbea2 commit a7dfcad

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

controllers/kubevirtcluster_controller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ var _ = Describe("Reconcile", func() {
4646
kubevirtClusterReconciler = controllers.KubevirtClusterReconciler{
4747
Client: fakeClient,
4848
InfraCluster: infraClusterMock,
49+
APIReader: fakeClient,
4950
Log: testLogger,
5051
}
5152
}

hack/kccm-flavor-gen.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ set -x -e -o pipefail
55
kccm_template=/tmp/kccm.yaml
66

77
kubectl kustomize config/kccm > $kccm_template
8+
9+
10+
sed -i \
11+
-E "s|(namespace: )kvcluster|\1\${NAMESPACE}|g;s|(^.*cluster-name=)kvcluster|\1\${CLUSTER_NAME}|g" \
12+
${kccm_template}
13+
814
for cluster_template in $(find templates/ -type f ! -name "*kccm*" -and ! -name "*ext*" -and ! -name "OWNERS"); do
915
cluster_kccm_template=${cluster_template%%.*}-kccm.yaml
1016
cp -f $cluster_template ${cluster_kccm_template}

0 commit comments

Comments
 (0)