Custom Deployment annotations
Problem to solve
It is not possible to customize the deployment annotations
Proposal
Add the following values:
-
deploymentAnnotations
mimickingpodAnnotations
but at the Deployment level -
workers.$worker.deploymentAnnotations
, mimicking `workers.$worker. but at the worker Deployment level
and template tests for both.
Motivation
Makes it possible to use the 1password operator with Auto Deploy: To create a single Kubernetes Secret for a deployment, add the following annotations to the deployment metadata:
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment-example
annotations:
operator.1password.io/item-path: "vaults/<vault_id_or_title>/items/<item_id_or_title>"
operator.1password.io/item-name: "<secret_name>"
Applying this YAML file will create a Kubernetes Secret with the name <secret_name>
and contents from the location specified at the specified Item Path.
Edited by Hordur Freyr Yngvason