bitnami-labs / sealed-secrets

A Kubernetes controller and tool for one-way encrypted Secrets

Home Page:https://sealed-secrets.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`commonAnnotations` are not implemented for all resources

lindhe opened this issue · comments

The documentation for the commonAnnotations value says "Annotations to add to all deployed resources":

## @param commonAnnotations [object] Annotations to add to all deployed resources

Yet, not all resources have annotations at all, let alone the common annotations:

metadata:
name: {{ include "sealed-secrets.fullname" . }}
labels: {{- include "sealed-secrets.labels" . | nindent 4 }}
{{- if .Values.rbac.labels }}
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
{{- end }}

I suggest we implement commonAnnotations to work as documented. Depending on the circumstances, it might be good to implement it via a template in _helpers.tpl and reference that instead.