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

Allow deployments to get custom labels from values.yaml #2949

Open
sam-som opened this issue Nov 16, 2022 · 4 comments
Open

Allow deployments to get custom labels from values.yaml #2949

sam-som opened this issue Nov 16, 2022 · 4 comments

Comments

@sam-som
Copy link

sam-som commented Nov 16, 2022

Proposed change

  • Allow custom labels from values.yaml to be applied to deployments. Currently these custom labels are only added at the pods level and not at the deployments level
    • hub
    • proxy
    • proxy -> autohttps
    • user-scheduler

Who would use this feature?

  • User who would like to apply custom labels to the deployments (and not just the pods)
  • Example usage: We are adding OPA to our k8s, but we currently cannot enforce required-labels for jupyterhub deployments

(Optional): Suggest a solution

@welcome
Copy link

welcome bot commented Nov 16, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@consideRatio
Copy link
Member

Hey @sam-som!

Could you try to:

  • provide a practical example of labels you want to set on your deployment resources?
  • clarify if you think it makes for the labels you set to be the same or separate from the labels you set on the pod templates?

I don't know much about OPA, but I assume it allows for various rules to be defined and enforced. It would be relevant to understand what kind of rule enforcement makes you need to set labels on the deployment resources as well.

@sam-som
Copy link
Author

sam-som commented Nov 16, 2022

Hi @consideRatio
Thank you for your quick response

  • For our use case, we are implementing enforcement in OPA that requires all deployments in all our clusters to have 2 labels (team: <team-name> and env: <dev|staging|prod>). This enforcement would allow us to do audits, cost analysis, and establish ownership of resources in the clusters.
  • In my opinion (and our use case), it makes sense for pods and their deployment to have the same set of labels

@sam-som
Copy link
Author

sam-som commented May 9, 2023

Hi @consideRatio 👋
I want to follow up on this issue
If we want to go forward with this, i can get the PR into mergeable state

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

2 participants