Skip to content

Commit 67fa1c9

Browse files
bilkouanabokihms
andauthored
add annotations + podAnnotations (#212)
Signed-off-by: beliys <[email protected]> Signed-off-by: bko <[email protected]> Signed-off-by: Oleksander B <[email protected]> Signed-off-by: Maksim Nabokikh <[email protected]> Co-authored-by: Maksim Nabokikh <[email protected]>
1 parent 9a20fd3 commit 67fa1c9

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

charts/k8s-image-availability-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "0.9.0"
33
description: Application for monitoring the cluster workloads image presence in a container registry.
44
name: k8s-image-availability-exporter
5-
version: "0.14.0"
5+
version: "0.15.0"
66
kubeVersion: ">=1.14.0-0"
77
maintainers:
88
- name: nabokihms

charts/k8s-image-availability-exporter/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# k8s-image-availability-exporter
22

3-
![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square)
3+
![Version: 0.15.0](https://img.shields.io/badge/Version-0.15.0-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square)
44

55
Application for monitoring the cluster workloads image presence in a container registry.
66

@@ -27,6 +27,8 @@ This chart bootstraps a [k8s-image-availability-exporter](https://github.com/fla
2727
| k8sImageAvailabilityExporter.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy to use for the k8s-image-availability-exporter deployment |
2828
| k8sImageAvailabilityExporter.args | list | `["--bind-address=:8080"]` | Command line arguments for the exporter |
2929
| k8sImageAvailabilityExporter.useSecretsForPrivateRepositories | bool | `true` | Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access |
30+
| annotations | object | `{}` | additional annotations for deployment |
31+
| podAnnotations | object | `{}` | additional annotations added to the pod |
3032
| replicaCount | int | `1` | Number of replicas (pods) to launch. |
3133
| imagePullSecrets | list | `[]` | Reference to one or more secrets to be used when [pulling images](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret) (from private registries). |
3234
| podSecurityContext | object | `{}` | Pod [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod). See the [API reference](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context) for details. |

charts/k8s-image-availability-exporter/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ template "k8s-image-availability-exporter.fullname" . }}
5+
{{- with .Values.annotations }}
6+
annotations: {{- toYaml . | nindent 4 }}
7+
{{- end }}
58
labels:
69
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
710
app.kubernetes.io/name: "{{ template "k8s-image-availability-exporter.fullname" . }}"
@@ -21,6 +24,9 @@ spec:
2124
app: {{ template "k8s-image-availability-exporter.fullname" . }}
2225
template:
2326
metadata:
27+
{{- with .Values.podAnnotations }}
28+
annotations: {{- toYaml . | nindent 8 }}
29+
{{- end }}
2430
labels:
2531
app: {{ template "k8s-image-availability-exporter.fullname" . }}
2632
spec:

charts/k8s-image-availability-exporter/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ k8sImageAvailabilityExporter:
1313
# -- Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access
1414
useSecretsForPrivateRepositories: true
1515

16+
# -- additional annotations for deployment
17+
annotations: {}
18+
19+
# -- additional annotations added to the pod
20+
podAnnotations: {}
21+
1622
# -- Number of replicas (pods) to launch.
1723
replicaCount: 1
1824

0 commit comments

Comments
 (0)