Skip to content

group configmaps with the pod they're attached to #6603

@coltfred

Description

@coltfred

Expected Behavior

When using Kustomize to create a k8s_resource configmaps that are created using disableNameSuffixHash: false are correctly grouped with the creating service. The reason I want to use disableNameSuffixHash: false is so I can get automatic restarting of services if the configmaps change.

Current Behavior

When using Kustomize to create a k8s_resource configmaps that are created using disableNameSuffixHash: false are put into uncategorized and are not dependencies of the service that depends on them.

This means if you start the service without running all of the uncategorized you get output like:

[event: pod echo-server-5c8f5bf978-q7d4x] MountVolume.SetUp failed for volume "config-volume" : configmap "echo-server-config-ddhgt4bhk2" not found

Steps to Reproduce

Expand tilt.zip and after you run tilt up, enable the echo-server and you'll see the errors about configmap not found.

Context

tilt doctor Output

Tilt: v0.33.21, built
System: darwin-arm64
---
Docker
- Host: unix:///Users/colt/.docker/run/docker.sock
- Server Version: 28.3.2
- API Version: 1.51
- Builder: 2
- Compose Version: v2.38.2-desktop.1
---
Kubernetes
- Env: kind
- Context: kind-kind
- Cluster Name: kind-kind
- Namespace: default
- Container Runtime: containerd
- Version: v1.32.2
- Cluster Local Registry: none
---
Thanks for seeing the Tilt Doctor!
Please send the info above when filing bug reports. 💗

About Your Use Case

In a real world application I have 20+ services that all need to depend on their configmaps. If you want to just start a few of the services, you have to enable uncategorized which causes all of them to be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions