Skip to content

Commit

Permalink
ipmi-exporter: Add ability to specify imagePullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
gtirloni committed Jul 5, 2024
1 parent f956176 commit c3bcee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/ipmi_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ ipmi_exporter_config:
- 185 # Entity Presence (Dell PowerEdge servers)

# ]]]
# Container registry credentials (https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry)
#ipmi_exporter_imagepullsecrets:
# - name: regcred
1 change: 1 addition & 0 deletions roles/ipmi_exporter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
application: ipmi-exporter
job: ipmi
spec:
imagePullSecrets: "{{ ipmi_exporter_imagepullsecrets if ipmi_exporter_imagepullsecrets is defined else [] }}"
containers:
- name: exporter
image: "{{ atmosphere_images['prometheus_ipmi_exporter'] | vexxhost.kubernetes.docker_image('ref') }}"
Expand Down

0 comments on commit c3bcee0

Please sign in to comment.