Skip to content

Commit

Permalink
add optional command override
Browse files Browse the repository at this point in the history
  • Loading branch information
cpboyd committed Feb 3, 2023
1 parent 45b38ca commit 261d25e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/chartmuseum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ their default values. See values.yaml for all available options.
| `env.secret.BASIC_AUTH_PASS` | Password for basic HTTP authentication | `<nil>` |
| `env.secret.GOOGLE_CREDENTIALS_JSON` | GCP service account json file | `<nil>` |
| `env.secret.CACHE_REDIS_PASSWORD` | Redis requirepass server configuration | `<nil>` |
| `command` | Override the default `ENTRYPOINT` (`["/chartmuseum"]`) of the container | `<nil>` |
| `extraArgs` | Pass extra arguments to the chartmuseum binary | `[]` |
| `probes.liveness.initialDelaySeconds` | Delay before liveness probe is initiated | `5` |
| `probes.liveness.periodSeconds` | How often (in seconds) to perform the liveness probe | `10` |
Expand Down
4 changes: 4 additions & 0 deletions src/chartmuseum/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ spec:
- name: AUTH_CERT_PATH
value: /var/keys/public-key.pem
{{ end }}
{{- if .Values.command }}
command:
{{ toYaml .Values.command | indent 8 }}
{{- end }}
args:
- --port=8080
{{- if eq .Values.env.open.STORAGE "local" }}
Expand Down
1 change: 1 addition & 0 deletions src/chartmuseum/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
command:
extraArgs: []
# - --storage-timestamp-tolerance 1s
replicaCount: 1
Expand Down

0 comments on commit 261d25e

Please sign in to comment.