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

Labels should be applied to deployment metadata.labels #659

Open
brandonkal opened this issue Jun 26, 2020 · 1 comment
Open

Labels should be applied to deployment metadata.labels #659

brandonkal opened this issue Jun 26, 2020 · 1 comment

Comments

@brandonkal
Copy link

Expected Behaviour

The function controller should copy its spec.labels to the deployment's and service's metadata.labels. Right now it is only copied into spec.template.metadata.labels.

This will help associate the deployment with the Function CR for deployment tools like kapp.

Current Behaviour

spec.labels are only applied to created Pods. This is counter-intuitive.

I can make a PR.

Context

I use kapp to deploy objects to kubernetes. kapp uses labels to track associated resources. Because the Function controller does not apply the desired labels to its children, it

Your Environment

  • What version and distriubtion of Kubernetes are you using? kubectl version

v1.18.3+k3s1 (and it is spelled distribution)

  • Operating System and version (e.g. Linux, Windows, MacOS): Linux
@alexellis
Copy link
Member

@brandonkal do you still need this?

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

No branches or pull requests

2 participants