From 2eed422738a61d322752686b0060c914ea974667 Mon Sep 17 00:00:00 2001 From: srodenhuis Date: Thu, 17 Aug 2023 20:08:11 +0200 Subject: [PATCH] fix: rm att --- src/tasks/otomi/copy-certs-argo.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tasks/otomi/copy-certs-argo.ts b/src/tasks/otomi/copy-certs-argo.ts index f83e4aa6..50a4f017 100644 --- a/src/tasks/otomi/copy-certs-argo.ts +++ b/src/tasks/otomi/copy-certs-argo.ts @@ -51,14 +51,13 @@ export const createTargetPullSecret = ( export const copyTeamPullSecrets = async (teamId: string, targetPullSecretNames: string[]): Promise => { console.info(`Copying Pull secrets from team-${teamId} to ${targetNamespace} namespace`) const namespace = `team-${teamId}` - const secretName = `harbor-pullsecret` const getTargetSecretName = (name) => `copy-team-${teamId}-${name}` // get all team namespace Pull secrets const { body: { items: teamPullSecrets }, } = await k8s .core() - .listNamespacedSecret(namespace, secretName, undefined, undefined, 'type=kubernetes.io/dockerconfigjson') + .listNamespacedSecret(namespace, undefined, undefined, undefined, 'type=kubernetes.io/dockerconfigjson') // create new ones if not existing await Promise.all( teamPullSecrets