Compare commits

...

2 Commits

4 changed files with 5 additions and 4 deletions
.gitea/workflows
templates/prometheus-postgres-exporter
unittests/deployment

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

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

@ -14,7 +14,7 @@
{{- define "prometheus-postgres-exporter.deployment.env" -}}
{{- $env := dict "env" (.Values.deployment.postgresExporter.env | default (list) ) }}
{{- 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 }}
{{ toYaml $env }}
{{- end -}}

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