Skip to main content

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:
  # explicit fieldPaths on the keeper
  - kind: Deployment
    fieldPaths:
    - /spec/template/spec/containers/0/image
  # inverted control: matched resources declare their own keeper paths via
  # `random.krm.kubed.io/keepers.fieldpaths`. Random falls back to the
  # annotation when the keeper has no explicit fieldPaths.
  - kind: ExternalSecret
    matchLabels:
      app: drupal
  # no fieldPaths and no annotation -> whole resource (annotations stripped)
  - kind: ConfigMap
    name: site-.*
  targets:
  - kind: Job
    fieldPath: /metadata/name
    options:
      delimiter: '-'
      index: 2

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

Grafana

Panels, dashboards and folders as kustomize resources (grafana.krm.kubed.io), deployed through grafana-operator. Panels and dashboards are plain v2 data; one GrafanaLibrary transformer selects which become library panels and dashboards, in its folder. Embed pulls files in and Target pulls resources from the list. See examples/grafana and docs/generators/grafana.md.

Metadata

Release files for kubed-krm 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kubed-krm 0.0.8
File Size Uploaded Provenance Actions
kubed_krm-0.0.8.tar.gz 114.0 kB With provenance Details for kubed_krm-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kubed-krm 0.0.8
File Interpreter ABI Platform Actions
kubed_krm-0.0.8-py3-none-any.whl Python 3 none any Details for kubed_krm-0.0.8-py3-none-any.whl

Total release size: 224.2 kB

Release files / kubed_krm-0.0.8.tar.gz

Download URL kubed_krm-0.0.8.tar.gz
Size 114.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c72fe5ea45fdb8c9a1a91bb225de0d17f3cb06406ed38c016bf351678fc9af96
BLAKE2b-256 checksum
How to use checksums
0a29a12220f1b4b7124c7f057a93bda0e81d4ef0b877190a156d39eaef1d1044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / kubed_krm-0.0.8-py3-none-any.whl

Download URL kubed_krm-0.0.8-py3-none-any.whl
Size 110.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cd13679e997e76beef3de2bf3efdbfe958ff1c77e478944e0fe8d2ad3039e83
BLAKE2b-256 checksum
How to use checksums
cc9d9113da87ed9998f001d85bf9b732e4072a184114be5f8bdf1bd095b7d634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Security for kubed-krm 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kubed_krm-0.0.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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