Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: First version #4

Merged
merged 5 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 82 additions & 45 deletions README.md

Large diffs are not rendered by default.

56 changes: 49 additions & 7 deletions examples/complete/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,62 @@
# Complete Example
Webhook configuration
https://www.runatlantis.io/docs/deployment.html#kubernetes-helm-chart
maciejmacq-dev marked this conversation as resolved.
Show resolved Hide resolved

```terraform
module "terraform_module_template" {
source = "../../"
context = module.this.context
module "terraform_helm_atlantis" {
source = "getindata/terraform-helm-atlantis"
kubernetes_namespace = "default"
name = "atlantis"
project_id = "example"

example_var = "This is a example value."
sub_resource = {
example_var = "This is a example value of sub resource."
repos = [
{
id = "/.*/"
allowed_overrides = ["workflow", "delete_source_branch_on_merge"]
allow_custom_workflows = true
allow_all_server_side_workflows = true
}
]

repos_common_config = {
apply_requirements = ["approved", "mergeable"]
}

workflows = {
terragrunt-basic-with-features = {
import = {
steps = []
}

checkov = {
enabled = true,
soft_fail = true
}
infracost = {
enabled = true
}
check_gitlab_approvals = {
enabled = true
}
asdf = {
enabled = true
}
}
}

values = [file("./extra-values/values.yaml")]
app = {
name = "atlantis"
force_update = true
wait = false
recreate_pods = false
}
}
```

## Usage
```
terraform init
terraform plan -var-file fixtures.tfvars -out tfplan
terraform plan -out tfplan
terraform apply tfplan
```
279 changes: 0 additions & 279 deletions examples/complete/context.tf

This file was deleted.

6 changes: 6 additions & 0 deletions examples/complete/extra-values/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gitlab: {}
# gitlab:
# user: foo
# token: bar
# secret: baz
# hostname: gitlab.your.org
7 changes: 0 additions & 7 deletions examples/complete/fixtures.tfvars

This file was deleted.

Loading
Loading