You've already forked prometheus-postgres-exporter
							
							Compare commits
	
		
			52 Commits
		
	
	
		
			add1ff75a7
			...
			0.5.5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						b07a2f79a4
	
				 | 
					
					
						|||
| d77fe9866e | |||
| 
						
						
							
						
						e4c065d7e0
	
				 | 
					
					
						|||
| 395407a398 | |||
| 2a22faff0d | |||
| 
						
						
							
						
						a93403c97f
	
				 | 
					
					
						|||
| 
						
						
							
						
						177307f228
	
				 | 
					
					
						|||
| e70e7785a7 | |||
| 
						
						
							
						
						18ae53edef
	
				 | 
					
					
						|||
| a773bea18f | |||
| 
						
						
							
						
						bf5ddf5404
	
				 | 
					
					
						|||
| c30947c2e0 | |||
| 3e8e43562a | |||
| 
						
						
							
						
						a21a4e1c88
	
				 | 
					
					
						|||
| 
						
						
							
						
						3289aeba32
	
				 | 
					
					
						|||
| 
						
						
							
						
						c97b1d15f6
	
				 | 
					
					
						|||
| 3af39e8ef5 | |||
| 
						
						
							
						
						ac2dca69bf
	
				 | 
					
					
						|||
| 
						
						
							
						
						902be3a9aa
	
				 | 
					
					
						|||
| 7f7972d570 | |||
| c6b2748556 | |||
| 
						
						
							
						
						4f8ff6ee76
	
				 | 
					
					
						|||
| 
						
						
							
						
						99e3a3053e
	
				 | 
					
					
						|||
| 670233397e | |||
| f8bf338d8b | |||
| 
						
						
							
						
						ad18974807
	
				 | 
					
					
						|||
| 
						
						
							
						
						1ade590485
	
				 | 
					
					
						|||
| c6c0b7f92c | |||
| 30c1da211e | |||
| 
						
						
							
						
						674f8004d6
	
				 | 
					
					
						|||
| 
						
						
							
						
						94c2e05d2a
	
				 | 
					
					
						|||
| de3562bb18 | |||
| ada81c050a | |||
| 
						
						
							
						
						0d82de2e3b
	
				 | 
					
					
						|||
| 
						
						
							
						
						54b64a7854
	
				 | 
					
					
						|||
| 1254320443 | |||
| 
						
						
							
						
						a5bc7a1287
	
				 | 
					
					
						|||
| 95ef4db607 | |||
| 8ee8078a54 | |||
| 
						
						
							
						
						7d62a9cc15
	
				 | 
					
					
						|||
| 
						
						
							
						
						5f2273bfd1
	
				 | 
					
					
						|||
| a285c66ce9 | |||
| 
						
						
							
						
						699ff80a36
	
				 | 
					
					
						|||
| 
						
						
							
						
						e84a57456a
	
				 | 
					
					
						|||
| 
						
						
							
						
						3c8a92fb04
	
				 | 
					
					
						|||
| 
						
						
							
						
						c4b9990c2d
	
				 | 
					
					
						|||
| 
						
						
							
						
						4a03723386
	
				 | 
					
					
						|||
| 
						
						
							
						
						62f0815a3b
	
				 | 
					
					
						|||
| 
						
						
							
						
						c669330a80
	
				 | 
					
					
						|||
| 
						
						
							
						
						f05dd2d8bf
	
				 | 
					
					
						|||
| 
						
						
							
						
						c8ee5ce6be
	
				 | 
					
					
						|||
| 
						
						
							
						
						fc5f3c03da
	
				 | 
					
					
						
@@ -15,7 +15,7 @@ on:
 | 
				
			|||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  generate-parameters:
 | 
					  generate-parameters:
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: docker.io/library/node:24.4.0-alpine
 | 
					      image: docker.io/library/node:24.9.0-alpine
 | 
				
			||||||
    runs-on:
 | 
					    runs-on:
 | 
				
			||||||
    - ubuntu-latest
 | 
					    - ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -23,7 +23,7 @@ jobs:
 | 
				
			|||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        apk update
 | 
					        apk update
 | 
				
			||||||
        apk add git npm
 | 
					        apk add git npm
 | 
				
			||||||
    - uses: actions/checkout@v4.2.2
 | 
					    - uses: actions/checkout@v5.0.0
 | 
				
			||||||
    - name: Generate parameter section in README
 | 
					    - name: Generate parameter section in README
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        npm install
 | 
					        npm install
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ on:
 | 
				
			|||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  helm-lint:
 | 
					  helm-lint:
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: docker.io/volkerraschek/helm:3.18.3
 | 
					      image: docker.io/volkerraschek/helm:3.19.0
 | 
				
			||||||
    runs-on:
 | 
					    runs-on:
 | 
				
			||||||
    - ubuntu-latest
 | 
					    - ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -21,14 +21,14 @@ jobs:
 | 
				
			|||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        apk update
 | 
					        apk update
 | 
				
			||||||
        apk add git npm
 | 
					        apk add git npm
 | 
				
			||||||
    - uses: actions/checkout@v4.2.2
 | 
					    - uses: actions/checkout@v5.0.0
 | 
				
			||||||
    - name: Lint helm files
 | 
					    - name: Lint helm files
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        helm lint --values values.yaml .
 | 
					        helm lint --values values.yaml .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  helm-unittest:
 | 
					  helm-unittest:
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: docker.io/volkerraschek/helm:3.18.3
 | 
					      image: docker.io/volkerraschek/helm:3.19.0
 | 
				
			||||||
    runs-on:
 | 
					    runs-on:
 | 
				
			||||||
    - ubuntu-latest
 | 
					    - ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -36,7 +36,7 @@ jobs:
 | 
				
			|||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        apk update
 | 
					        apk update
 | 
				
			||||||
        apk add git npm
 | 
					        apk add git npm
 | 
				
			||||||
    - uses: actions/checkout@v4.2.2
 | 
					    - uses: actions/checkout@v5.0.0
 | 
				
			||||||
    - name: Unittest
 | 
					    - name: Unittest
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        helm unittest --strict --file 'unittests/**/*.yaml' ./
 | 
					        helm unittest --strict --file 'unittests/**/*.yaml' ./
 | 
				
			||||||
