Skip to content

Commit

Permalink
fix: rm att
Browse files Browse the repository at this point in the history
  • Loading branch information
srodenhuis committed Aug 17, 2023
1 parent 5562bd6 commit 2eed422
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tasks/otomi/copy-certs-argo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ export const createTargetPullSecret = (
export const copyTeamPullSecrets = async (teamId: string, targetPullSecretNames: string[]): Promise<void> => {
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
Expand Down

0 comments on commit 2eed422

Please sign in to comment.