Skip to content

Commit

Permalink
Remove terraform (internal) (#10413)
Browse files Browse the repository at this point in the history
* Removed terraform (non-public) and celotool commands
  • Loading branch information
jcortejoso committed Jul 6, 2023
1 parent 5973c77 commit 0ed8544
Show file tree
Hide file tree
Showing 61 changed files with 33 additions and 3,831 deletions.
2 changes: 0 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ GETH_VMODULE="consensus/*=2"
GETH_ENABLE_METRICS=false
GETH_USE_MYCELO=false

VM_BASED=false

KUBERNETES_CLUSTER_NAME="celo-networks-dev"
KUBERNETES_CLUSTER_ZONE="us-west1-a"
CLUSTER_DOMAIN_NAME="celo-networks-dev"
Expand Down
2 changes: 0 additions & 2 deletions .env.alfajores
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ ENV_TYPE="production"

GETH_VERBOSITY=2

VM_BASED=false

KUBERNETES_CLUSTER_NAME="alfajores"
KUBERNETES_CLUSTER_ZONE="us-west1-a"
CLUSTER_DOMAIN_NAME="celo-testnet"
Expand Down
1 change: 0 additions & 1 deletion .env.baklava
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ENV_TYPE="production"
GETH_VERBOSITY=2
GETH_ENABLE_METRICS=true

VM_BASED=false

KUBERNETES_CLUSTER_NAME="baklavastaging"
KUBERNETES_CLUSTER_ZONE="us-west1-a"
Expand Down
1 change: 0 additions & 1 deletion .env.oracledev
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ CLUSTER_CREATION_FLAGS="--enable-autoscaling --min-nodes 3 --max-nodes 8 --machi

# ---- VM ----

VM_BASED=false

# ---- Blockscout ----

Expand Down
3 changes: 0 additions & 3 deletions .env.rc1staging
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ ENV_TYPE="staging"
GETH_VERBOSITY=2
GETH_ENABLE_METRICS=true

# TODO: deprecated
VM_BASED=false

KUBERNETES_CLUSTER_NAME="rc1staging"
KUBERNETES_CLUSTER_ZONE="us-west1-a"
CLUSTER_DOMAIN_NAME="celo-testnet"
Expand Down
1 change: 0 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ GETH_NODE_DOCKER_IMAGE_TAG="8a44c2cd92200bdffce595c7558e84a39ea2bc15"

GETH_VERBOSITY=2

VM_BASED=false

KUBERNETES_CLUSTER_NAME=celo-networks-dev
KUBERNETES_CLUSTER_ZONE="us-west1-a"
Expand Down
4 changes: 2 additions & 2 deletions packages/celotool/src/cmds/deploy/destroy/cluster.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { printReleases } from 'src/cmds/deploy/list'
import { deleteCluster, getNonSystemHelmReleases, switchToClusterFromEnv } from 'src/lib/cluster'
import { EnvTypes, envVar, fetchEnv } from 'src/lib/env-utils'
import { envTypes, envVar, fetchEnv } from 'src/lib/env-utils'
import { exitIfCelotoolHelmDryRun } from 'src/lib/helm_deploy'
import { DestroyArgv } from '../../deploy/destroy'

Expand All @@ -13,7 +13,7 @@ export const builder = {}
export const handler = async (argv: DestroyArgv) => {
exitIfCelotoolHelmDryRun()
const envType = fetchEnv(envVar.ENV_TYPE)
if (envType !== EnvTypes.DEVELOPMENT) {
if (envType !== envTypes.DEVELOPMENT) {
console.error('You can only delete dev clusters')
process.exit(1)
}
Expand Down
14 changes: 0 additions & 14 deletions packages/celotool/src/cmds/deploy/destroy/forno.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/celotool/src/cmds/deploy/destroy/testnet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { switchToClusterFromEnv } from 'src/lib/cluster'
import { failIfVmBased } from 'src/lib/env-utils'
import { deleteFromCluster, deleteStaticIPs, exitIfCelotoolHelmDryRun } from 'src/lib/helm_deploy'
import { DestroyArgv } from '../../deploy/destroy'

Expand All @@ -10,7 +9,6 @@ export const builder = {}

export const handler = async (argv: DestroyArgv) => {
exitIfCelotoolHelmDryRun()
failIfVmBased()

await switchToClusterFromEnv(argv.celoEnv)

Expand Down
16 changes: 0 additions & 16 deletions packages/celotool/src/cmds/deploy/destroy/vm-testnet.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/celotool/src/cmds/deploy/initial/forno.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/celotool/src/cmds/deploy/initial/testnet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createClusterIfNotExists, setupCluster, switchToClusterFromEnv } from 'src/lib/cluster'
import { failIfVmBased } from 'src/lib/env-utils'
import {
createStaticIPs,
installHelmChart,
Expand Down Expand Up @@ -34,8 +33,6 @@ export const builder = (argv: yargs.Argv) => {
}

export const handler = async (argv: TestnetInitialArgv) => {
failIfVmBased()

const createdCluster = await createClusterIfNotExists()
await switchToClusterFromEnv(argv.celoEnv)

Expand Down
41 changes: 0 additions & 41 deletions packages/celotool/src/cmds/deploy/initial/vm-testnet.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/celotool/src/cmds/deploy/upgrade/forno.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/celotool/src/cmds/deploy/upgrade/testnet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { switchToClusterFromEnv } from 'src/lib/cluster'
import { failIfVmBased } from 'src/lib/env-utils'
import {
isCelotoolHelmDryRun,
resetAndUpgradeHelmChart,
Expand Down Expand Up @@ -36,8 +35,6 @@ export const builder = (argv: yargs.Argv) => {
}

export const handler = async (argv: TestnetArgv) => {
failIfVmBased()

await switchToClusterFromEnv(argv.celoEnv)

await upgradeStaticIPs(argv.celoEnv)
Expand Down
48 changes: 0 additions & 48 deletions packages/celotool/src/cmds/deploy/upgrade/vm-testnet.ts

This file was deleted.

51 changes: 0 additions & 51 deletions packages/celotool/src/cmds/ssh-vm-node.ts

This file was deleted.

Loading

0 comments on commit 0ed8544

Please sign in to comment.