Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

fix: sanitize cluster name param by replacing unsupported character #237

Merged
merged 1 commit into from
May 24, 2021

Conversation

chetan-rns
Copy link
Member

Sanitize the cluster name in accordance with the below rules

  1. contain no more than 253 characters
  2. contain only lowercase alphanumeric characters, '-' or '.'
  3. start and end with an alphanumeric character

Closes: #166

Signed-off-by: Chetan Banavikalmutt chetanrns1997@gmail.com

Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
@jgwest jgwest self-requested a review May 24, 2021 20:15
Copy link
Member

@jgwest jgwest left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @chetan-rns!

@jgwest jgwest merged commit 48a7b47 into argoproj:master May 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sanitize cluster name field by replacing unsupported characters
2 participants