Skip to content

Commit

Permalink
fix(utils): ensure to use the azure-pg-user on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Jul 30, 2020
1 parent bbaea18 commit 638c457
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Expand Up @@ -104,7 +104,7 @@ spec:
memory: 32Mi
envFrom:
- secretRef:
name: azure-pg-user-undefined
name: azure-pg-user
command:
- sh
- '-c'
Expand Down
Expand Up @@ -86,7 +86,7 @@ spec:
memory: 32Mi
envFrom:
- secretRef:
name: azure-pg-user-undefined
name: azure-pg-user
command:
- sh
- '-c'
Expand Down
5 changes: 4 additions & 1 deletion src/utils/addWaitForPostgres.ts
Expand Up @@ -6,8 +6,11 @@ import { waitForPostgres } from "./waitForPostgres";
export const addWaitForPostgres = (deployment: Deployment): Deployment => {
const defaultParams = getDefaultPgParams();

const secretRefName = process.env.CI_COMMIT_TAG
? `azure-pg-user`
: defaultParams.name;
const initContainer = waitForPostgres({
secretRefName: defaultParams.name,
secretRefName,
});

if (deployment.spec) {
Expand Down

0 comments on commit 638c457

Please sign in to comment.