@@ -15,7 +15,7 @@ on:
 | 
				
			|||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  markdown-link-checker:
 | 
					  markdown-link-checker:
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: docker.io/library/node:24.4.0-alpine
 | 
					      image: docker.io/library/node:24.9.0-alpine
 | 
				
			||||||
    runs-on:
 | 
					    runs-on:
 | 
				
			||||||
    - ubuntu-latest
 | 
					    - ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -23,7 +23,7 @@ jobs:
 | 
				
			|||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        apk update
 | 
					        apk update
 | 
				
			||||||
        apk add git npm
 | 
					        apk add git npm
 | 
				
			||||||
    - uses: actions/checkout@v4.2.2
 | 
					    - uses: actions/checkout@v5.0.0
 | 
				
			||||||
    - name: Verify links in markdown files
 | 
					    - name: Verify links in markdown files
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        npm install
 | 
					        npm install
 | 
				
			||||||
@@ -31,7 +31,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  markdown-lint:
 | 
					  markdown-lint:
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: docker.io/library/node:24.4.0-alpine
 | 
					      image: docker.io/library/node:24.9.0-alpine
 | 
				
			||||||
    runs-on:
 | 
					    runs-on:
 | 
				
			||||||
    - ubuntu-latest
 | 
					    - ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -39,7 +39,7 @@ jobs:
 | 
				
			|||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        apk update
 | 
					        apk update
 | 
				
			||||||
        apk add git
 | 
					        apk add git
 | 
				
			||||||
    - uses: actions/checkout@v4.2.2
 | 
					    - uses: actions/checkout@v5.0.0
 | 
				
			||||||
    - name: Lint markdown files
 | 
					    - name: Lint markdown files
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        npm install
 | 
					        npm install
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ on:
 | 
				
			|||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  publish-chart:
 | 
					  publish-chart:
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: docker.io/volkerraschek/helm:3.18.3
 | 
					      image: docker.io/volkerraschek/helm:3.19.0
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Install packages via apk
 | 
					      - name: Install packages via apk
 | 
				
			||||||
