You've already forked prometheus-postgres-exporter
Compare commits
3 Commits
5808a09234
...
0.3.1
Author | SHA1 | Date | |
---|---|---|---|
ad69f02f8f
|
|||
3ea3f94429
|
|||
11c58d99fa
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user