Assert right kube context in more infra deploys (#1567)

pull/1568/head
Nam Chu Hoai 2 years ago committed by GitHub
parent 5a114eee04
commit d9c06a23fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      typescript/infra/scripts/deploy-infra-external-secrets.ts
  2. 7
      typescript/infra/scripts/deploy-infra-monitoring.ts

@ -1,11 +1,16 @@
import { runExternalSecretsHelmCommand } from '../src/infrastructure/external-secrets/external-secrets';
import { HelmCommand } from '../src/utils/helm';
import { getCoreEnvironmentConfig, getEnvironment } from './utils';
import {
assertCorrectKubeContext,
getCoreEnvironmentConfig,
getEnvironment,
} from './utils';
async function main() {
const environment = await getEnvironment();
const config = getCoreEnvironmentConfig(environment);
await assertCorrectKubeContext(config);
return runExternalSecretsHelmCommand(
HelmCommand.InstallOrUpgrade,
config.infra,

@ -1,11 +1,16 @@
import { runPrometheusHelmCommand } from '../src/infrastructure/monitoring/prometheus';
import { HelmCommand } from '../src/utils/helm';
import { getCoreEnvironmentConfig, getEnvironment } from './utils';
import {
assertCorrectKubeContext,
getCoreEnvironmentConfig,
getEnvironment,
} from './utils';
async function main() {
const environment = await getEnvironment();
const config = getCoreEnvironmentConfig(environment);
await assertCorrectKubeContext(config);
return runPrometheusHelmCommand(
HelmCommand.InstallOrUpgrade,
config.infra,

Loading…
Cancel
Save