Skip to content

Commit 3371ca7

Browse files
authored
check for updated README.md in CI (#183)
* check for updated README.md in CI Signed-off-by: Tom Hayward <[email protected]> * add missing values Signed-off-by: Tom Hayward <[email protected]> * generate readme Signed-off-by: Tom Hayward <[email protected]>
1 parent f0b2431 commit 3371ca7

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

.github/workflows/lint-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
- name: Run chart-testing (lint)
3636
run: ct lint --config ct.yaml
3737

38+
- name: Updated README.md
39+
run: |
40+
make README.md
41+
git diff --exit-code -- README.md
42+
3843
- name: Create kind cluster
3944
uses: helm/[email protected]
4045

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: README.md
2+
README.md:
3+
docker run --rm --volume "$(shell pwd):/helm-docs" -u $(shell id -u) jnorwood/helm-docs:latest

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
<!-- README.md is a generated file. Make any changes in README.md.gotmpl or values.yaml. -->
2+
13
# cortex
24

3-
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![AppVersion: v1.9.0](https://img.shields.io/badge/AppVersion-v1.9.0-informational?style=flat-square)
5+
![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![AppVersion: v1.9.0](https://img.shields.io/badge/AppVersion-v1.9.0-informational?style=flat-square)
46

57
Horizontally scalable, highly available, multi-tenant, long term Prometheus.
68

@@ -143,7 +145,7 @@ metadata:
143145
labels:
144146
cortex_alertmanager: "1"
145147
name: alertmanager-example-config
146-
data:
148+
data:
147149
fake.yaml: |-
148150
global:
149151
resolve_timeout: 5m
@@ -296,9 +298,9 @@ Kubernetes: `^1.19.0-0`
296298
| compactor.strategy.type | string | `"RollingUpdate"` | |
297299
| compactor.terminationGracePeriodSeconds | int | `240` | |
298300
| compactor.tolerations | list | `[]` | |
301+
| config.alertmanager.enable_api | bool | `false` | Enable the experimental alertmanager config api. |
299302
| config.alertmanager.external_url | string | `"/api/prom/alertmanager"` | |
300-
| config.alertmanager.enable_api | bool | `false` | Enable the experimental alertmanager config api. |
301-
| config.alertmanager.storage | object | {} | Type of backend to use to store alertmanager configs. Supported values are: "configdb", "gcs", "s3", "local". refer to: https://cortexmetrics.io/docs/configuration/configuration-file/#alertmanager_config |
303+
| config.alertmanager.storage | object | `{}` | Type of backend to use to store alertmanager configs. Supported values are: "configdb", "gcs", "s3", "local". refer to: https://cortexmetrics.io/docs/configuration/configuration-file/#alertmanager_config |
302304
| config.api.prometheus_http_prefix | string | `"/prometheus"` | |
303305
| config.api.response_compression_enabled | bool | `true` | |
304306
| config.auth_enabled | bool | `false` | |
@@ -334,7 +336,7 @@ Kubernetes: `^1.19.0-0`
334336
| config.query_range.split_queries_by_interval | string | `"24h"` | |
335337
| config.ruler.enable_alertmanager_discovery | bool | `false` | |
336338
| config.ruler.enable_api | bool | `false` | Enable the experimental ruler config api. |
337-
| config.ruler.storage | object | {} | Method to use for backend rule storage (configdb, azure, gcs, s3, swift, local) refer to https://cortexmetrics.io/docs/configuration/configuration-file/#ruler_config|
339+
| config.ruler.storage | object | `{}` | Method to use for backend rule storage (configdb, azure, gcs, s3, swift, local) refer to https://cortexmetrics.io/docs/configuration/configuration-file/#ruler_config |
338340
| config.schema.configs[0].chunks.period | string | `"168h"` | |
339341
| config.schema.configs[0].chunks.prefix | string | `"chunks_"` | |
340342
| config.schema.configs[0].from | string | `"2020-11-01"` | |

README.md.gotmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- README.md is a generated file. Make any changes in README.md.gotmpl or values.yaml. -->
2+
13
{{ template "chart.header" . }}
24
{{ template "chart.deprecationWarning" . }}
35

values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,16 @@ config:
162162
timeout: 1s
163163
ruler:
164164
enable_alertmanager_discovery: false
165+
# -- Enable the experimental ruler config api.
166+
enable_api: false
167+
# -- Method to use for backend rule storage (configdb, azure, gcs, s3, swift, local) refer to https://cortexmetrics.io/docs/configuration/configuration-file/#ruler_config
168+
storage: {}
165169
alertmanager:
170+
# -- Enable the experimental alertmanager config api.
171+
enable_api: false
166172
external_url: '/api/prom/alertmanager'
173+
# -- Type of backend to use to store alertmanager configs. Supported values are: "configdb", "gcs", "s3", "local". refer to: https://cortexmetrics.io/docs/configuration/configuration-file/#alertmanager_config
174+
storage: {}
167175
frontend:
168176
# max_outstanding_per_tenant: 1000
169177
log_queries_longer_than: 10s

0 commit comments

Comments
 (0)