Skip to content

Commit 229ffa6

Browse files
authored
update helm (#227)
Signed-off-by: cpanato <[email protected]>
1 parent bec9ef0 commit 229ffa6

File tree

6 files changed

+139
-4
lines changed

6 files changed

+139
-4
lines changed

.github/workflows/check-helm-docs.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check Helm Docs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "charts/**"
7+
8+
jobs:
9+
readme:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
15+
16+
- name: Run Helm Docs and check the outcome
17+
run: |
18+
make docs
19+
exit_code=$(git diff --exit-code)
20+
exit ${exit_code}
21+
22+
- name: Print a comment in case of failure
23+
run: |
24+
echo "The README.md files are not up to date.
25+
26+
Please, run \"make docs\" before pushing."
27+
exit 1
28+
if: |
29+
failure() && github.event.pull_request.head.repo.full_name == github.repository

Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
all:: lint test build
22

3+
DOCS_IMAGE_VERSION="v1.14.2"
4+
35
.PHONY: lint
46
lint:
57
@echo ">> running golangci-lint"
@@ -13,3 +15,13 @@ test:
1315
.PHONY: build
1416
build:
1517
go build -o github-actions-exporter .
18+
19+
.PHONY: docs
20+
docs:
21+
@docker run \
22+
--rm \
23+
--workdir=/helm-docs \
24+
--volume "$$(pwd):/helm-docs" \
25+
-u $$(id -u) \
26+
jnorwood/helm-docs:$(DOCS_IMAGE_VERSION) \
27+
helm-docs -c ./charts/$* -t ./README.md.gotmpl -o ./README.md

charts/github-exporter/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
description: GitHub exporter
33
name: github-exporter
4-
version: 0.2.1
5-
appVersion: 0.7.1
4+
version: 0.3.0
5+
appVersion: 0.8.0
66
home: https://github.com/cpanato/github_actions_exporter
77
maintainers:
88
- name: cpanato

charts/github-exporter/README.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# github-exporter
2+
3+
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![AppVersion: 0.8.0](https://img.shields.io/badge/AppVersion-0.8.0-informational?style=flat-square)
4+
5+
GitHub exporter
6+
7+
**Homepage:** <https://github.com/cpanato/github_actions_exporter>
8+
9+
## Maintainers
10+
11+
| Name | Email | Url |
12+
| ---- | ------ | --- |
13+
| cpanato | | |
14+
15+
## Values
16+
17+
| Key | Type | Default | Description |
18+
|-----|------|---------|-------------|
19+
| config.org | string | `""` | |
20+
| config.pollSeconds | int | `30` | |
21+
| deployment.affinity | object | `{}` | |
22+
| deployment.image.digest | string | `"sha256:b0d50195686567de51b1ede25e2a6538719921f1a04a3cc763d89184ef86f22c"` | |
23+
| deployment.image.pullPolicy | string | `"IfNotPresent"` | |
24+
| deployment.image.repository | string | `"ghcr.io/cpanato/github_actions_exporter"` | |
25+
| deployment.image.tag | string | `"v0.8.0"` | |
26+
| deployment.nodeSelector | object | `{}` | |
27+
| deployment.podAnnotations | object | `{}` | |
28+
| deployment.podLabels | object | `{}` | |
29+
| deployment.replicaCount | int | `1` | |
30+
| deployment.resources | object | `{}` | |
31+
| deployment.tolerations | list | `[]` | |
32+
| fullnameOverride | string | `""` | |
33+
| ingress.annotations | object | `{}` | |
34+
| ingress.enabled | bool | `false` | |
35+
| ingress.extraLabels | object | `{}` | |
36+
| ingress.host | string | `nil` | |
37+
| labels | object | `{}` | |
38+
| nameOverride | string | `""` | |
39+
| prometheus.gcpManagedPrometheus.enabled | bool | `false` | |
40+
| prometheus.serviceMonitor.additionalLabels.app | string | `"github-exporter"` | |
41+
| prometheus.serviceMonitor.enabled | bool | `false` | |
42+
| prometheus.serviceMonitor.interval | string | `"5m"` | |
43+
| prometheus.serviceMonitor.metricRelabelings | object | `{}` | |
44+
| prometheus.serviceMonitor.namespace | string | `"monitoring"` | |
45+
| prometheus.serviceMonitor.scrapeTimeout | string | `"2m"` | |
46+
| secret.existingSecretName | string | `""` | |
47+
| secret.githubToken | string | `""` | |
48+
| secret.githubWebhookToken | string | `""` | |
49+
| service.annotationsIngress | object | `{}` | |
50+
| service.annotationsMetrics | object | `{}` | |
51+
| service.extraLabels | object | `{}` | |
52+
| service.portHttp | int | `8065` | |
53+
| service.portMetrics | int | `9101` | |
54+
| service.type | string | `"ClusterIP"` | |
55+
56+
----------------------------------------------
57+
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{{ template "chart.header" . }}
2+
3+
<!-- This README.md is generated. Please edit README.md.gotmpl -->
4+
5+
{{ template "chart.deprecationWarning" . }}
6+
7+
{{ template "chart.badgesSection" . }}
8+
9+
{{ template "chart.description" . }}
10+
11+
{{ template "chart.homepageLine" . }}
12+
'
13+
## Quick Installation
14+
15+
To install the helm chart with default values run following command.
16+
The [Values](#Values) section describes the configuration options for this chart.
17+
18+
```shell
19+
helm dependency update .
20+
helm install [RELEASE_NAME] .
21+
```
22+
23+
## Uninstallation
24+
25+
To uninstall the Helm chart run following command.
26+
27+
```shell
28+
helm uninstall [RELEASE_NAME]
29+
```
30+
31+
{{ template "chart.maintainersSection" . }}
32+
33+
{{ template "chart.sourcesSection" . }}
34+
35+
{{ template "chart.requirementsSection" . }}
36+
37+
{{ template "chart.valuesSection" . }}

charts/github-exporter/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ deployment:
1919
replicaCount: 1
2020
image:
2121
repository: ghcr.io/cpanato/github_actions_exporter
22-
tag: v0.7.1
23-
digest: sha256:0f7baabf04af6d1417955ac110b7234f862eadf2015f9f90a5c43efc1f8f9a35
22+
tag: v0.8.0
23+
digest: sha256:b0d50195686567de51b1ede25e2a6538719921f1a04a3cc763d89184ef86f22c
2424
pullPolicy: IfNotPresent
2525

2626
podLabels: {}

0 commit comments

Comments
 (0)