Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terrajinja-sbp-kubernetes-0.1.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

terrajinja_sbp_kubernetes-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page