You've already forked prometheus-postgres-exporter
							
							Compare commits
	
		
			2 Commits
		
	
	
		
			0.3.0
			...
			301d662a85
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 301d662a85 | |||
| ad69f02f8f | 
| @@ -13,7 +13,7 @@ on: | |||||||
| jobs: | jobs: | ||||||
|   generate-parameters: |   generate-parameters: | ||||||
|     container: |     container: | ||||||
|       image: docker.io/library/node:22.13.0-alpine |       image: docker.io/library/node:23.6.0-alpine | ||||||
|     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.13.0-alpine |       image: docker.io/library/node:23.6.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.13.0-alpine |       image: docker.io/library/node:23.6.0-alpine | ||||||
|     runs-on: |     runs-on: | ||||||
|     - ubuntu-latest |     - ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|   | |||||||
| @@ -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