Skip to main content

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

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.2.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terrajinja_sbp_kubernetes-0.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file terrajinja_sbp_kubernetes-0.2.0.tar.gz.

File metadata

File hashes

Hashes for terrajinja_sbp_kubernetes-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb9f9e18574d5d8b2d9e39e8d2a9ae0c8bcac04a49810eede5b435f1a564e1c8
MD5 92c3698516e1fc0fb3170b79b2c8cfdb
BLAKE2b-256 b0533d7193d52d601b6db6b63b57811241e95fdccf46e6cd79239c88f3a03676

See more details on using hashes here.

File details

Details for the file terrajinja_sbp_kubernetes-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for terrajinja_sbp_kubernetes-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3194c3b0c4dc37028beb9ab2dc9488e32044e2467df53e6a7b5cfd0c3402629
MD5 14e32f5631102b10df7e33c8dc3f6d46
BLAKE2b-256 3b76ee048f8b2133ccd191bb44da530db58f0b04f4ed80d4114a21e9519416a3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page