Skip to content

Commit

Permalink
check for updated README.md in CI (#183)
Browse files Browse the repository at this point in the history
* check for updated README.md in CI

Signed-off-by: Tom Hayward <thayward@infoblox.com>

* add missing values

Signed-off-by: Tom Hayward <thayward@infoblox.com>

* generate readme

Signed-off-by: Tom Hayward <thayward@infoblox.com>
  • Loading branch information
kd7lxl committed Jul 30, 2021
1 parent f0b2431 commit 3371ca7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml

- name: Updated README.md
run: |
make README.md
git diff --exit-code -- README.md
- name: Create kind cluster
uses: helm/kind-action@v1.2.0

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: README.md
README.md:
docker run --rm --volume "$(shell pwd):/helm-docs" -u $(shell id -u) jnorwood/helm-docs:latest
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- README.md is a generated file. Make any changes in README.md.gotmpl or values.yaml. -->

# cortex

![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)
![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)

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

Expand Down Expand Up @@ -143,7 +145,7 @@ metadata:
labels:
cortex_alertmanager: "1"
name: alertmanager-example-config
data:
data:
fake.yaml: |-
global:
resolve_timeout: 5m
Expand Down Expand Up @@ -296,9 +298,9 @@ Kubernetes: `^1.19.0-0`
| compactor.strategy.type | string | `"RollingUpdate"` | |
| compactor.terminationGracePeriodSeconds | int | `240` | |
| compactor.tolerations | list | `[]` | |
| config.alertmanager.enable_api | bool | `false` | Enable the experimental alertmanager config api. |
| config.alertmanager.external_url | string | `"/api/prom/alertmanager"` | |
| config.alertmanager.enable_api | bool | `false` | Enable the experimental alertmanager config api. |
| 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 |
| 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 |
| config.api.prometheus_http_prefix | string | `"/prometheus"` | |
| config.api.response_compression_enabled | bool | `true` | |
| config.auth_enabled | bool | `false` | |
Expand Down Expand Up @@ -334,7 +336,7 @@ Kubernetes: `^1.19.0-0`
| config.query_range.split_queries_by_interval | string | `"24h"` | |
| config.ruler.enable_alertmanager_discovery | bool | `false` | |
| config.ruler.enable_api | bool | `false` | Enable the experimental ruler config api. |
| 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|
| 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 |
| config.schema.configs[0].chunks.period | string | `"168h"` | |
| config.schema.configs[0].chunks.prefix | string | `"chunks_"` | |
| config.schema.configs[0].from | string | `"2020-11-01"` | |
Expand Down
2 changes: 2 additions & 0 deletions README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- README.md is a generated file. Make any changes in README.md.gotmpl or values.yaml. -->

{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}

Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,16 @@ config:
timeout: 1s
ruler:
enable_alertmanager_discovery: false
# -- Enable the experimental ruler config api.
enable_api: false
# -- Method to use for backend rule storage (configdb, azure, gcs, s3, swift, local) refer to https://cortexmetrics.io/docs/configuration/configuration-file/#ruler_config
storage: {}
alertmanager:
# -- Enable the experimental alertmanager config api.
enable_api: false
external_url: '/api/prom/alertmanager'
# -- 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
storage: {}
frontend:
# max_outstanding_per_tenant: 1000
log_queries_longer_than: 10s
Expand Down

0 comments on commit 3371ca7

Please sign in to comment.