Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add annotations + podAnnotations #212

Merged
merged 5 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading