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.7

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.7
File Size Uploaded Provenance Actions
kubed_krm-0.0.7.tar.gz 113.1 kB With provenance Details for kubed_krm-0.0.7.tar.gz

Built distribution (wheel)

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

Total release size: 222.9 kB

Release files / kubed_krm-0.0.7.tar.gz

Download URL kubed_krm-0.0.7.tar.gz
Size 113.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9a6fee589a700019f59671a2911fed22a20343a8a377fb7265f7dfe19f37e347
BLAKE2b-256 checksum
How to use checksums
f97b5537f3f48897f5f79e3e7759d18e27f2997228e312207aa891a4b3c43ea6
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.7-py3-none-any.whl

Download URL kubed_krm-0.0.7-py3-none-any.whl
Size 109.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
081711f790b486c0412c22c6021e7dd061624e52ca7f8aee9b1dc024f01ae298
BLAKE2b-256 checksum
How to use checksums
d01357e531e26a36e96939f5ef0baed46c4f5272e98dca64bb013bae7d4e77a8
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.7

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.7.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