Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Default labels

Brad Vrabete September 28, 2021

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
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2021

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. 

Brad Vrabete October 1, 2021

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
AUG Leaders

Atlassian Community Events