Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Addon] Chartmuseum add a cache refresh option #751 #752

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/chartmuseum/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: chartmuseum
version: 4.2.0
version: 4.2.1
description: ChartMuseum is an open-source and easy to deploy Helm Chart Repository server.
icon: https://raw.githubusercontent.com/helm/chartmuseum/main/logo2.png
url: https://chartmuseum.com
Expand Down
9 changes: 9 additions & 0 deletions addons/chartmuseum/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,13 @@ amazon: {
// +usage=AWS access key secret
accessKeySecret: "secret"
}
```

#### Caching

Override the default for updating the cache index-cache.yaml

```yaml
// +usage=Override the default for updating the cache index-cache.yaml e.g. 5m, 1s
cacheRefresh: string
```
1 change: 1 addition & 0 deletions addons/chartmuseum/resources/chartmuseum.cue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
}
DEBUG: strconv.FormatBool(parameter.debug)
DISABLE_API: strconv.FormatBool(parameter.disableAPI)
CACHE_INTERVAL: parameter.cacheRefresh
ALLOW_OVERWRITE: strconv.FormatBool(parameter.allowOverwrite)
AUTH_ANONYMOUS_GET: strconv.FormatBool(parameter.authAnonymousGet)
if parameter.basicAuth != _|_ {
Expand Down
2 changes: 2 additions & 0 deletions addons/chartmuseum/resources/parameter.cue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ parameter: {
debug: *false | bool
// +usage=Disable all routes prefixed with /api
disableAPI: *false | bool
// +usage=Override the default for updating the cache index-cache.yaml e.g. 5m, 1s
cacheRefresh: *"5m" | string
// +usage=Allow chart versions to be re-uploaded
allowOverwrite: *true | bool
// +usage=Allow anonymous GET operations when auth is used
Expand Down
Loading