Terrajinja extension for automation using cdktf
Project description
terrajinja-sbp-kubernetes
This is an extension to the vault provider for the following modules. The original documentation can be found here
SBP Specific implementations
Here is a list of supported resources and their modifications
sbp.kubernetes.secret_v1
Original provider: kubernetes.secret_v1
This custom provider adds the following:
- automaticly create auth string using a base64 encoded value of username and password
| old parameter | new parameter | description |
|---|---|---|
| parameters.data.dockerconfigjson.auths.name.auth | - | base64 auth header is no longer required |
while this provider does not have any additional parameters, you no longer have to create the base64 authentication string. this is done for you. see the example below where the auth header is not provided compared to the original documentation
terrajinja-cli example
the following is a code snipet you can used in a terrajinja-cli template file. This created the secret that allows kubernetes to connect to a private repository to fetch images
terraform:
resources:
- task: custom-repository-secret
module: sbp.kubernetes.secret_v1
parameters:
metadata: {
namespace: "my-namespace",
name: "repository-token-auth"
}
data:
.dockerconfigjson:
auths:
"registry.gitlab.schubergphilis.com":
username: "username"
password: "{{ env['gitlab_pat_token'] }}"
email: "username@email.com"
type: "kubernetes.io/dockerconfigjson"
History
0.0.1 (14-03-2024)
- First code creation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terrajinja-sbp-kubernetes-0.1.0.tar.gz.
File metadata
- Download URL: terrajinja-sbp-kubernetes-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f72ddd2e373e98f0ad7082192cc364d76e9d7790fdddcd4669d445b456c4fca6
|
|
| MD5 |
df915fd04a0fd3c785c6bba94fd0daae
|
|
| BLAKE2b-256 |
7e4ad1ce2c21a46dbf1b234c25de14d45c327333b146a3b13739a9ae39331dd6
|
File details
Details for the file terrajinja_sbp_kubernetes-0.1.0-py3-none-any.whl.
File metadata
- Download URL: terrajinja_sbp_kubernetes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e3a61e667c609039551a3028c6e8c1525f8af0577b28672cc6cc4675cf92c9
|
|
| MD5 |
ea6115bcd693a54a65069893d675deab
|
|
| BLAKE2b-256 |
0facd62470978cc10fe17ff2490c79d8a6197e0bb3fcfe67c741c18fab88ce1b
|