diff --git a/akamai-github/atlantis.yaml b/akamai-github/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/akamai-github/atlantis.yaml +++ b/akamai-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/akamai-github/templates/mgmt/components/atlantis/application.yaml b/akamai-github/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/akamai-github/templates/mgmt/components/atlantis/application.yaml +++ b/akamai-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/aws-github/atlantis.yaml b/aws-github/atlantis.yaml index 8b633375c..6c5e2b6e4 100644 --- a/aws-github/atlantis.yaml +++ b/aws-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/aws - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/github - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/aws-github/templates/mgmt/components/atlantis/application.yaml b/aws-github/templates/mgmt/components/atlantis/application.yaml index fcd36ed6b..edc233bc1 100644 --- a/aws-github/templates/mgmt/components/atlantis/application.yaml +++ b/aws-github/templates/mgmt/components/atlantis/application.yaml @@ -16,6 +16,32 @@ spec: image: repository: public.ecr.aws/kubefirst/atlantis tag: "0.0.5" + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -57,6 +83,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/aws-gitlab/atlantis.yaml b/aws-gitlab/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/aws-gitlab/atlantis.yaml +++ b/aws-gitlab/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/aws-gitlab/templates/mgmt/components/atlantis/application.yaml b/aws-gitlab/templates/mgmt/components/atlantis/application.yaml index c6208cc1b..38856808b 100644 --- a/aws-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/aws-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -54,6 +80,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/azure-github/templates/mgmt/components/atlantis/application.yaml b/azure-github/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/azure-github/templates/mgmt/components/atlantis/application.yaml +++ b/azure-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/azure-github/terraform/atlantis.yaml b/azure-github/terraform/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/azure-github/terraform/atlantis.yaml +++ b/azure-github/terraform/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/azure-gitlab/templates/mgmt/components/atlantis/application.yaml b/azure-gitlab/templates/mgmt/components/atlantis/application.yaml index 07abf4892..3c8233ca9 100644 --- a/azure-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/azure-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,13 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] - workflows: - default: - plan: - steps: - - init: - extra_args: ["-reconfigure"] - - plan + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/azure-gitlab/terraform/atlantis.yaml b/azure-gitlab/terraform/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/azure-gitlab/terraform/atlantis.yaml +++ b/azure-gitlab/terraform/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/civo-github/atlantis.yaml b/civo-github/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/civo-github/atlantis.yaml +++ b/civo-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/civo-github/templates/mgmt/components/atlantis/application.yaml b/civo-github/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/civo-github/templates/mgmt/components/atlantis/application.yaml +++ b/civo-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/civo-gitlab/atlantis.yaml b/civo-gitlab/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/civo-gitlab/atlantis.yaml +++ b/civo-gitlab/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/civo-gitlab/templates/mgmt/components/atlantis/application.yaml b/civo-gitlab/templates/mgmt/components/atlantis/application.yaml index 07abf4892..3c8233ca9 100644 --- a/civo-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/civo-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,13 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] - workflows: - default: - plan: - steps: - - init: - extra_args: ["-reconfigure"] - - plan + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/digitalocean-github/atlantis.yaml b/digitalocean-github/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/digitalocean-github/atlantis.yaml +++ b/digitalocean-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/digitalocean-github/templates/mgmt/components/atlantis/application.yaml b/digitalocean-github/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/digitalocean-github/templates/mgmt/components/atlantis/application.yaml +++ b/digitalocean-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/digitalocean-gitlab/atlantis.yaml b/digitalocean-gitlab/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/digitalocean-gitlab/atlantis.yaml +++ b/digitalocean-gitlab/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/digitalocean-gitlab/templates/mgmt/components/atlantis/application.yaml b/digitalocean-gitlab/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/digitalocean-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/digitalocean-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/google-github/atlantis.yaml b/google-github/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/google-github/atlantis.yaml +++ b/google-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/google-github/templates/mgmt/components/atlantis/application.yaml b/google-github/templates/mgmt/components/atlantis/application.yaml index 86ee835d1..60c22f6ca 100644 --- a/google-github/templates/mgmt/components/atlantis/application.yaml +++ b/google-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -54,6 +80,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis @@ -62,7 +91,7 @@ spec: prune: true selfHeal: true syncOptions: - - CreateNamespace=true + - CreateNamespace=true retry: limit: 5 backoff: diff --git a/google-gitlab/atlantis.yaml b/google-gitlab/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/google-gitlab/atlantis.yaml +++ b/google-gitlab/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/google-gitlab/templates/mgmt/components/atlantis/application.yaml b/google-gitlab/templates/mgmt/components/atlantis/application.yaml index 86ee835d1..60c22f6ca 100644 --- a/google-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/google-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -54,6 +80,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis @@ -62,7 +91,7 @@ spec: prune: true selfHeal: true syncOptions: - - CreateNamespace=true + - CreateNamespace=true retry: limit: 5 backoff: diff --git a/k3d-github/atlantis.yaml b/k3d-github/atlantis.yaml index 8d492d8c8..df52ed68f 100644 --- a/k3d-github/atlantis.yaml +++ b/k3d-github/atlantis.yaml @@ -2,17 +2,24 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/k3d-gitlab/atlantis.yaml b/k3d-gitlab/atlantis.yaml index 8d492d8c8..df52ed68f 100644 --- a/k3d-gitlab/atlantis.yaml +++ b/k3d-gitlab/atlantis.yaml @@ -2,17 +2,24 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/k3s-github/atlantis.yaml b/k3s-github/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/k3s-github/atlantis.yaml +++ b/k3s-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/k3s-github/templates/mgmt/components/atlantis/application.yaml b/k3s-github/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/k3s-github/templates/mgmt/components/atlantis/application.yaml +++ b/k3s-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/k3s-gitlab/atlantis.yaml b/k3s-gitlab/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/k3s-gitlab/atlantis.yaml +++ b/k3s-gitlab/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/k3s-gitlab/templates/mgmt/components/atlantis/application.yaml b/k3s-gitlab/templates/mgmt/components/atlantis/application.yaml index 95812e153..3c8233ca9 100644 --- a/k3s-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/k3s-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" @@ -52,6 +78,9 @@ spec: workflow: default allowed_overrides: [apply_requirements] apply_requirements: [mergeable] + volumeClaim: + enabled: true + dataStorage: 10Gi destination: server: 'https://kubernetes.default.svc' namespace: atlantis diff --git a/vultr-github/atlantis.yaml b/vultr-github/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/vultr-github/atlantis.yaml +++ b/vultr-github/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/vultr-github/templates/mgmt/components/atlantis/application.yaml b/vultr-github/templates/mgmt/components/atlantis/application.yaml index a42460f5b..3c8233ca9 100644 --- a/vultr-github/templates/mgmt/components/atlantis/application.yaml +++ b/vultr-github/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets" diff --git a/vultr-gitlab/atlantis.yaml b/vultr-gitlab/atlantis.yaml index ed8f5cf2c..ca71bcff1 100644 --- a/vultr-gitlab/atlantis.yaml +++ b/vultr-gitlab/atlantis.yaml @@ -2,22 +2,29 @@ version: 3 automerge: true projects: - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/ - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] - dir: terraform/users - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] + when_modified: + [ + "**/*.tf", + "**/modules/*.tf", + "**/admins/*.tf", + "**/developers/*.tf", + "*.tf*", + ] - dir: terraform/vault - terraform_version: 1.3.8 + terraform_version: 1.6.2 autoplan: enabled: true - when_modified: ['**/*.tf', '*.tf*'] + when_modified: ["**/*.tf", "*.tf*"] diff --git a/vultr-gitlab/templates/mgmt/components/atlantis/application.yaml b/vultr-gitlab/templates/mgmt/components/atlantis/application.yaml index a42460f5b..3c8233ca9 100644 --- a/vultr-gitlab/templates/mgmt/components/atlantis/application.yaml +++ b/vultr-gitlab/templates/mgmt/components/atlantis/application.yaml @@ -13,6 +13,32 @@ spec: targetRevision: 4.11.2 helm: values: |- + initConfig: + enabled: true + image: alpine:latest + imagePullPolicy: IfNotPresent + # sharedDir is set as env var INIT_SHARED_DIR + sharedDir: /plugins + workDir: /tmp + sizeLimit: 250Mi + script: | + #!/bin/sh + set -eoux pipefail + + # OpenTofu + TF_VERSION="1.6.2" + # TF_FILE="${INIT_SHARED_DIR}/tofu" + TF_FILE="${INIT_SHARED_DIR}/terraform" + wget https://github.com/opentofu/opentofu/releases/download/v${TF_VERSION}/tofu_${TF_VERSION}_linux_amd64.zip + unzip tofu_${TF_VERSION}_linux_amd64.zip + # mv tofu ${INIT_SHARED_DIR}/terraform + mv tofu "${TF_FILE}" + chmod 755 "${TF_FILE}" + terraform -v + + environment: + ATLANTIS_TF_DOWNLOAD: false + statefulSet: annotations: secret.reloader.stakater.com/reload: "atlantis-secrets"