@@ -16,7 +16,7 @@ jobs:
 | 
				
			|||||||
          apk update
 | 
					          apk update
 | 
				
			||||||
          apk add git npm jq yq
 | 
					          apk add git npm jq yq
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v5.0.0
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          fetch-depth: 0
 | 
					          fetch-depth: 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							@@ -1,8 +0,0 @@
 | 
				
			|||||||
{
 | 
					 | 
				
			||||||
  "yaml.schemas": {
 | 
					 | 
				
			||||||
    "https://raw.githubusercontent.com/helm-unittest/helm-unittest/v0.5.2/schema/helm-testsuite.json": [
 | 
					 | 
				
			||||||
      "/unittests/**/*.yaml"
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  "yaml.schemaStore.enable": true
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -9,7 +9,7 @@ name: prometheus-postgres-exporter
 | 
				
			|||||||
description: Prometheus metric exporter for PostgreSQL
 | 
					description: Prometheus metric exporter for PostgreSQL
 | 
				
			||||||
type: application
 | 
					type: application
 | 
				
			||||||
version: "0.1.0"
 | 
					version: "0.1.0"
 | 
				
			||||||
appVersion: "0.17.1"
 | 
					appVersion: "0.18.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# icon: https://annotations.example.com/icon.png
 | 
					# icon: https://annotations.example.com/icon.png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -4,13 +4,13 @@ CONTAINER_RUNTIME?=$(shell which podman)
 | 
				
			|||||||
# HELM_IMAGE
 | 
					# HELM_IMAGE
 | 
				
			||||||
HELM_IMAGE_REGISTRY_HOST?=docker.io
 | 
					HELM_IMAGE_REGISTRY_HOST?=docker.io
 | 
				
			||||||
HELM_IMAGE_REPOSITORY?=volkerraschek/helm
 | 
					HELM_IMAGE_REPOSITORY?=volkerraschek/helm
 | 
				
			||||||
HELM_IMAGE_VERSION?=3.18.3 # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/helm
 | 
					HELM_IMAGE_VERSION?=3.19.0 # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/helm
 | 
				
			||||||
HELM_IMAGE_FULLY_QUALIFIED=${HELM_IMAGE_REGISTRY_HOST}/${HELM_IMAGE_REPOSITORY}:${HELM_IMAGE_VERSION}
 | 
					HELM_IMAGE_FULLY_QUALIFIED=${HELM_IMAGE_REGISTRY_HOST}/${HELM_IMAGE_REPOSITORY}:${HELM_IMAGE_VERSION}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# NODE_IMAGE
 | 
					# NODE_IMAGE
 | 
				
			||||||
NODE_IMAGE_REGISTRY_HOST?=docker.io
 | 
					NODE_IMAGE_REGISTRY_HOST?=docker.io
 | 
				
			||||||
NODE_IMAGE_REPOSITORY?=library/node
 | 
					NODE_IMAGE_REPOSITORY?=library/node
 | 
				
			||||||
NODE_IMAGE_VERSION?=24.4.0-alpine # renovate: datasource=docker registryUrl=https://docker.io depName=docker.io/library/node packageName=library/node
 | 
					NODE_IMAGE_VERSION?=24.9.0-alpine # renovate: datasource=docker registryUrl=https://docker.io depName=docker.io/library/node packageName=library/node
 | 
				
			||||||
NODE_IMAGE_FULLY_QUALIFIED=${NODE_IMAGE_REGISTRY_HOST}/${NODE_IMAGE_REPOSITORY}:${NODE_IMAGE_VERSION}
 | 
					NODE_IMAGE_FULLY_QUALIFIED=${NODE_IMAGE_REGISTRY_HOST}/${NODE_IMAGE_REPOSITORY}:${NODE_IMAGE_VERSION}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# MISSING DOT
 | 
					# MISSING DOT
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										47
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										47
									
								
								README.md
									
									
									
									
									
								
							@@ -33,7 +33,8 @@ helm chart is tested for deployment scenarios with **ArgoCD**.
 | 
				
			|||||||
```bash
 | 
					```bash
 | 
				
			||||||
helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
 | 
					helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
 | 
				
			||||||
helm repo update
 | 
					helm repo update
 | 
				
			||||||
helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
 | 
					CHART_VERSION=0.5.4
 | 
				
			||||||
 | 
					helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/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"' \
 | 
				
			||||||
@@ -47,8 +48,8 @@ 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
 | 
				
			||||||
CHART_VERSION=0.5.2
 | 
					CHART_VERSION=0.5.4
 | 
				
			||||||
helm show values prometheus-exporters/prometheus-postgres-exporter --version "${CHART_VERSION}" > values.yaml
 | 
					helm show values --version "${CHART_VERSION}" prometheus-exporters/prometheus-postgres-exporter > 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:
 | 
				
			||||||
@@ -85,7 +86,8 @@ Further information about this topic can be found in one of Kanishk's blog
 | 
				
			|||||||
> Please take care the a CPU limit < `1000m` can also lead to CPU throttling. Please read the linked documentation carefully.
 | 
					> Please take care the a CPU limit < `1000m` can also lead to CPU throttling. Please read the linked documentation carefully.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
 | 
					CHART_VERSION=0.5.4
 | 
				
			||||||
 | 
					helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/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"' \
 | 
				
			||||||
@@ -106,7 +108,8 @@ certification will be skipped by Prometheus.
 | 
				
			|||||||
> `tls.key` and `tls.crt` of the secret can be mounted into the container filesystem for TLS authentication / encryption.
 | 
					> `tls.key` and `tls.crt` of the secret can be mounted into the container filesystem for TLS authentication / encryption.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
 | 
					CHART_VERSION=0.5.4
 | 
				
			||||||
 | 
					helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/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"' \
 | 
				
			||||||
@@ -129,7 +132,8 @@ certificate for the metrics exporter - TLS certificate verification can be enabl
 | 
				
			|||||||
replaced:
 | 
					replaced:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```diff
 | 
					```diff
 | 
				
			||||||
  helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
 | 
					  CHART_VERSION=0.5.4
 | 
				
			||||||
 | 
					  helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/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"' \
 | 
				
			||||||
@@ -150,6 +154,34 @@ replaced:
 | 
				
			|||||||
+   --set 'prometheus.metrics.serviceMonitor.tlsConfig.keyFile=/etc/prometheus/tls/tls.key'
 | 
					+   --set 'prometheus.metrics.serviceMonitor.tlsConfig.keyFile=/etc/prometheus/tls/tls.key'
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### TLS certificate rotation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					If the exporter uses TLS certificates that are mounted as a secret in the container file system like the example
 | 
				
			||||||
 | 
					[above](#tls-authentication-and-encryption), the exporter will not automatically apply them when the TLS certificates
 | 
				
			||||||
 | 
					are rotated. Such a rotation can be for example triggered, when the [cert-manager](https://cert-manager.io/) issues new
 | 
				
			||||||
 | 
					TLS certificates before expiring.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Until the exporter does not support rotating TLS certificate a workaround can be applied. For example stakater's
 | 
				
			||||||
 | 
					[reloader](https://github.com/stakater/Reloader) controller can be used to trigger a rolling update. The following
 | 
				
			||||||
 | 
					annotation must be added to instruct the reloader controller to trigger a rolling update, when the mounted configMaps
 | 
				
			||||||
 | 
					and secrets have been changed.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```yaml
 | 
				
			||||||
 | 
					deployment:
 | 
				
			||||||
 | 
					  annotations:
 | 
				
			||||||
 | 
					    reloader.stakater.com/auto: "true"
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Instead of triggering a rolling update for configMap and secret resources, this action can also be defined for
 | 
				
			||||||
 | 
					individual items. For example, when the secret named `prometheus-postgresql-exporter-http` is mounted and the reloader
 | 
				
			||||||
 | 
					controller should only listen for changes of this secret:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```yaml
 | 
				
			||||||
 | 
					deployment:
 | 
				
			||||||
 | 
					  annotations:
 | 
				
			||||||
 | 
					    secret.reloader.stakater.com/reload: "prometheus-postgresql-exporter-http"
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Grafana dashboard
 | 
					#### Grafana dashboard
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The helm chart includes Grafana dashboards. These can be deployed as a configMap by activating Grafana integration. It
 | 
					The helm chart includes Grafana dashboards. These can be deployed as a configMap by activating Grafana integration. It
 | 
				
			||||||
@@ -159,7 +191,8 @@ the Grafana container file system so that it is subsequently available to the us
 | 
				
			|||||||
makes this possible.
 | 
					makes this possible.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
helm install prometheus-postgres-exporter prometheus-exporters/prometheus-postgres-exporter \
 | 
					CHART_VERSION=0.5.4
 | 
				
			||||||
 | 
					helm install --version "${CHART_VERSION}" prometheus-postgres-exporter prometheus-exporters/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"' \
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -17,9 +17,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@bitnami/readme-generator-for-helm": {
 | 
					    "node_modules/@bitnami/readme-generator-for-helm": {
 | 
				
			||||||
      "version": "2.7.1",
 | 
					      "version": "2.7.2",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@bitnami/readme-generator-for-helm/-/readme-generator-for-helm-2.7.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@bitnami/readme-generator-for-helm/-/readme-generator-for-helm-2.7.2.tgz",
 | 
				
			||||||
      "integrity": "sha512-HCt4wdEVYfPPVX8P6be8LgejVPEHJvnXXJBErdcSWmNgbbXowJhFwnB1uTdzkT00kqSBd8KQMdzjoQFGgv2/Ww==",
 | 
					      "integrity": "sha512-7eXyJzxQTQj2ajpHlIhadciCCYWOqN8ieaweU25bStHOZowQ2c2CQyjO/bX4gxIf73LoRKxHhEYgLTllJY9SIw==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "license": "Apache-2.0",
 | 
					      "license": "Apache-2.0",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,7 @@
 | 
				
			|||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "customManagers": [
 | 
					  "customManagers": [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					      "customType": "regex",
 | 
				
			||||||
      "fileMatch": [
 | 
					      "fileMatch": [
 | 
				
			||||||
        "^Chart\\.yaml$"
 | 
					        "^Chart\\.yaml$"
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
@@ -21,9 +22,10 @@
 | 
				
			|||||||
      "versioningTemplate": "semver"
 | 
					      "versioningTemplate": "semver"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					      "customType": "regex",
 | 
				
			||||||
      "fileMatch": ["^README\\.md$"],
 | 
					      "fileMatch": ["^README\\.md$"],
 | 
				
			||||||
      "matchStrings": [
 | 
					      "matchStrings": [
 | 
				
			||||||
        "VERSION=(?<currentValue>.*)"
 | 
					        "CHART_VERSION=(?<currentValue>.*)"
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "depNameTemplate": "volker.raschek/prometheus-postgres-exporter",
 | 
					      "depNameTemplate": "volker.raschek/prometheus-postgres-exporter",
 | 
				
			||||||
      "packageNameTemplate": "https://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter",
 | 
					      "packageNameTemplate": "https://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter",
 | 
				
			||||||
@@ -32,6 +34,13 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "packageRules": [
 | 
					  "packageRules": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "groupName": "Update Node.JS",
 | 
				
			||||||
 | 
					      "matchDepNames": [
 | 
				
			||||||
 | 
					        "docker.io/library/node",
 | 
				
			||||||
 | 
					        "library/node"
 | 
				
			||||||
 | 
					      ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "addLabels": [
 | 
					      "addLabels": [
 | 
				
			||||||
        "renovate/automerge",
 | 
					        "renovate/automerge",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@
 | 
				
			|||||||
{{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.database.existingSecret.secretName ) }}
 | 
					{{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.database.existingSecret.secretName ) }}
 | 
				
			||||||
checksum/secret-database: {{ print $secret.spec | sha256sum }}
 | 
					checksum/secret-database: {{ print $secret.spec | sha256sum }}
 | 
				
			||||||
{{- else }}
 | 
					{{- else }}
 | 
				
			||||||
checksum/secret-database: {{ include (print $.Template.BasePath "/prometheus-postgres-exporter/secretDatabase.yaml") . | sha256sum }}
 | 
					checksum/secret-database: {{ include (print $.Template.BasePath "/secretDatabase.yaml") . | sha256sum }}
 | 
				
			||||||
{{- end }}
 | 
					{{- end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{/* exporter config */}}
 | 
					{{/* exporter config */}}
 | 
				
			||||||
@@ -24,7 +24,7 @@ checksum/secret-database: {{ include (print $.Template.BasePath "/prometheus-pos
 | 
				
			|||||||
{{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.exporterConfig.existingSecret.secretName ) }}
 | 
					{{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.exporterConfig.existingSecret.secretName ) }}
 | 
				
			||||||
checksum/secret-exporter-config: {{ print $secret.spec | sha256sum }}
 | 
					checksum/secret-exporter-config: {{ print $secret.spec | sha256sum }}
 | 
				
			||||||
{{- else }}
 | 
					{{- else }}
 | 
				
			||||||
checksum/secret-exporter-config: {{ include (print $.Template.BasePath "/prometheus-postgres-exporter/secretExporterConfig.yaml") . | sha256sum }}
 | 
					checksum/secret-exporter-config: {{ include (print $.Template.BasePath "/secretExporterConfig.yaml") . | sha256sum }}
 | 
				
			||||||
{{- end }}
 | 
					{{- end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{/* web config */}}
 | 
					{{/* web config */}}
 | 
				
			||||||
@@ -32,7 +32,7 @@ checksum/secret-exporter-config: {{ include (print $.Template.BasePath "/prometh
 | 
				
			|||||||
{{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.webConfig.existingSecret.secretName ) }}
 | 
					{{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.webConfig.existingSecret.secretName ) }}
 | 
				
			||||||
checksum/secret-web-config: {{ print $secret.spec | sha256sum }}
 | 
					checksum/secret-web-config: {{ print $secret.spec | sha256sum }}
 | 
				
			||||||
{{- else }}
 | 
					{{- else }}
 | 
				
			||||||
checksum/secret-web-config: {{ include (print $.Template.BasePath "/prometheus-postgres-exporter/secretWebConfig.yaml") . | sha256sum }}
 | 
					checksum/secret-web-config: {{ include (print $.Template.BasePath "/secretWebConfig.yaml") . | sha256sum }}
 | 
				
			||||||
{{- end }}
 | 
					{{- end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{- end }}
 | 
					{{- end }}
 | 
				
			||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml
 | 
					- templates/configMapGrafanaDashboardPostgresExporter.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Rendering postgresExporter
 | 
					- it: Rendering postgresExporter
 | 
				
			||||||
  asserts:
 | 
					  asserts:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,10 +6,10 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/deployment.yaml
 | 
					- templates/deployment.yaml
 | 
				
			||||||
- templates/prometheus-postgres-exporter/secretDatabase.yaml
 | 
					- templates/secretDatabase.yaml
 | 
				
			||||||
- templates/prometheus-postgres-exporter/secretExporterConfig.yaml
 | 
					- templates/secretExporterConfig.yaml
 | 
				
			||||||
- templates/prometheus-postgres-exporter/secretWebConfig.yaml
 | 
					- templates/secretWebConfig.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Rendering default
 | 
					- it: Rendering default
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -20,16 +20,16 @@ tests:
 | 
				
			|||||||
  asserts:
 | 
					  asserts:
 | 
				
			||||||
  - hasDocuments:
 | 
					  - hasDocuments:
 | 
				
			||||||
      count: 1
 | 
					      count: 1
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - containsDocument:
 | 
					  - containsDocument:
 | 
				
			||||||
      apiVersion: apps/v1
 | 
					      apiVersion: apps/v1
 | 
				
			||||||
      kind: Deployment
 | 
					      kind: Deployment
 | 
				
			||||||
      name: prometheus-postgres-exporter-unittest
 | 
					      name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
      namespace: testing
 | 
					      namespace: testing
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: metadata.annotations
 | 
					      path: metadata.annotations
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: metadata.labels
 | 
					      path: metadata.labels
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -38,20 +38,20 @@ tests:
 | 
				
			|||||||
        app.kubernetes.io/name: prometheus-postgres-exporter
 | 
					        app.kubernetes.io/name: prometheus-postgres-exporter
 | 
				
			||||||
        app.kubernetes.io/version: 0.1.0
 | 
					        app.kubernetes.io/version: 0.1.0
 | 
				
			||||||
        helm.sh/chart: prometheus-postgres-exporter-0.1.0
 | 
					        helm.sh/chart: prometheus-postgres-exporter-0.1.0
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.replicas
 | 
					      path: spec.replicas
 | 
				
			||||||
      value: 1
 | 
					      value: 1
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - exists:
 | 
					  - exists:
 | 
				
			||||||
      path: spec.template.metadata.annotations.checksum/secret-database
 | 
					      path: spec.template.metadata.annotations.checksum/secret-database
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - exists:
 | 
					  - exists:
 | 
				
			||||||
      path: spec.template.metadata.annotations.checksum/secret-exporter-config
 | 
					      path: spec.template.metadata.annotations.checksum/secret-exporter-config
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - exists:
 | 
					  - exists:
 | 
				
			||||||
      path: spec.template.metadata.annotations.checksum/secret-web-config
 | 
					      path: spec.template.metadata.annotations.checksum/secret-web-config
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.metadata.labels
 | 
					      path: spec.template.metadata.labels
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -60,29 +60,29 @@ tests:
 | 
				
			|||||||
        app.kubernetes.io/name: prometheus-postgres-exporter
 | 
					        app.kubernetes.io/name: prometheus-postgres-exporter
 | 
				
			||||||
        app.kubernetes.io/version: 0.1.0
 | 
					        app.kubernetes.io/version: 0.1.0
 | 
				
			||||||
        helm.sh/chart: prometheus-postgres-exporter-0.1.0
 | 
					        helm.sh/chart: prometheus-postgres-exporter-0.1.0
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.affinity
 | 
					      path: spec.template.spec.affinity
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - contains:
 | 
					  - contains:
 | 
				
			||||||
      path: spec.template.spec.containers[0].envFrom
 | 
					      path: spec.template.spec.containers[0].envFrom
 | 
				
			||||||
      content:
 | 
					      content:
 | 
				
			||||||
        secretRef:
 | 
					        secretRef:
 | 
				
			||||||
          name: prometheus-postgres-exporter-unittest-database-env
 | 
					          name: prometheus-postgres-exporter-unittest-database-env
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].args
 | 
					      path: spec.template.spec.containers[0].args
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
      - --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
 | 
					      - --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml
 | 
				
			||||||
      - --web.config.file=/etc/prometheus-postgres-exporter/config.d/webConfig.yaml
 | 
					      - --web.config.file=/etc/prometheus-postgres-exporter/config.d/webConfig.yaml
 | 
				
			||||||
      - --web.listen-address=:9187
 | 
					      - --web.listen-address=:9187
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].volumeMounts
 | 
					      path: spec.template.spec.containers[0].volumeMounts
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
      - mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
					      - mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
				
			||||||
        name: config-d
 | 
					        name: config-d
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.volumes
 | 
					      path: spec.template.spec.volumes
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -94,59 +94,59 @@ tests:
 | 
				
			|||||||
              name: prometheus-postgres-exporter-unittest-exporter-config
 | 
					              name: prometheus-postgres-exporter-unittest-exporter-config
 | 
				
			||||||
          - secret:
 | 
					          - secret:
 | 
				
			||||||
              name: prometheus-postgres-exporter-unittest-web-config
 | 
					              name: prometheus-postgres-exporter-unittest-web-config
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].image
 | 
					      path: spec.template.spec.containers[0].image
 | 
				
			||||||
      value: quay.io/prometheuscommunity/postgres-exporter:v0.1.0
 | 
					      value: quay.io/prometheuscommunity/postgres-exporter:v0.1.0
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].imagePullPolicy
 | 
					      path: spec.template.spec.containers[0].imagePullPolicy
 | 
				
			||||||
      value: IfNotPresent
 | 
					      value: IfNotPresent
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.containers[0].resources
 | 
					      path: spec.template.spec.containers[0].resources
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.containers[0].securityContext
 | 
					      path: spec.template.spec.containers[0].securityContext
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.dnsConfig
 | 
					      path: spec.template.spec.dnsConfig
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.dnsPolicy
 | 
					      path: spec.template.spec.dnsPolicy
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.hostname
 | 
					      path: spec.template.spec.hostname
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.hostNetwork
 | 
					      path: spec.template.spec.hostNetwork
 | 
				
			||||||
      value: false
 | 
					      value: false
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.imagePullSecrets
 | 
					      path: spec.template.spec.imagePullSecrets
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.nodeSelector
 | 
					      path: spec.template.spec.nodeSelector
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.priorityClassName
 | 
					      path: spec.template.spec.priorityClassName
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.restartPolicy
 | 
					      path: spec.template.spec.restartPolicy
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.subdomain
 | 
					      path: spec.template.spec.subdomain
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.terminationGracePeriodSeconds
 | 
					      path: spec.template.spec.terminationGracePeriodSeconds
 | 
				
			||||||
      value: 60
 | 
					      value: 60
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.tolerations
 | 
					      path: spec.template.spec.tolerations
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - notExists:
 | 
					  - notExists:
 | 
				
			||||||
      path: spec.template.spec.topologySpreadConstraints
 | 
					      path: spec.template.spec.topologySpreadConstraints
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.strategy
 | 
					      path: spec.strategy
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -154,7 +154,7 @@ tests:
 | 
				
			|||||||
        rollingUpdate:
 | 
					        rollingUpdate:
 | 
				
			||||||
          maxSurge: 1
 | 
					          maxSurge: 1
 | 
				
			||||||
          maxUnavailable: 1
 | 
					          maxUnavailable: 1
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test custom replicas
 | 
					- it: Test custom replicas
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -169,7 +169,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.replicas
 | 
					      path: spec.replicas
 | 
				
			||||||
      value: 3
 | 
					      value: 3
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test custom affinity
 | 
					- it: Test custom affinity
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -202,7 +202,7 @@ tests:
 | 
				
			|||||||
                values:
 | 
					                values:
 | 
				
			||||||
                - antarctica-east1
 | 
					                - antarctica-east1
 | 
				
			||||||
                - antarctica-west1
 | 
					                - antarctica-west1
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test additional arguments
 | 
					- it: Test additional arguments
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -224,7 +224,7 @@ tests:
 | 
				
			|||||||
      - --web.listen-address=:9187
 | 
					      - --web.listen-address=:9187
 | 
				
			||||||
      - --foo=bar
 | 
					      - --foo=bar
 | 
				
			||||||
      - --bar=foo
 | 
					      - --bar=foo
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test custom imageRegistry and imageRepository
 | 
					- it: Test custom imageRegistry and imageRepository
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -240,7 +240,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].image
 | 
					      path: spec.template.spec.containers[0].image
 | 
				
			||||||
      value: registry.example.local/path/special/prometheus-postgres-exporter:v0.1.0
 | 
					      value: registry.example.local/path/special/prometheus-postgres-exporter:v0.1.0
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test custom imagePullPolicy
 | 
					- it: Test custom imagePullPolicy
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -255,7 +255,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].imagePullPolicy
 | 
					      path: spec.template.spec.containers[0].imagePullPolicy
 | 
				
			||||||
      value: Always
 | 
					      value: Always
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test config.database.existingSecret
 | 
					- it: Test config.database.existingSecret
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -268,7 +268,7 @@ tests:
 | 
				
			|||||||
      content:
 | 
					      content:
 | 
				
			||||||
        secretRef:
 | 
					        secretRef:
 | 
				
			||||||
          name: custom-database-secret
 | 
					          name: custom-database-secret
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test config.exporterConfig.existingSecret
 | 
					- it: Test config.exporterConfig.existingSecret
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -286,7 +286,7 @@ tests:
 | 
				
			|||||||
      value:
 | 
					      value:
 | 
				
			||||||
      - mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
					      - mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
				
			||||||
        name: config-d
 | 
					        name: config-d
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.volumes
 | 
					      path: spec.template.spec.volumes
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -298,7 +298,7 @@ tests:
 | 
				
			|||||||
              name: exporter-config-secret
 | 
					              name: exporter-config-secret
 | 
				
			||||||
          - secret:
 | 
					          - secret:
 | 
				
			||||||
              name: prometheus-postgres-exporter-unittest-web-config
 | 
					              name: prometheus-postgres-exporter-unittest-web-config
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test config.webConfig.existingSecret
 | 
					- it: Test config.webConfig.existingSecret
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -316,7 +316,7 @@ tests:
 | 
				
			|||||||
      value:
 | 
					      value:
 | 
				
			||||||
      - mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
					      - mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
				
			||||||
        name: config-d
 | 
					        name: config-d
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.volumes
 | 
					      path: spec.template.spec.volumes
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -328,7 +328,7 @@ tests:
 | 
				
			|||||||
              name: prometheus-postgres-exporter-unittest-exporter-config
 | 
					              name: prometheus-postgres-exporter-unittest-exporter-config
 | 
				
			||||||
          - secret:
 | 
					          - secret:
 | 
				
			||||||
              name: web-config-secret
 | 
					              name: web-config-secret
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test custom resource limits and requests
 | 
					- it: Test custom resource limits and requests
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -354,7 +354,7 @@ tests:
 | 
				
			|||||||
          resourceFieldRef:
 | 
					          resourceFieldRef:
 | 
				
			||||||
            divisor: "1"
 | 
					            divisor: "1"
 | 
				
			||||||
            resource: limits.cpu
 | 
					            resource: limits.cpu
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.containers[0].resources
 | 
					      path: spec.template.spec.containers[0].resources
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -364,7 +364,7 @@ tests:
 | 
				
			|||||||
        requests:
 | 
					        requests:
 | 
				
			||||||
          cpu: 25m
 | 
					          cpu: 25m
 | 
				
			||||||
          memory: 100MB
 | 
					          memory: 100MB
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test custom securityContext
 | 
					- it: Test custom securityContext
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -397,7 +397,7 @@ tests:
 | 
				
			|||||||
        readOnlyRootFilesystem: true
 | 
					        readOnlyRootFilesystem: true
 | 
				
			||||||
        runAsNonRoot: true
 | 
					        runAsNonRoot: true
 | 
				
			||||||
        runAsUser: 1000
 | 
					        runAsUser: 1000
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test dnsConfig
 | 
					- it: Test dnsConfig
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -418,7 +418,7 @@ tests:
 | 
				
			|||||||
        nameservers:
 | 
					        nameservers:
 | 
				
			||||||
        - "8.8.8.8"
 | 
					        - "8.8.8.8"
 | 
				
			||||||
        - "8.8.4.4"
 | 
					        - "8.8.4.4"
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test dnsPolicy
 | 
					- it: Test dnsPolicy
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -433,7 +433,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.dnsPolicy
 | 
					      path: spec.template.spec.dnsPolicy
 | 
				
			||||||
      value: ClusterFirst
 | 
					      value: ClusterFirst
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test hostNetwork, hostname, subdomain
 | 
					- it: Test hostNetwork, hostname, subdomain
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -450,15 +450,15 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.hostNetwork
 | 
					      path: spec.template.spec.hostNetwork
 | 
				
			||||||
      value: true
 | 
					      value: true
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.hostname
 | 
					      path: spec.template.spec.hostname
 | 
				
			||||||
      value: pg-exporter
 | 
					      value: pg-exporter
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.subdomain
 | 
					      path: spec.template.spec.subdomain
 | 
				
			||||||
      value: exporters.internal
 | 
					      value: exporters.internal
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test imagePullSecrets
 | 
					- it: Test imagePullSecrets
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -477,7 +477,7 @@ tests:
 | 
				
			|||||||
      value:
 | 
					      value:
 | 
				
			||||||
      - name: my-pull-secret
 | 
					      - name: my-pull-secret
 | 
				
			||||||
      - name: my-special-secret
 | 
					      - name: my-special-secret
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test nodeSelector
 | 
					- it: Test nodeSelector
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -494,7 +494,7 @@ tests:
 | 
				
			|||||||
      path: spec.template.spec.nodeSelector
 | 
					      path: spec.template.spec.nodeSelector
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
        foo: bar
 | 
					        foo: bar
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test priorityClassName
 | 
					- it: Test priorityClassName
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -509,7 +509,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.priorityClassName
 | 
					      path: spec.template.spec.priorityClassName
 | 
				
			||||||
      value: my-priority
 | 
					      value: my-priority
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test restartPolicy
 | 
					- it: Test restartPolicy
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -524,7 +524,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.restartPolicy
 | 
					      path: spec.template.spec.restartPolicy
 | 
				
			||||||
      value: Always
 | 
					      value: Always
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test terminationGracePeriodSeconds
 | 
					- it: Test terminationGracePeriodSeconds
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -539,7 +539,7 @@ tests:
 | 
				
			|||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.terminationGracePeriodSeconds
 | 
					      path: spec.template.spec.terminationGracePeriodSeconds
 | 
				
			||||||
      value: 120
 | 
					      value: 120
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test tolerations
 | 
					- it: Test tolerations
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -562,7 +562,7 @@ tests:
 | 
				
			|||||||
        operator: Equal
 | 
					        operator: Equal
 | 
				
			||||||
        value: postgres
 | 
					        value: postgres
 | 
				
			||||||
        effect: NoSchedule
 | 
					        effect: NoSchedule
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test topologySpreadConstraints
 | 
					- it: Test topologySpreadConstraints
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -587,7 +587,7 @@ tests:
 | 
				
			|||||||
        labelSelector:
 | 
					        labelSelector:
 | 
				
			||||||
          matchLabels:
 | 
					          matchLabels:
 | 
				
			||||||
            app.kubernetes.io/instance: prometheus-postgres-exporter
 | 
					            app.kubernetes.io/instance: prometheus-postgres-exporter
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- it: Test additional volumeMounts and volumes
 | 
					- it: Test additional volumeMounts and volumes
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
@@ -612,7 +612,7 @@ tests:
 | 
				
			|||||||
        mountPath: /usr/lib/prometheus-postgres-exporter/data
 | 
					        mountPath: /usr/lib/prometheus-postgres-exporter/data
 | 
				
			||||||
      - name: config-d
 | 
					      - name: config-d
 | 
				
			||||||
        mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
					        mountPath: /etc/prometheus-postgres-exporter/config.d
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
  - equal:
 | 
					  - equal:
 | 
				
			||||||
      path: spec.template.spec.volumes
 | 
					      path: spec.template.spec.volumes
 | 
				
			||||||
      value:
 | 
					      value:
 | 
				
			||||||
@@ -627,4 +627,4 @@ tests:
 | 
				
			|||||||
              name: prometheus-postgres-exporter-unittest-exporter-config
 | 
					              name: prometheus-postgres-exporter-unittest-exporter-config
 | 
				
			||||||
          - secret:
 | 
					          - secret:
 | 
				
			||||||
              name: prometheus-postgres-exporter-unittest-web-config
 | 
					              name: prometheus-postgres-exporter-unittest-web-config
 | 
				
			||||||
    template: templates/prometheus-postgres-exporter/deployment.yaml
 | 
					    template: templates/deployment.yaml
 | 
				
			||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/ingress.yaml
 | 
					- templates/ingress.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip ingress by default.
 | 
					- it: Skip ingress by default.
 | 
				
			||||||
  asserts:
 | 
					  asserts:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/networkPolicies.yaml
 | 
					- templates/networkPolicies.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip networkPolicies in general disabled.
 | 
					- it: Skip networkPolicies in general disabled.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/podMonitor.yaml
 | 
					- templates/podMonitor.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip podMonitor when metrics are disabled.
 | 
					- it: Skip podMonitor when metrics are disabled.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/secretDatabase.yaml
 | 
					- templates/secretDatabase.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip rendering by using existing secret.
 | 
					- it: Skip rendering by using existing secret.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/secretExporterConfig.yaml
 | 
					- templates/secretExporterConfig.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip rendering by using existing secret.
 | 
					- it: Skip rendering by using existing secret.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/secretWebConfig.yaml
 | 
					- templates/secretWebConfig.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Rendering default secret.
 | 
					- it: Rendering default secret.
 | 
				
			||||||
  asserts:
 | 
					  asserts:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/serviceAccount.yaml
 | 
					- templates/serviceAccount.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip rendering.
 | 
					- it: Skip rendering.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/serviceMonitorHTTP.yaml
 | 
					- templates/serviceMonitorHTTP.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip serviceMonitor when service is disabled.
 | 
					- it: Skip serviceMonitor when service is disabled.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ release:
 | 
				
			|||||||
  name: prometheus-postgres-exporter-unittest
 | 
					  name: prometheus-postgres-exporter-unittest
 | 
				
			||||||
  namespace: testing
 | 
					  namespace: testing
 | 
				
			||||||
templates:
 | 
					templates:
 | 
				
			||||||
- templates/prometheus-postgres-exporter/serviceHTTP.yaml
 | 
					- templates/serviceHTTP.yaml
 | 
				
			||||||
tests:
 | 
					tests:
 | 
				
			||||||
- it: Skip service when disabled.
 | 
					- it: Skip service when disabled.
 | 
				
			||||||
  set:
 | 
					  set:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
# Declare variables to be passed into your templates.
 | 
					# Declare variables to be passed into your templates.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## @section Global
 | 
					## @section Global
 | 
				
			||||||
## @param nameOverride Individual release name suffix.
 | 
					## @param nameOverride Individual release name suffix.
 | 
				
			||||||
## @param fullnameOverride Override the complete release name logic.
 | 
					## @param fullnameOverride Override the complete release name logic.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user