Skip to content

Commit

Permalink
fix: make hasura/config optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jul 29, 2020
1 parent c9bff89 commit e4d4958
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/hasura/index.ts
Expand Up @@ -5,14 +5,14 @@ import { Deployment } from "kubernetes-models/apps/v1/Deployment";

import { addPostgresUserSecret } from "../../utils/addPostgresUserSecret";
import { addWaitForPostgres } from "../../utils/addWaitForPostgres";
import { create as createApp } from "../app";
import { AppConfig, create as createApp } from "../app";

type CreateResult = unknown[];

export const create = (
//name: string,
// eslint-disable-next-line @typescript-eslint/ban-types
{ env, config }: { env: Environment; config: object }
{ env, config = {} }: { env: Environment; config?: Partial<AppConfig> }
): CreateResult => {
ok(process.env.CI_REGISTRY_IMAGE);
ok(process.env.CI_ENVIRONMENT_URL);
Expand Down Expand Up @@ -58,6 +58,7 @@ export const create = (
ok(deployment);

addPostgresUserSecret(deployment);

addWaitForPostgres(deployment);

//
Expand Down
1 change: 0 additions & 1 deletion templates/simple/components/hasura.ts
Expand Up @@ -2,7 +2,6 @@ import env from "@kosko/env";
import { create } from "@socialgouv/kosko-charts/components/hasura";

const manifests = create({
config: {},
env,
});

Expand Down

0 comments on commit e4d4958

Please sign in to comment.