Skip to content

Commit 449d1a5

Browse files
Merge pull request #4 from getindata/v1
chore: First version
2 parents 6837c5b + 5a8f132 commit 449d1a5

20 files changed

+497
-429
lines changed

README.md

+87-43
Large diffs are not rendered by default.

examples/complete/README.md

+49-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,62 @@
11
# Complete Example
2+
Webhook configuration
3+
https://www.runatlantis.io/docs/deployment.html#kubernetes-helm-chart
24

35
```terraform
4-
module "terraform_module_template" {
5-
source = "../../"
6-
context = module.this.context
6+
module "terraform_gke_helm_atlantis" {
7+
source = "getindata/terraform-helm-atlantis"
8+
kubernetes_namespace = "default"
9+
name = "atlantis"
10+
project_id = "example"
711
8-
example_var = "This is a example value."
9-
sub_resource = {
10-
example_var = "This is a example value of sub resource."
12+
repos = [
13+
{
14+
id = "/.*/"
15+
allowed_overrides = ["workflow", "delete_source_branch_on_merge"]
16+
allow_custom_workflows = true
17+
allow_all_server_side_workflows = true
18+
}
19+
]
20+
21+
repos_common_config = {
22+
apply_requirements = ["approved", "mergeable"]
23+
}
24+
25+
workflows = {
26+
terragrunt-basic-with-features = {
27+
import = {
28+
steps = []
29+
}
30+
31+
checkov = {
32+
enabled = true,
33+
soft_fail = true
34+
}
35+
infracost = {
36+
enabled = true
37+
}
38+
check_gitlab_approvals = {
39+
enabled = true
40+
}
41+
asdf = {
42+
enabled = true
43+
}
44+
}
45+
}
46+
47+
values = [file("./extra-values/values.yaml")]
48+
app = {
49+
name = "atlantis"
50+
force_update = true
51+
wait = false
52+
recreate_pods = false
1153
}
1254
}
1355
```
1456

1557
## Usage
1658
```
1759
terraform init
18-
terraform plan -var-file fixtures.tfvars -out tfplan
60+
terraform plan -out tfplan
1961
terraform apply tfplan
2062
```

examples/complete/context.tf

-279
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
gitlab: {}
2+
# gitlab:
3+
# user: foo
4+
# token: bar
5+
# secret: baz
6+
# hostname: gitlab.your.org

examples/complete/fixtures.tfvars

-7
This file was deleted.

0 commit comments

Comments
 (0)