-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature-3533 Adding new Istio support (#64)
* Updating modules. * Disabling kubeconfig. * Disabling kubeconfig * Disabling deletion_protection * Removing extra output. * Removing provider version declaration. * Adding tfenv file. * key_algorithm is not require. * Replacing list function. * Applying fmt * Updating pre-commit * Updating CI pipeline. * Using pre-commit executor. * Removing version config. * Updating cluster version * Adding db_deletion_protection variable. * Updating test case * Removing fix deployment_id. * Adding env TFENV_AUTO_INSTALL for auto install. * Fixing http provider. * Update .circleci/config.yml Co-authored-by: Daniel Hoherd <[email protected]> * Update .circleci/config.yml Co-authored-by: Daniel Hoherd <[email protected]> * Removing kubeconfig configurations. Co-authored-by: Daniel Hoherd <[email protected]>
- Loading branch information
1 parent
3b03097
commit 826f200
Showing
17 changed files
with
171 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,71 @@ | ||
--- | ||
version: 2.1 | ||
|
||
orbs: | ||
slack: circleci/[email protected] | ||
|
||
executors: | ||
pre-commit-executor: | ||
docker: | ||
- image: quay.io/astronomer/ci-pre-commit:2022-08 | ||
environment: | ||
TFENV_AUTO_INSTALL: true | ||
terraform-executor: | ||
docker: | ||
- image: quay.io/astronomer/ci-terraform:2022-08 | ||
environment: | ||
TFENV_AUTO_INSTALL: true | ||
|
||
workflows: | ||
test: | ||
jobs: | ||
- run_pre_commit | ||
terraform_pipeline: | ||
jobs: | ||
- terraform_lint: | ||
context: | ||
- slack | ||
- terraform_apply: | ||
requires: | ||
- terraform_lint | ||
context: | ||
- slack | ||
- gcp-dev | ||
- terraform_destroy: | ||
requires: | ||
- terraform_apply | ||
context: | ||
- slack | ||
- gcp-dev | ||
#- git_tag: | ||
# context: | ||
# - github-repo | ||
# - slack | ||
# requires: | ||
# - terraform_destroy | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
|
||
jobs: | ||
run_pre_commit: | ||
docker: | ||
- image: quay.io/astronomer/ci-pre-commit:2021-09 | ||
executor: pre-commit-executor | ||
steps: | ||
- checkout | ||
- run: pre-commit run --all-files | ||
- pre-commit-commands | ||
|
||
terraform_lint: | ||
docker: | ||
- image: quay.io/astronomer/ci-terraform:2021-09 | ||
executor: pre-commit-executor | ||
steps: | ||
- checkout | ||
- run: pipeline/lint.sh | ||
- pre-commit-commands | ||
- slack/notify: | ||
event: fail | ||
template: basic_fail_1 | ||
|
||
terraform_apply: | ||
docker: | ||
- image: quay.io/astronomer/ci-terraform:2021-09 | ||
executor: terraform-executor | ||
steps: | ||
- checkout | ||
- run: EXAMPLE=from_scratch pipeline/run_terraform.sh | ||
|
@@ -30,8 +74,7 @@ jobs: | |
template: basic_fail_1 | ||
|
||
terraform_destroy: | ||
docker: | ||
- image: quay.io/astronomer/ci-terraform:2021-09 | ||
executor: terraform-executor | ||
steps: | ||
- checkout | ||
- run: DESTROY=1 EXAMPLE=from_scratch pipeline/run_terraform.sh | ||
|
@@ -40,8 +83,7 @@ jobs: | |
template: basic_fail_1 | ||
|
||
git_tag: | ||
docker: | ||
- image: quay.io/astronomer/ci-terraform:2021-09 | ||
executor: terraform-executor | ||
steps: | ||
- checkout | ||
- run: git remote set-url origin "https://astro-astronomer:${GITHUB_TOKEN}@github.com/astronomer/${CIRCLE_PROJECT_REPONAME}.git" | ||
|
@@ -102,34 +144,38 @@ jobs: | |
] | ||
} | ||
workflows: | ||
test: | ||
jobs: | ||
- run_pre_commit | ||
terraform_pipeline: | ||
jobs: | ||
- terraform_lint: | ||
context: | ||
- slack | ||
- terraform_apply: | ||
requires: | ||
- terraform_lint | ||
context: | ||
- slack | ||
- gcp-dev | ||
- terraform_destroy: | ||
requires: | ||
- terraform_apply | ||
context: | ||
- slack | ||
- gcp-dev | ||
#- git_tag: | ||
# context: | ||
# - github-repo | ||
# - slack | ||
# requires: | ||
# - terraform_destroy | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
commands: | ||
pre-commit-commands: | ||
description: "Execute the pre-commit" | ||
steps: | ||
- run: | ||
name: Create pre-commit-cache-key.txt | ||
command: | | ||
cp .pre-commit-config.yaml /tmp/pre-commit-cache-key.txt | ||
python --version --version | sed 's/^/# /' >> /tmp/pre-commit-cache-key.txt | ||
- restore_cache: | ||
keys: | ||
- pre-commit-cache-{{ checksum "/tmp/pre-commit-cache-key.txt" }} | ||
- terraform-install | ||
- run: | ||
name: Install terraform-docs | ||
command: go install github.com/terraform-docs/[email protected] | ||
- run: | ||
name: Install pre-commit hooks | ||
command: pre-commit install-hooks | ||
- save_cache: | ||
key: pre-commit-cache-{{ checksum "/tmp/pre-commit-cache-key.txt" }} | ||
paths: | ||
- ~/.cache/pre-commit | ||
- run: | ||
name: Run pre-commit | ||
command: | | ||
pre-commit run --all-files --show-diff-on-failure | ||
terraform-install: | ||
steps: | ||
- run: | ||
name: Install terraform | ||
command: | | ||
tfenv install | ||
tfenv use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.