diff options
| author | Shelley-BaoYue <baoyue2@huawei.com> | 2023-11-07 10:24:35 +0800 |
|---|---|---|
| committer | Shelley-BaoYue <baoyue2@huawei.com> | 2023-11-07 10:50:03 +0800 |
| commit | 9055f442c2fd4e7354032f30478c710dc79bb7cf (patch) | |
| tree | 16d9ee18e769cd67d4c5d27bb5661d258871dc8f /cloud | |
| parent | Merge pull request #5097 from luomengY/generate_crd_charts (diff) | |
| download | kubeedge-9055f442c2fd4e7354032f30478c710dc79bb7cf.tar.gz | |
bump go version to 1.20
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'cloud')
| -rw-r--r-- | cloud/pkg/policycontroller/manager/reconcile_test.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/cloud/pkg/policycontroller/manager/reconcile_test.go b/cloud/pkg/policycontroller/manager/reconcile_test.go index 7efcc11a0..8c742506c 100644 --- a/cloud/pkg/policycontroller/manager/reconcile_test.go +++ b/cloud/pkg/policycontroller/manager/reconcile_test.go @@ -1320,18 +1320,16 @@ func TestGetNodeListOfServiceAccountAccess(t *testing.T) { ServiceAccountName: "test-sa", }, }, - // This test case is base on sigs.k8s.io/controller-runtime version >= v0.14.0 to filter obj by fieldSelector. - // But now sigs.k8s.io/controller-runtime v0.14.0 is base on go1.19, and can't be bumped up to v0.14.0 - /* { - ObjectMeta: metav1.ObjectMeta{ - Name: "pod-4", - Namespace: "test-ns", - }, - Spec: v1.PodSpec{ - NodeName: "node-4", - ServiceAccountName: "test-sa2", - }, - },*/ + { + ObjectMeta: metav1.ObjectMeta{ + Name: "pod-4", + Namespace: "test-ns", + }, + Spec: v1.PodSpec{ + NodeName: "node-4", + ServiceAccountName: "test-sa2", + }, + }, }, } pdStrategyTypeIndexer := func(obj client.Object) []string { |
