From c930ae4bd6f5f5fe18e774996299635ff6dc0e09 Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Tue, 24 Dec 2024 13:06:32 +0800 Subject: [PATCH] ci: fix backup related test cases fail on talos Signed-off-by: Yang Chiu --- .../deploy/backupstores/minio-backupstore.yaml | 12 ++++++++++-- .../deploy/backupstores/nfs-backupstore.yaml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/manager/integration/deploy/backupstores/minio-backupstore.yaml b/manager/integration/deploy/backupstores/minio-backupstore.yaml index 398bc6a76..e6083d442 100644 --- a/manager/integration/deploy/backupstores/minio-backupstore.yaml +++ b/manager/integration/deploy/backupstores/minio-backupstore.yaml @@ -41,8 +41,16 @@ spec: labels: app: longhorn-test-minio spec: - nodeSelector: - node-role.kubernetes.io/control-plane: "true" + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: In + values: + - "true" + - "" tolerations: - key: "node-role.kubernetes.io/master" operator: "Exists" diff --git a/manager/integration/deploy/backupstores/nfs-backupstore.yaml b/manager/integration/deploy/backupstores/nfs-backupstore.yaml index 548cb7b88..04ca31c1f 100644 --- a/manager/integration/deploy/backupstores/nfs-backupstore.yaml +++ b/manager/integration/deploy/backupstores/nfs-backupstore.yaml @@ -14,8 +14,16 @@ spec: labels: app: longhorn-test-nfs spec: - nodeSelector: - node-role.kubernetes.io/control-plane: "true" + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: In + values: + - "true" + - "" tolerations: - key: "node-role.kubernetes.io/master" operator: "Exists"