This repository was archived by the owner on Oct 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add projects config. Add CLI config. Add
vendir
config (#59)
* Add projects config. Add CLI config. Add `vendir` config * Add projects config. Add CLI config. Add `vendir` config * Add projects config. Add CLI config. Add `vendir` config * Add projects config. Add CLI config. Add `vendir` config * Add projects config. Add CLI config. Add `vendir` config * Update to latest * Update to latest * Update CLI * Update vendir
- Loading branch information
Showing
18 changed files
with
643 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ | |
|
||
**/.build-harness | ||
**/build-harness | ||
|
||
*.lock.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ build-harness | |
*.tfstate.backup | ||
.idea | ||
*.iml | ||
*.lock.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env variant | ||
# vim: filetype=hcl | ||
|
||
# Minimal variant project for creating a build cache to speed up Docker build | ||
|
||
job "echo" { | ||
description = "Echoes message to the console" | ||
private = true | ||
|
||
parameter "message" { | ||
description = "A message to output" | ||
type = string | ||
} | ||
|
||
exec { | ||
command = "echo" | ||
args = [param.message] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!/usr/bin/env variant | ||
# vim: filetype=hcl | ||
|
||
option "region" { | ||
default = "us-east-2" | ||
description = "AWS region" | ||
type = string | ||
} | ||
|
||
option "namespace" { | ||
default = "eg" | ||
description = "Namespace" | ||
type = string | ||
} | ||
|
||
option "dry-run" { | ||
default = false | ||
description = "Disable execution of any commands and echo the commands instead" | ||
type = bool | ||
} | ||
|
||
option "kubeconfig-path" { | ||
default = "/dev/shm" | ||
description = "folder to save kubeconfig" | ||
type = string | ||
} | ||
|
||
option "kubeconfig-profile-pattern" { | ||
default = "$$namespace-$$environment-$$stage-helm" | ||
description = "AWS profile pattern for kubeconfig" | ||
type = string | ||
} | ||
|
||
option "cluster-name-pattern" { | ||
default = "$$namespace-$$environment-$$stage-eks-cluster" | ||
description = "Cluster name pattern" | ||
type = string | ||
} | ||
|
||
option "terraform-dir" { | ||
default = "./components/terraform" | ||
description = "Terraform components directory" | ||
type = string | ||
} | ||
|
||
option "helmfile-dir" { | ||
default = "./components/helmfiles" | ||
description = "Helmfile components directory" | ||
type = string | ||
} | ||
|
||
option "config-dir" { | ||
default = "./stacks" | ||
description = "Stacks config directory" | ||
type = string | ||
} | ||
|
||
option "vendor-config-path" { | ||
default = "./vendor/vendir.yml" | ||
description = "Path to the vendor configuration file" | ||
type = string | ||
} | ||
|
||
imports = [ | ||
"git::https://[email protected]/cloudposse/atmos@modules/shell?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/kubeconfig?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/terraform?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/helmfile?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/helm?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/workflow?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/istio?ref=tags/0.3.0", | ||
"git::https://[email protected]/cloudposse/atmos@modules/vendor?ref=tags/0.3.0" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
projects: | ||
globals: | ||
stage: dev | ||
|
||
terraform: | ||
vpc: | ||
vars: | ||
cidr_block: "10.100.0.0/18" | ||
# ... | ||
|
||
eks: | ||
command: "/usr/bin/terraform-0.13" | ||
vars: | ||
cluster_kubernetes_version: "1.17" | ||
# ... | ||
|
||
helmfile: | ||
ingress-nginx: | ||
vars: | ||
installed: true | ||
|
||
workflows: | ||
deploy-all: | ||
description: Deploy 'eks' terraform project and helmfiles | ||
steps: | ||
- job: terraform deploy vpc | ||
- job: terraform deploy eks | ||
- job: helmfile deploy ingress-nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace: eg | ||
region: us-east-2 | ||
environment: ue2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
projects: | ||
globals: | ||
stage: prod | ||
|
||
terraform: | ||
vpc: | ||
vars: | ||
cidr_block: "10.102.0.0/18" | ||
# ... | ||
|
||
eks: | ||
command: "/usr/bin/terraform-0.13" | ||
vars: | ||
cluster_kubernetes_version: "1.17" | ||
# ... | ||
|
||
helmfile: | ||
ingress-nginx: | ||
vars: | ||
installed: true |
Oops, something went wrong.