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

feat: add common labels to all resources that get created or applied via Recipe #154

Open
AmitKumarDas opened this issue Oct 19, 2020 · 1 comment

Comments

@AmitKumarDas
Copy link

ProblemStatement: As a SRE admin, I want to apply common labels across all resources that either get created or applied as Recipe tasks.

@AmitKumarDas
Copy link
Author

AmitKumarDas commented Oct 19, 2020

Design Draft

kind: Recipe
metadata:
  labels:
    label.recipe.dope.mayadata.io/my-app: common-val
    label.recipe.dope.mayadata.io/my-app-2: common-val-2
spec:
  tasks:
  - create:
    state:
      kind: Pod
      metadata:
      spec:
  - apply:
    state:
      kind: Pod
      metadata:
      spec:
  • Above recipe when applied should create Pods with following labels:
labels:
  my-app: common-val
  my-app2: common-val2

NOTE:

  • Similar enhancements may be done to apply common annotations & finalizers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant