Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Default labels

When using BitBucket in conjunction to Jira, creatig a branch name from a JIRA ticket might exceed the 63 character limit of a Kubernetes label. Could the atlassian/aws-eks-kubectl-run be updated to truncate long branch names and make sure the labels are valid for Kubernetes?

1 answer

0 votes

Hi @Brad Vrabete . Thanks for your question. We will discuss with the team this case. 
Unfortunately, i am not sure about automatic truncation of the branch. Instead maybe we will add validation or warn users in readme about character limit and provide your solution from this thread:

script:
# shrink bitbucket branch name to less than 63 characters
  - branch="${BITBUCKET_BRANCH}"
  - export BITBUCKET_BRANCH=${branch:0:62}
  - pipeatlassian/aws-eks-kubectl-run:2.1.0  


Regards, Igor. 

That is a label, metadata. These longer label are automatically generated by a Jira based workflow, not manually and they are a truncation of the Jira ticket name. Ideally they should not be generated that long. 

In any case, I will be truncating branch names before applying the kubectl command.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

111 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you