3 Commits

Author SHA1 Message Date
ad69f02f8f fix(deployment): set resourceFieldRef.divisor
All checks were successful
Release / publish-chart (push) Successful in 28s
2025-01-15 21:13:30 +01:00
3ea3f94429 chore(deps): update docker.io/library/node docker tag to v22.13.0
All checks were successful
Helm / helm-lint (pull_request) Successful in 22s
Helm / helm-unittest (pull_request) Successful in 19s
Release / publish-chart (push) Successful in 21s
2025-01-14 23:38:20 +00:00
11c58d99fa chore(deps): update docker.io/volkerraschek/helm docker tag to v3.16.4
All checks were successful
Helm / helm-lint (pull_request) Successful in 18s
Helm / helm-unittest (pull_request) Successful in 18s
2025-01-14 22:22:29 +00:00
6 changed files with 8 additions and 7 deletions

View File

@ -13,7 +13,7 @@ on:
jobs: jobs:
generate-parameters: generate-parameters:
container: container:
image: docker.io/library/node:22.9.0-alpine image: docker.io/library/node:22.13.0-alpine
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:

View File

@ -11,7 +11,7 @@ on:
jobs: jobs:
helm-lint: helm-lint:
container: container:
image: docker.io/volkerraschek/helm:3.16.1 image: docker.io/volkerraschek/helm:3.16.4
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:
@ -26,7 +26,7 @@ jobs:
helm-unittest: helm-unittest:
container: container:
image: docker.io/volkerraschek/helm:3.16.1 image: docker.io/volkerraschek/helm:3.16.4
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:

View File

@ -13,7 +13,7 @@ on:
jobs: jobs:
markdown-link-checker: markdown-link-checker:
container: container:
image: docker.io/library/node:22.9.0-alpine image: docker.io/library/node:22.13.0-alpine
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:
@ -29,7 +29,7 @@ jobs:
markdown-lint: markdown-lint:
container: container:
image: docker.io/library/node:22.9.0-alpine image: docker.io/library/node:22.13.0-alpine
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
publish-chart: publish-chart:
container: container:
image: docker.io/volkerraschek/helm:3.16.1 image: docker.io/volkerraschek/helm:3.16.4
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install tooling - name: Install tooling

View File

@ -14,7 +14,7 @@
{{- define "prometheus-postgres-exporter.deployment.env" -}} {{- define "prometheus-postgres-exporter.deployment.env" -}}
{{- $env := dict "env" (.Values.deployment.postgresExporter.env | default (list) ) }} {{- $env := dict "env" (.Values.deployment.postgresExporter.env | default (list) ) }}
{{- if and (hasKey .Values.deployment.postgresExporter.resources "limits") (hasKey .Values.deployment.postgresExporter.resources.limits "cpu") }} {{- if and (hasKey .Values.deployment.postgresExporter.resources "limits") (hasKey .Values.deployment.postgresExporter.resources.limits "cpu") }}
{{- $env = merge $env (dict "env" (list (dict "name" "GOMAXPROCS" "valueFrom" (dict "resourceFieldRef" (dict "resource" "limits.cpu"))))) }} {{- $env = merge $env (dict "env" (list (dict "name" "GOMAXPROCS" "valueFrom" (dict "resourceFieldRef" (dict "divisor" "1" "resource" "limits.cpu"))))) }}
{{- end }} {{- end }}
{{ toYaml $env }} {{ toYaml $env }}
{{- end -}} {{- end -}}

View File

@ -233,6 +233,7 @@ tests:
- name: GOMAXPROCS - name: GOMAXPROCS
valueFrom: valueFrom:
resourceFieldRef: resourceFieldRef:
divisor: "1"
resource: limits.cpu resource: limits.cpu
- equal: - equal:
path: spec.template.spec.containers[0].resources path: spec.template.spec.containers[0].resources