tilt-dev / tilt-dev/tilt

Kustomize with envsubst

Open
#3,947 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Describe the Feature You Want

Hey ! thank you for this magical tool, it helps me a lot 🥰

Something is not that great with my workflow including kustomize and envsubst.

For now, I'm doing it this way :

if not os.path.exists('infra/k8s/overlays/dev/kustomization.yml'): # need the if, else Tilt goes into an infinite loop
        local('envsubst < infra/k8s/overlays/dev/kustomization.env.yml > infra/k8s/overlays/dev/kustomization.yml')
k8s_yaml(namespace_inject(kustomize('infra/k8s/core/overlays/local'), namespace))

Is there any better way ? something like a kustomize_with_envsubst() ?

Thanks for any input !

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported workflow paths, especially infra/k8s/overlays/dev/kustomization.env.yml and the kustomize('infra/k8s/core/overlays/local') entry point. Review how the project could support the requested envsubst-and-kustomize workflow, and define done as a supported approach that avoids the current generated-file and Tilt loop workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, shell
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.