Compare commits

...

11 Commits

Author SHA1 Message Date
CSRBot be0e152de8 chore(deps): update docker.io/library/node docker tag to v22.11.0
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-11-26 02:40:29 +00:00
CSRBot 4edf2660de chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.4.0
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-11-25 23:41:05 +00:00
volker.raschek c1a2a098c8 doc(README): adapt warning blockquote
continuous-integration/drone/push Build is passing
2024-11-25 23:25:03 +01:00
volker.raschek 085a68c60c revert(README): adapt warning blockquote
This reverts commit 98fe8fe2a4.
2024-11-25 23:24:04 +01:00
volker.raschek 98fe8fe2a4 doc(README): adapt warning blockquote
continuous-integration/drone/push Build is failing
2024-11-25 23:17:33 +01:00
volker.raschek 7d02c5f7b3 doc(README): adapt warning blockquote
continuous-integration/drone/push Build is passing
2024-11-25 23:14:39 +01:00
CSRBot cbdf696a4e chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.42.0
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-11-25 20:26:07 +00:00
volker.raschek 42af0f9739 fix(serviceAccount): remove top level dict .spec
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-11-25 19:35:46 +01:00
volker.raschek 5c0f2fb310 core(chart): add further chart labels for search engine
continuous-integration/drone/push Build is passing
2024-11-25 19:08:36 +01:00
volker.raschek c211bd7a61 fix: rename chart repository
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2024-11-25 19:01:37 +01:00
volker.raschek 6d2a3675b1 fix(ci): rename chart repository
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-11-25 18:48:31 +01:00
5 changed files with 35 additions and 35 deletions
+9 -9
View File
@@ -12,7 +12,7 @@ platform:
steps: steps:
- name: clone repository - name: clone repository
image: git.cryptic.systems/volker.raschek/git:1.3.1 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: helm lint - name: helm lint
commands: commands:
@@ -26,7 +26,7 @@ steps:
- name: markdown lint - name: markdown lint
commands: commands:
- markdownlint *.md - markdownlint *.md
image: git.cryptic.systems/volker.raschek/markdownlint:0.41.0 image: git.cryptic.systems/volker.raschek/markdownlint:0.42.0
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@@ -73,7 +73,7 @@ platform:
steps: steps:
- name: clone repository - name: clone repository
image: git.cryptic.systems/volker.raschek/git:1.3.1 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: helm unittest - name: helm unittest
commands: commands:
@@ -125,14 +125,14 @@ platform:
steps: steps:
- name: clone repository - name: clone repository
image: git.cryptic.systems/volker.raschek/git:1.3.1 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: generate README - name: generate README
commands: commands:
- npm install - npm install
- npm run readme:parameters - npm run readme:parameters
- npm run readme:lint - npm run readme:lint
image: docker.io/library/node:22.9.0-alpine image: docker.io/library/node:22.11.0-alpine
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@@ -141,7 +141,7 @@ steps:
- name: detect diff - name: detect diff
commands: commands:
- git diff --exit-code --name-only README.md - git diff --exit-code --name-only README.md
image: git.cryptic.systems/volker.raschek/git:1.3.1 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: email-notification - name: email-notification
environment: environment:
@@ -183,13 +183,13 @@ platform:
steps: steps:
- name: clone repository - name: clone repository
image: git.cryptic.systems/volker.raschek/git:1.3.1 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: release-helm-chart - name: release-helm-chart
commands: commands:
- helm repo add prometheus-exporter https://charts.cryptic.systems/prometheus-exporter - helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
- helm package --version ${DRONE_TAG} . - helm package --version ${DRONE_TAG} .
- helm cm-push ${DRONE_REPO_NAME}-${DRONE_TAG}.tgz prometheus-exporter - helm cm-push ${DRONE_REPO_NAME}-${DRONE_TAG}.tgz prometheus-exporters
environment: environment:
HELM_REPO_PASSWORD: HELM_REPO_PASSWORD:
from_secret: helm_repo_password from_secret: helm_repo_password
+3 -2
View File
@@ -10,8 +10,9 @@ appVersion: "0.15.0"
keywords: keywords:
- prometheus - prometheus
- prometheus exporter - prometheus-exporter
- postgres - postgres-postgres-exporter
- postgres-exporter
sources: sources:
- https://github.com/prometheus-community/postgres_exporter - https://github.com/prometheus-community/postgres_exporter
+8 -8
View File
@@ -29,9 +29,9 @@ chart is tested for deployment scenarios with ArgoCD.
> time is not possible. > time is not possible.
```bash ```bash
helm repo add prometheus-exporter https://charts.cryptic.systems/prometheus-exporter helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
helm repo update helm repo update
helm install prometheus-exporter/prometheus-postgres-exporter prometheus-postgres-exporter \ helm install prometheus-exporters/prometheus-postgres-exporter prometheus-postgres-exporter \
--set 'config.database.secret.databaseUsername=postgres' \ --set 'config.database.secret.databaseUsername=postgres' \
--set 'config.database.secret.databasePassword=postgres' \ --set 'config.database.secret.databasePassword=postgres' \
--set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \ --set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \
@@ -45,7 +45,7 @@ version of the chart must be in sync with the `values.yaml`. Newer *minor* versi
versions can break something! versions can break something!
```bash ```bash
helm show values prometheus-exporter/prometheus-postgres-exporter --version 0.1.0 > values.yaml helm show values prometheus-exporters/prometheus-postgres-exporter --version 0.1.0 > values.yaml
``` ```
A complete list of available helm chart versions can be displayed via the following command: A complete list of available helm chart versions can be displayed via the following command:
@@ -66,12 +66,12 @@ The following examples serve as individual configurations and as inspiration for
The first example shows how to deploy the metric exporter with TLS encryption. The verification of the custom TLS The first example shows how to deploy the metric exporter with TLS encryption. The verification of the custom TLS
certification will be skipped by Prometheus. certification will be skipped by Prometheus.
> [!WARN] > [!WARNING]
> A TLS secret with the name `prometheus-postgresql-exporter-http` containing a `ca.crt`, `tls.key` and `tls.crt` is > The secret `prometheus-postgresql-exporter-http` containing the TLS certificate is already present. The keys `ca.crt`,
> already present. > `tls.key` and `tls.crt` of the secret can be mounted into the container filesystem for TLS authentication / encryption.
```bash ```bash
helm install prometheus-exporter/prometheus-postgres-exporter prometheus-postgres-exporter \ helm install prometheus-exporters/prometheus-postgres-exporter prometheus-postgres-exporter \
--set 'config.database.secret.databaseUsername=postgres' \ --set 'config.database.secret.databaseUsername=postgres' \
--set 'config.database.secret.databasePassword=postgres' \ --set 'config.database.secret.databasePassword=postgres' \
--set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \ --set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \
@@ -94,7 +94,7 @@ certificate for the metrics exporter - TLS certificate verification can be enabl
replaced: replaced:
```diff ```diff
helm install prometheus-exporter/prometheus-postgres-exporter prometheus-postgres-exporter \ helm install prometheus-exporters/prometheus-postgres-exporter prometheus-postgres-exporter \
--set 'config.database.secret.databaseUsername=postgres' \ --set 'config.database.secret.databaseUsername=postgres' \
--set 'config.database.secret.databasePassword=postgres' \ --set 'config.database.secret.databasePassword=postgres' \
--set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \ --set 'config.database.secret.databaseConnectionUrl="postgres.example.local:5432/postgres?ssl=disable"' \
@@ -13,14 +13,13 @@ metadata:
{{- end }} {{- end }}
name: {{ include "prometheus-postgres-exporter.fullname" . }} name: {{ include "prometheus-postgres-exporter.fullname" . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: automountServiceAccountToken: {{ .Values.serviceAccount.new.automountServiceAccountToken }}
automountServiceAccountToken: {{ .Values.serviceAccount.new.automountServiceAccountToken }} {{- with .Values.serviceAccount.new.imagePullSecrets }}
{{- with .Values.serviceAccount.new.imagePullSecrets }} imagePullSecrets:
imagePullSecrets: {{- toYaml . | nindent 4 }}
{{- toYaml . | nindent 4 }} {{- end }}
{{- end }} {{- with .Values.serviceAccount.new.secrets }}
{{- with .Values.serviceAccount.new.secrets }} secrets:
secrets: {{- toYaml . | nindent 4 }}
{{- toYaml . | nindent 4 }} {{- end }}
{{- end }}
{{- end }} {{- end }}
@@ -29,12 +29,12 @@ tests:
- notExists: - notExists:
path: metadata.labels path: metadata.labels
- equal: - equal:
path: spec.automountServiceAccountToken path: automountServiceAccountToken
value: true value: true
- notExists: - notExists:
path: spec.imagePullSecrets path: imagePullSecrets
- notExists: - notExists:
path: spec.secrets path: secrets
- it: Rendering serviceAccount with custom values. - it: Rendering serviceAccount with custom values.
@@ -65,14 +65,14 @@ tests:
path: metadata.name path: metadata.name
value: prometheus-postgres-exporter-unittest value: prometheus-postgres-exporter-unittest
- equal: - equal:
path: spec.automountServiceAccountToken path: automountServiceAccountToken
value: false value: false
- equal: - equal:
path: spec.imagePullSecrets path: imagePullSecrets
value: value:
- name: "my-pull-secret" - name: "my-pull-secret"
- equal: - equal:
path: spec.secrets path: secrets
value: value:
- name: "my-secret" - name: "my-secret"
namespace: "my-namespace" namespace: "my-namespace"