Skip to content

[RFE] Allow annotating deployments #1190

@cognifloyd

Description

@cognifloyd

Is your feature request related to a problem? Please describe.
I need to annotate deployments due to a kyverno admissions policy in my cluster that requires some annotations on all deployments (in this case, the team responsible for the deployment).

Describe the solution you'd like
Add one or more properties in the Pulp resource spec to allow me to annotate the deployments. One property for each of the deployments:

kind: Pulp
spec:
  api:
    deploy_annotations:
      annotation-name: annotation-value
  content:
    deploy_annotations:
      annotation-name: annotation-value
  worker:
    deploy_annotations:
      annotation-name: annotation-value
  web:
    deploy_annotations:
      annotation-name: annotation-value

Describe alternatives you've considered
Or there could be one top-level property for all of the deployments.

kind: Pulp
spec:
  deploy_annotations:
    annotation-name: annotation-value

We could also use annotations instead of deploy_annotations and add the same annotation to both deployment, replicaset, and pod. I only need it on deployments; I'm indifferent to annotating the other resources.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions