Skip to content

Add ability to pass pod annotations and labels at the template level #798

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

Conversation

wookasz
Copy link

@wookasz wookasz commented Mar 16, 2018

What

  • Add ability to set template.metadata.annotations and template.metadata.labels as pod metadata

Why
Labels are helpful when searching for k8s resources.

Annotations are another type of metadata k8s supports. They can be used by various tools like kube2iam.

Addresses #781 at least partially

Testing
Add metadata to templates. Submit job. Test annotations and labels were added with kubectl describe pod <pod-name>. See examples/pod-metadata.yaml.

Lukasz Lempart added 3 commits March 14, 2018 15:48
**What**
- Add ability to set `template.metadata.annotations` and `template.metadata.labels` as pod metadata

**Why**
Labels are helpful when searching for k8s resources.

Annotations are another type of metadata k8s supports. They can be used by various tools like [kube2iam](https://github.com/jtblin/kube2iam).

**Testing**
Add metadata to templates. Submit job. Test annotations and labels were added with `kubectl describe pod <pod-name>`. See `examples/pod-metadata.yaml`.
@wookasz wookasz changed the title Add ability to pass pod annotations and labels at the template level WIP: Add ability to pass pod annotations and labels at the template level Mar 17, 2018
@wookasz wookasz changed the title WIP: Add ability to pass pod annotations and labels at the template level Add ability to pass pod annotations and labels at the template level Mar 17, 2018
@wookasz wookasz force-pushed the wookasz/ch8116/add-pod-annotations-and-labels-to-argo branch from 1d677af to 284502b Compare March 17, 2018 01:19
Copy link
Contributor

@alexmt alexmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thank you for implementing it @wookasz !

@alexmt alexmt merged commit 3b2c426 into argoproj:master Mar 19, 2018
icecoffee531 pushed a commit to icecoffee531/argo-workflows that referenced this pull request Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants