Skip to main content

Python implementation of the Kubernetes KRM Function Interface

Project description

Kubed KRM

A python Implementation of KRM function by Kustomize and Google.

Random

Generate a random string or number and stamp it into target resource fields. Configure keepers and the value is deterministically derived from the keeper field values — same inputs, same output — like Terraform's random_string. Useful for getting a Job name that only changes when upstream values actually change (a workaround for Kustomize hashing ConfigMap names after all transformers have run).

apiVersion: krm.kubed.io
kind: Random
metadata:
  name: random-string
  annotations:
    config.kubernetes.io/function: |
      exec:
        path: kubectl-kubed
spec:
  type: string
  keepers:
  - kind: Deployment
    fieldPath: /spec/template/spec/containers/0/image
  targets:
  - kind: Job
    fieldPath: /metadata/name
    options:
      delimiter: '-'
      index: 2

See examples/random and docs/transformers/random.md.

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

kubed_krm-0.0.3.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

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

kubed_krm-0.0.3-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file kubed_krm-0.0.3.tar.gz.

File metadata

  • Download URL: kubed_krm-0.0.3.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubed_krm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1144ff7948404c346c6d2f86e54dcad0dec0ea4eb3735a49469bc6e34762e0d9
MD5 c2a40d070a6a876ac8cbf2dfded561b3
BLAKE2b-256 3d4eb448130e556602fda276448e54cf9b1b84a65ffd063c7087a4fe1432a3f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubed_krm-0.0.3.tar.gz:

Publisher: publish.yml on kubed-io/krm-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kubed_krm-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: kubed_krm-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubed_krm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c835a480dc54baa1031579ab70ace045d6794174c70e53db363897fd81641f8
MD5 c938129ba270b2473804b5c51d91731a
BLAKE2b-256 6f04931d683142144890f63356679813b4606aabd3fa32334921e0b2dd7a7ade

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubed_krm-0.0.3-py3-none-any.whl:

Publisher: publish.yml on kubed-io/krm-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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