[helm/charts] [stable/prometheus-pushgateway] Expose imagePullSecrets attribute (#23307)

From: notifications@github.com
Domain: IP info github.com
MX-server: IP info out-24.smtp.github.com
Size: 1944 Bytes
Create: 2020-07-22
Update: 2020-07-22
Score: 0
Safe: Yes

Outbound domains: github.com |

We want to use the official prometheus-pushgateway helm chart but store the chart on our private registry.

We are facing a problem when using the official prometheus-pushgateway helm chart from our private registry.

For this to work we need to expose the image.pullSecrets or imagePullSecrets attribute in the values.yaml. This values should then be used in the deployment.yaml. We can then pass our name for imagePullSecrets.

Without this feature we need to copy the official helm chart into our codebase which is undesirable (this is what we have done for now).

Following is a sample solution :

Add the following in values.yaml :

imagePullSecrets:

  • name: registrycredentials

Add the following in deployment.yaml:

spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Want to protect your real email from messages like this? Use TempM email and be more secure on the internet.