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

feat: switch to opentofu v1.6.2 #831

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
23 changes: 15 additions & 8 deletions akamai-github/atlantis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ version: 3
automerge: true
projects:
- dir: terraform/<CLOUD_PROVIDER>
terraform_version: 1.3.8
terraform_version: 1.6.2
autoplan:
enabled: true
when_modified: ['**/*.tf', '*.tf*']
when_modified: ["**/*.tf", "*.tf*"]
- dir: terraform/<GIT_PROVIDER>
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*"]
29 changes: 29 additions & 0 deletions akamai-github/templates/mgmt/components/atlantis/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
23 changes: 15 additions & 8 deletions aws-github/atlantis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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*"]
29 changes: 29 additions & 0 deletions aws-github/templates/mgmt/components/atlantis/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
23 changes: 15 additions & 8 deletions aws-gitlab/atlantis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ version: 3
automerge: true
projects:
- dir: terraform/<CLOUD_PROVIDER>
terraform_version: 1.3.8
terraform_version: 1.6.2
autoplan:
enabled: true
when_modified: ['**/*.tf', '*.tf*']
when_modified: ["**/*.tf", "*.tf*"]
- dir: terraform/<GIT_PROVIDER>
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*"]
29 changes: 29 additions & 0 deletions aws-gitlab/templates/mgmt/components/atlantis/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions azure-github/templates/mgmt/components/atlantis/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
23 changes: 15 additions & 8 deletions azure-github/terraform/atlantis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ version: 3
automerge: true
projects:
- dir: terraform/<CLOUD_PROVIDER>
terraform_version: 1.3.8
terraform_version: 1.6.2
autoplan:
enabled: true
when_modified: ['**/*.tf', '*.tf*']
when_modified: ["**/*.tf", "*.tf*"]
- dir: terraform/<GIT_PROVIDER>
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*"]
36 changes: 29 additions & 7 deletions azure-gitlab/templates/mgmt/components/atlantis/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
Loading