|
21 | 21 |
|
22 | 22 | ## Installation |
23 | 23 |
|
24 | | -### Add the repository (if published) |
25 | | - |
26 | | -```bash |
27 | | -helm repo add s3proxy <REPO_URL> |
28 | | -helm repo update |
29 | | -``` |
30 | | - |
31 | 24 | ### Install the chart |
32 | 25 |
|
33 | 26 | ```bash |
34 | 27 | # Install with default values (filesystem backend) |
35 | | -helm install my-s3proxy ./{{ template "chart.name" . }} |
| 28 | +helm install my-s3proxy oci://ghcr.io/comet-ml/{{ template "chart.name" . }} |
36 | 29 |
|
37 | 30 | # Install with custom values |
38 | | -helm install my-s3proxy ./{{ template "chart.name" . }} -f my-values.yaml |
| 31 | +helm install my-s3proxy oci://ghcr.io/comet-ml/{{ template "chart.name" . }} -f override-values.yaml |
39 | 32 | ``` |
40 | 33 |
|
41 | 34 | ## Configuration |
42 | 35 |
|
43 | 36 | The following section lists the configurable parameters of the {{ template "chart.name" . }} chart and their default values. |
44 | 37 |
|
45 | | -### General Parameters |
46 | | - |
47 | | -{{ template "chart.valuesSection" . }} |
| 38 | +{{- define "renderMarkdownLine" }} |
| 39 | + {{- $code := (mustRegexReplaceAll "\x60([^\x60]*)\x60" . "<code>${1}</code>") }} |
| 40 | + {{- $italStar := (mustRegexReplaceAll `([^\*]|\*\*)\*([^ \*].*[^ \*]|[^ \*])\*([^\*]|\*\*)` $code "${1}<i>${2}</i>${3}") }} |
| 41 | + {{- $italScore := (mustRegexReplaceAll "( |__)_([^ _].*[^ _]|[^ _])_( |__)" $italStar "${1}<i>${2}</i>${3}") }} |
| 42 | + {{- $boldStar := (mustRegexReplaceAll `\*\*([^ \*].*[^ \*]|[^ \*])\*\*` $italScore "<b>${1}</b>") }} |
| 43 | + {{- $boldScore := (mustRegexReplaceAll "__([^ _].*[^ _]|[^ _])__" $boldStar "<b>${1}</b>") }} |
| 44 | + {{- $boldScore }} |
| 45 | +{{- end -}} |
| 46 | + |
| 47 | +{{- define "chart.valuesTableHtml" }} |
| 48 | +*Scroll sideways to see all columns.* |
| 49 | + |
| 50 | +<table> |
| 51 | + <thead> |
| 52 | + <th>Key</th> |
| 53 | + <th>Description</th> |
| 54 | + <th>Type</th> |
| 55 | + <th>Default</th> |
| 56 | + </thead> |
| 57 | + <tbody> |
| 58 | + {{- range .Values }} |
| 59 | + <tr> |
| 60 | + <td><code>{{ .Key }}</code></td> |
| 61 | + <td>{{ template "renderMarkdownLine" (default .AutoDescription .Description) }}</td> |
| 62 | + <td><code>{{ .Type }}</code></td> |
| 63 | + <td>{{ template "renderMarkdownLine" (default .AutoDefault .Default) }}</td> |
| 64 | + </tr> |
| 65 | + {{- end }} |
| 66 | + </tbody> |
| 67 | +</table> |
| 68 | +{{- end }} |
| 69 | + |
| 70 | +{{ template "chart.valuesSectionHtml" . }} |
48 | 71 |
|
49 | 72 | ## Usage Examples |
50 | 73 |
|
@@ -87,7 +110,7 @@ config: |
87 | 110 | provider: "aws-s3" |
88 | 111 | awsS3: |
89 | 112 | region: "us-west-2" |
90 | | - accessKeyId: "aws-access-key-id" # For s3proxy to connect to AWS |
| 113 | + accessKeyID: "aws-access-key-id" # For s3proxy to connect to AWS |
91 | 114 | secretAccessKey: "aws-secret-access-key" |
92 | 115 |
|
93 | 116 | persistence: |
@@ -135,7 +158,7 @@ config: |
135 | 158 | backend: |
136 | 159 | provider: "google-cloud-storage" |
137 | 160 | googleCloudStorage: |
138 | | - projectId: "my-project" |
| 161 | + projectID: "my-project" |
139 | 162 | |
140 | 163 | privateKey: | |
141 | 164 | -----BEGIN RSA PRIVATE KEY----- |
|
0 commit comments