This repository contains testing addons for the cert-manager project.
It is to save time when testing cert-manager working with external dependencies.
Mainly refer this proposal.
Current Available Workflows:
Kubectl is used to perform actions that are not supported by native Terraform resources
Helm is the best way to find, share, and use software built for Kubernetes.
Terraform is an IT infrastructure automation orchestration tool.
Terragrunt is a thin wrapper that provides extra tools for keeping your configurations DRY, working with multiple Terraform modules, and managing remote state.
The configuration directory of each dependence can share the cache to improve the execution speed.
$ mkdir -p $HOME/.terraform.d/plugin-cache
$ export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"
Take Vault as an example.
cd cm-vault
$ terragrunt run-all init
INFO[0000] The stack at /root/lonelyCZ/testing-addons/cm-vault will be processed in the following order for command init:
Group 1
- Module /root/lonelyCZ/testing-addons/cm-vault/cm-install
- Module /root/lonelyCZ/testing-addons/cm-vault/vault-install
Group 2
- Module /root/lonelyCZ/testing-addons/cm-vault/vault-config
Group 3
- Module /root/lonelyCZ/testing-addons/cm-vault/cm-config
Initializing the backend...
$ terragrunt run-all apply
INFO[0000] The stack at /root/lonelyCZ/testing-addons/cm-vault will be processed in the following order for command apply:
Group 1
- Module /root/lonelyCZ/testing-addons/cm-vault/cm-install
- Module /root/lonelyCZ/testing-addons/cm-vault/vault-install
Group 2
- Module /root/lonelyCZ/testing-addons/cm-vault/vault-config
Group 3
- Module /root/lonelyCZ/testing-addons/cm-vault/cm-config
Are you sure you want to run 'terragrunt apply' in each folder of the stack described above? (y/n) y
$ terragrunt run-all destroy
INFO[0000] The stack at /root/lonelyCZ/testing-addons/cm-vault will be processed in the following order for command destroy:
Group 1
- Module /root/lonelyCZ/testing-addons/cm-vault/cm-config
Group 2
- Module /root/lonelyCZ/testing-addons/cm-vault/cm-install
- Module /root/lonelyCZ/testing-addons/cm-vault/vault-config
Group 3
- Module /root/lonelyCZ/testing-addons/cm-vault/vault-install
WARNING: Are you sure you want to run `terragrunt destroy` in each folder of the stack described above? There is no undo! (y/n) y