Skip to content

Commit

Permalink
feat(app): allow optional config
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Jul 29, 2020
1 parent 4775aa2 commit 31d9b50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/app/index.ts
Expand Up @@ -35,7 +35,7 @@ export const create = (
deployment: deploymentParams,
}: {
env: Environment;
config: Partial<AppConfig>;
config?: Partial<AppConfig>;
deployment?: Partial<Omit<DeploymentParams, "containerPort">>;
}
): { kind: string }[] => {
Expand All @@ -54,7 +54,7 @@ export const create = (
defaultEnvParams, // set name as default if not provided
gitlab(process.env),
env.component(name) as AppConfig, // kosko env overrides
config // create options
config ?? {} // create options
);

const { containerPort, servicePort } = envParams;
Expand Down
3 changes: 1 addition & 2 deletions src/components/hasura/index.ts
Expand Up @@ -58,10 +58,9 @@ export const create = (
ok(deployment);

addPostgresUserSecret(deployment);

// todo: doesnt work ATM, we need to check if user+db are ready
addWaitForPostgres(deployment);

//

return manifests;
};

0 comments on commit 31d9b50

Please sign in to comment.