Arbitrary k8s readiness checks
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
From @jfancher:
is there any workaround for, or plan to support, depending on readiness of arbitrary k8s objects? For example... I have a KafkaTopic CRD managed by an operator [which is its own resource b/c of a call to
k8s_kind]; it obviously has no pods behind it as it's just doing some configuration, but it does have a readiness condition. It'd be nice to make apps that depend on it wait; also, it's moderately annoying that that resource never turns green in Tilt
This feature (in conjunction with #2989) could also help ClusterAPI; see e.g. this hack around readiness conditions:
local("kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/{}/cert-manager.yaml".format(version))
# wait for the service to become available
local("kubectl wait --for=condition=Available --timeout=300s apiservice v1beta1.webhook.cert-manager.io")
I.e. all resources need to wait on on this YAML being applied and the resources being ready. If Tilt supported arbitrary k8s readiness checks, this YAML could be its own resource, and only go green (i.e. only trigger its deps to build) when the wait condition was met.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the k8s_kind entry point and the linked ClusterAPI Tiltfile workaround. Trace how Kubernetes resources become ready and how readiness gates dependent builds. Done means arbitrary resource readiness conditions, such as KafkaTopic or APIService conditions, can control resource status and dependency triggering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100