Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 680e617

Browse files
authored
Deprecate infra validate command (#248)
* deprecate infra validate, and cleaned up dependencies, update code docs for spk-config.yaml
1 parent 312bd8c commit 680e617

10 files changed

+54
-358
lines changed

docs/cloud-infra-management.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ spk infra [command] [options]
1212

1313
Commands:
1414

15-
- [validate](#validate)
1615
- [scaffold](#scaffold)
1716
- [generate](#generate)
1817

@@ -32,29 +31,8 @@ ARM_TENANT_ID
3231
Instructions on how to specify environment variables can be found
3332
[here](../README.md).
3433

35-
Other prerequisites are installed via the [`validate` command](#validate).
36-
3734
## Commands
3835

39-
### validate
40-
41-
Initializes the environment to deploy Bedrock infrastructure.
42-
43-
It will do the following:
44-
45-
- Verifies if prerequisites (e.g. terraform, git, helm, az cli) are installed
46-
- Verifies that user is logged into Azure via CLI
47-
- Check for environment variables (e.g. ARM_SUBSCRIPTION_ID, ARM_CLIENT_ID,
48-
ARM_CLIENT_SECRET, ARM_TENANT_ID)
49-
50-
```
51-
Usage:
52-
spk infra validate|v [options]
53-
54-
Options:
55-
-h, --help Usage information
56-
```
57-
5836
### scaffold
5937

6038
Create initial scaffolding for cluster deployment.
@@ -65,7 +43,6 @@ deployments.
6543

6644
It will do the following:
6745

68-
- Check if `spk infra validate` succeeded
6946
- Create a new folder with the `<name>` you provided.
7047
- Provide an infrastructure deployment scaffold based on a `<source>` git url
7148
for a terraform deployment, `<version>` respective to the repository of which

src/commands/deployment/dashboard.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
enableVerboseLogging,
99
logger
1010
} from "../../logger";
11-
import { validatePrereqs } from "../infra/validate";
11+
import { validatePrereqs } from "../init";
1212
import {
1313
extractManifestRepositoryInformation,
1414
getEnvVars,

src/commands/deployment/dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Config } from "../../config";
55
import { getRepositoryName } from "../../lib/gitutils";
66
import { exec } from "../../lib/shell";
77
import { logger } from "../../logger";
8-
import { validatePrereqs } from "../infra/validate";
8+
import { validatePrereqs } from "../init";
99

1010
export interface IIntrospectionManifest {
1111
githubUsername?: string;

src/commands/infra/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Command } from "../command";
22
import { commandDecorator as generateCommandDecorator } from "./generate";
33
import { commandDecorator as scaffoldCommandDecorator } from "./scaffold";
4-
import { commandDecorator as validateCommandDecorator } from "./validate";
54

65
export const infraCommand = Command(
76
"infra",
87
"Manage and modify your Bedrock infrastructure.",
9-
[generateCommandDecorator, scaffoldCommandDecorator, validateCommandDecorator]
8+
[generateCommandDecorator, scaffoldCommandDecorator]
109
);

src/commands/infra/validate.decorator.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/commands/infra/validate.test.ts

Lines changed: 0 additions & 148 deletions
This file was deleted.

src/commands/infra/validate.ts

Lines changed: 0 additions & 153 deletions
This file was deleted.

0 commit comments

Comments
 (0)