Skip to content

Commit

Permalink
add annotations + podAnnotations (#212)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
b17k0 and nabokihms authored Aug 20, 2024
1 parent 9a20fd3 commit 67fa1c9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/k8s-image-availability-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.9.0"
description: Application for monitoring the cluster workloads image presence in a container registry.
name: k8s-image-availability-exporter
version: "0.14.0"
version: "0.15.0"
kubeVersion: ">=1.14.0-0"
maintainers:
- name: nabokihms
Expand Down
4 changes: 3 additions & 1 deletion charts/k8s-image-availability-exporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k8s-image-availability-exporter

![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)
![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)

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

Expand All @@ -27,6 +27,8 @@ This chart bootstraps a [k8s-image-availability-exporter](https://github.com/fla
| k8sImageAvailabilityExporter.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy to use for the k8s-image-availability-exporter deployment |
| k8sImageAvailabilityExporter.args | list | `["--bind-address=:8080"]` | Command line arguments for the exporter |
| k8sImageAvailabilityExporter.useSecretsForPrivateRepositories | bool | `true` | Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access |
| annotations | object | `{}` | additional annotations for deployment |
| podAnnotations | object | `{}` | additional annotations added to the pod |
| replicaCount | int | `1` | Number of replicas (pods) to launch. |
| 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). |
| 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. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "k8s-image-availability-exporter.fullname" . }}
{{- with .Values.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
labels:
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/name: "{{ template "k8s-image-availability-exporter.fullname" . }}"
Expand All @@ -21,6 +24,9 @@ spec:
app: {{ template "k8s-image-availability-exporter.fullname" . }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations: {{- toYaml . | nindent 8 }}
{{- end }}
labels:
app: {{ template "k8s-image-availability-exporter.fullname" . }}
spec:
Expand Down
6 changes: 6 additions & 0 deletions charts/k8s-image-availability-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ k8sImageAvailabilityExporter:
# -- Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access
useSecretsForPrivateRepositories: true

# -- additional annotations for deployment
annotations: {}

# -- additional annotations added to the pod
podAnnotations: {}

# -- Number of replicas (pods) to launch.
replicaCount: 1

Expand Down

0 comments on commit 67fa1c9

Please sign in to comment.