feat(core): add chart-values HTTP service#48
Open
drey wants to merge 9 commits into
Open
Conversation
Add chart-values-controller: an HTTP service that returns a chart's values.yaml before installation, so external in-cluster apps can preview chart parameters. The service reuses nelm-source-controller: on request it ensures an auxiliary HelmChart (Helm repos) or OCIRepository (OCI repos), waits for the artifact, downloads and extracts values.yaml, and caches it. - API: POST /v1/chart-values, async 202 + polling, stable machine-readable error codes with English messages. - Cache: content served from an emptyDir file cache keyed by the auxiliary resource name; a watch controller with a revision-change predicate keeps entries fresh, so ready charts are served without Kubernetes calls. - Atomic, lock-free cache writes (unique temp file + rename) safe under concurrent requests for the same chart. - TTL controller removes idle auxiliary resources and their cache entries. - Configurable max chart size via --max-chart-size-mb; guards against oversized artifacts and decompression bombs. - Auxiliary resources named tmp-<repo>-<chart>-<hash>. - Deployed as a single replica; kube-rbac-proxy fronts the API (TLS via the shared rootCA-signed cert, SubjectAccessReview auth) and metrics. Signed-off-by: Ilya Drey <ilya.drey@flant.com>
eb2ca0e to
fc18bf8
Compare
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
4ef7888 to
0fb7ea3
Compare
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
d31c767 to
2d58796
Compare
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
848c188 to
886e016
Compare
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add chart-values-controller: an HTTP service that returns a chart's values.yaml before installation, so external in-cluster apps can preview chart parameters.
The service reuses nelm-source-controller: on request it ensures an auxiliary HelmChart (Helm repos) or OCIRepository (OCI repos), waits for the
artifact, downloads and extracts values.yaml, and caches it.
error codes with English messages.
resource name; a watch controller with a revision-change predicate keeps
entries fresh, so ready charts are served without Kubernetes calls.
shared rootCA-signed cert, SubjectAccessReview auth) and metrics.