any-resource

by alekc

Helm chartv0.2.0MITVerified publisher

Renders arbitrary Kubernetes manifests from Helm values, for one-off resources that don't need a dedicated chart.

About this chart

any-resource

Renders arbitrary Kubernetes manifests from Helm values, for one-off resources that don't need a dedicated chart.

Sometimes a resource (a global TLS Secret, an imagePullSecret, a CRD instance like a Grafana dashboard ConfigMap) needs to live in a cluster without earning its own dedicated chart. This chart renders whatever raw Kubernetes manifests you hand it through values, nothing more.

This is a fork of the any-resource chart originally published by Kiwigrid, now defunct: their helm-charts repository was archived on 25 October 2025 and is no longer maintained.

Quick start

From the classic chart repository:

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-resources alekc/any-resource -f custom-values.yaml

Or directly from the OCI registry, no helm repo add needed:

helm install my-resources oci://charts.alekc.dev/any-resource --version 0.2.0 -f custom-values.yaml

A custom-values.yaml rendering a pull secret and a ConfigMap, using the current, tpl-evaluated format:

templatedResources:
  myPullSecret:
    apiVersion: v1
    kind: Secret
    metadata:
      name: my-pull-secret
      namespace: "{{ .Release.Namespace }}"
    type: kubernetes.io/dockerconfigjson
    stringData:
      .dockerconfigjson: "{{ .Values.dockerconfigjson }}"

The same file using the legacy, un-templated anyResources format instead (see the Gotchas section below for the difference):

anyResources:
  exampleConfig: |-
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: example-resource
    data:
      foo: bar

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/any-resource --version 0.2.0 --verify --keyring pubring.gpg

Maintainers

NameEmailUrl
alekc[email protected]https://blog.alekc.org

Source Code

Gotchas

  • templatedResources vs anyResources: only one of them is templated. templatedResources entries are Helm objects, rendered through tpl, so {{ .Release.Namespace }} and any other Helm built-in gets substituted. anyResources entries are plain YAML-block strings kept only for compatibility with values files written against the original Kiwigrid chart, they're emitted verbatim, a template placeholder inside one is never evaluated. Use templatedResources for anything new.
  • Every key in both maps is just a label for your own reference, it has no effect on the rendered manifest, the apiVersion/kind/metadata.name inside the value are what actually matter.
  • With neither map set, the chart renders a placeholder ConfigMap (a helm install --dry-run sanity check, not something to rely on), so an empty install is never silently a no-op.

Upgrade notes

No breaking changes yet.

Values

KeyTypeDefaultDescription
anyResourcesobject{}Legacy format, kept for backward compatibility with charts written against the original Kiwigrid any-resource chart. Rendered as a raw string with no tpl evaluation, unlike templatedResources above: a {{ }} placeholder inside one of these values is NOT substituted, it's emitted to the manifest verbatim. Prefer templatedResources for anything new.
templatedResourcesobject{}Manifests rendered through tpl, so each value can reference any Helm built-in (.Release.Namespace, .Values.foo, ...). Keys are only labels for your own reference, they don't affect the rendered output.

Deploy any-resource with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has any-resource on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartany-resource is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply