diff --git a/deployment.yaml b/deployment.yaml index 50bb7b8..1c5ec76 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -83,6 +83,21 @@ spec: value: https://walias-msergo.codemowers.ee - name: NODE_ENV value: prod + - name: WILDDUCK_URL + valueFrom: + secretKeyRef: + name: walias-secrets + key: WILDDUCK_URL + - name: WILDDUCK_TOKEN + valueFrom: + secretKeyRef: + name: walias-secrets + key: WILDDUCK_TOKEN + - name: WILDDUCK_DOMAIN + valueFrom: + secretKeyRef: + name: walias-secrets + key: WILDDUCK_DOMAIN envFrom: - secretRef: name: oidc-client-walias-owner-secrets diff --git a/src/services/aliases/aliases.class.ts b/src/services/aliases/aliases.class.ts index 4bc34e1..ef95069 100644 --- a/src/services/aliases/aliases.class.ts +++ b/src/services/aliases/aliases.class.ts @@ -58,7 +58,7 @@ export class AliasesService const aliasFirstPart = faker.animal.crocodilia() .replace(/\D/, '') .replace(/\s/, '') - .slice(10); + .slice(0, 10); const aliasSecondPart = faker.git.commitSha({ length: 5 }); const alias = `${aliasFirstPart}-${aliasSecondPart}@${config.get('wildDuck.domain')}`;