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:
# 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kubed_krm-0.0.5.tar.gz.
File metadata
- Download URL: kubed_krm-0.0.5.tar.gz
- Upload date:
- Size: 57.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25389efbd6f61dd8513e7e66f9c636a0fd39ce9c5056a997b0f05eb08e34e6ab
|
|
| MD5 |
c0eb610dbcc826830c7ef4100c5f93bd
|
|
| BLAKE2b-256 |
93d2a5812ddb2b0b2c206f27f6499cbb9382bb80b52ceca855db7b0440f9a065
|
Provenance
The following attestation bundles were made for kubed_krm-0.0.5.tar.gz:
Publisher:
publish.yml on kubed-io/krm-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kubed_krm-0.0.5.tar.gz -
Subject digest:
25389efbd6f61dd8513e7e66f9c636a0fd39ce9c5056a997b0f05eb08e34e6ab - Sigstore transparency entry: 1766429964
- Sigstore integration time:
-
Permalink:
kubed-io/krm-py@2388c41f6e2c3bf798beb50813041ae0fde4f4b0 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/kubed-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2388c41f6e2c3bf798beb50813041ae0fde4f4b0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kubed_krm-0.0.5-py3-none-any.whl.
File metadata
- Download URL: kubed_krm-0.0.5-py3-none-any.whl
- Upload date:
- Size: 63.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6072e1fa901312179d7b05d5e5775eec27ca643c74f2015eae37e162471aa2be
|
|
| MD5 |
05d36e237c84cfae394d0607eb98ea0e
|
|
| BLAKE2b-256 |
55dcc866e1156c3d73e7b050c0034cbe449e0ea7fb10540712c733e3aa456826
|
Provenance
The following attestation bundles were made for kubed_krm-0.0.5-py3-none-any.whl:
Publisher:
publish.yml on kubed-io/krm-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kubed_krm-0.0.5-py3-none-any.whl -
Subject digest:
6072e1fa901312179d7b05d5e5775eec27ca643c74f2015eae37e162471aa2be - Sigstore transparency entry: 1766430744
- Sigstore integration time:
-
Permalink:
kubed-io/krm-py@2388c41f6e2c3bf798beb50813041ae0fde4f4b0 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/kubed-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2388c41f6e2c3bf798beb50813041ae0fde4f4b0 -
Trigger Event:
push
-
Statement type: