Skip to content

Tooling to deploy cert-manager with external dependencies for local testing

Notifications You must be signed in to change notification settings

cert-manager/testing-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cert-manager project logo

Testing Addons

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:

Precondition

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.

Configure Terraform Plugin Cache.

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" 

Usage Steps

Take Vault as an example.

1. Go to the installation directory of specific dependency.

cd cm-vault

2. Execute terragrunt run-all init

$ 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...

3. Execute terragrunt run-all apply

$ 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

4. Destroy Test Environment.

$ 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

About

Tooling to deploy cert-manager with external dependencies for local testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published