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

Provide user utilites #1140

Closed
iocanel opened this issue Jul 13, 2018 · 0 comments
Closed

Provide user utilites #1140

iocanel opened this issue Jul 13, 2018 · 0 comments
Labels

Comments

@iocanel
Copy link
Member

iocanel commented Jul 13, 2018

We have lots of utilites that are mostly meant for internal consumption.
The lack of a non-internal utility for doing simple things with Kubernetes resource has led a lot of people using KubernetesHelper which was always meant to be replaced by the client.

We should create a utility class that provides at least the following:

  • Sanitize strings based on the Kubernetes regex for:

    • resource names
    • resource labesl
    • resource annotations
  • Null safe operations for:

    • name
    • namespace
    • labels
    • annotations

Maybe more need to be added, but for now, these would suffice.

rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 3, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 7, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants