Skip to content

Commit

Permalink
revert default for initContainer.script
Browse files Browse the repository at this point in the history
  • Loading branch information
GMartinez-Sisti committed Mar 30, 2024
1 parent db59252 commit a180031
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion charts/atlantis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ extraManifests:
| initConfig.enabled | bool | `false` | Install providers/plugins into a path shared with the Atlantis pod. |
| initConfig.image | string | `"alpine:latest"` | |
| initConfig.imagePullPolicy | string | `"IfNotPresent"` | |
| initConfig.script | string | `""` | Check values.yaml for examples. |
| initConfig.script | string | Check values.yaml. | Script to run on the init container. |
| initConfig.sharedDir | string | `"/plugins"` | SharedDir is set as env var INIT_SHARED_DIR. |
| initConfig.sizeLimit | string | `"100Mi"` | Size for the shared volume. |
| initConfig.workDir | string | `"/tmp"` | |
Expand Down
50 changes: 25 additions & 25 deletions charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -567,31 +567,31 @@ initConfig:
workDir: /tmp
# -- Size for the shared volume.
sizeLimit: 100Mi
# -- Check values.yaml for examples.
script: ""
# script: |
# #!/bin/sh
# set -eoux pipefail

# # example for terragrunt
# TG_VERSION="v0.47.0"
# TG_SHA256_SUM="98d45f6bfbfae84b51364c1ad6920f09ecb4d834908b0535e4e331a9fc6fc75b"
# TG_FILE="${INIT_SHARED_DIR}/terragrunt"
# wget https://github.com/gruntwork-io/terragrunt/releases/download/${TG_VERSION}/terragrunt_linux_amd64 -O "${TG_FILE}"
# echo "${TG_SHA256_SUM} ${TG_FILE}" | sha256sum -c
# chmod 755 "${TG_FILE}"
# terragrunt -v

# # example for terragrunt-atlantis-config
# TAC_VERSION="1.16.0" # without v
# TAC_SHA256_SUM="fc3b069cf4ae51e9b7a7d01f09862d1974b260fffb3ec857d661d7b1756fe26f"
# TAC_FILE="${INIT_SHARED_DIR}/terragrunt-atlantis-config"
# wget "https://github.com/transcend-io/terragrunt-atlantis-config/releases/download/v${TAC_VERSION}/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz"
# echo "${TAC_SHA256_SUM} terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz" | sha256sum -c
# tar xf "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz"
# cp -fv "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64" "${TAC_FILE}"
# chmod 755 "${TG_FILE}"
# terragrunt-atlantis-config version
# -- Script to run on the init container.
# @default -- Check values.yaml.
script: |
#!/bin/sh
set -eoux pipefail
# example for terragrunt
TG_VERSION="v0.47.0"
TG_SHA256_SUM="98d45f6bfbfae84b51364c1ad6920f09ecb4d834908b0535e4e331a9fc6fc75b"
TG_FILE="${INIT_SHARED_DIR}/terragrunt"
wget https://github.com/gruntwork-io/terragrunt/releases/download/${TG_VERSION}/terragrunt_linux_amd64 -O "${TG_FILE}"
echo "${TG_SHA256_SUM} ${TG_FILE}" | sha256sum -c
chmod 755 "${TG_FILE}"
terragrunt -v
# example for terragrunt-atlantis-config
TAC_VERSION="1.16.0" # without v
TAC_SHA256_SUM="fc3b069cf4ae51e9b7a7d01f09862d1974b260fffb3ec857d661d7b1756fe26f"
TAC_FILE="${INIT_SHARED_DIR}/terragrunt-atlantis-config"
wget "https://github.com/transcend-io/terragrunt-atlantis-config/releases/download/v${TAC_VERSION}/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz"
echo "${TAC_SHA256_SUM} terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz" | sha256sum -c
tar xf "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64.tar.gz"
cp -fv "terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64/terragrunt-atlantis-config_${TAC_VERSION}_linux_amd64" "${TAC_FILE}"
chmod 755 "${TG_FILE}"
terragrunt-atlantis-config version
# -- Optionally specify hostAliases for the Atlantis pod.
# Check values.yaml for examples.
Expand Down

0 comments on commit a180031

Please sign in to comment.