Skip to content

Commit

Permalink
chore: e2e: clean up cluster name format
Browse files Browse the repository at this point in the history
  • Loading branch information
cbang-akamai committed Apr 2, 2024
1 parent dd192df commit 9d905de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ spec:
- name: run
value: (join('-', ['e2e', 'min-cluster', env('GIT_REF')]))
- name: cluster
# Format the cluster name into a valid Linode label
# TODO: This is over-truncated to account for the Linode NodeBalancer label
value: (trim((truncate(($run), `21`)), '-'))
# Format the cluster name
value: (trim((truncate(($run), `32`)), '-'))
- name: nodebalancer
value: ($cluster)
template: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ spec:
- name: run
value: (join('-', ['e2e', 'min-lm', env('GIT_REF')]))
- name: cluster
# Format the cluster name into a valid Linode label
# TODO: This is over-truncated to account for the Linode NodeBalancer label
value: (trim((truncate(($run), `21`)), '-'))
# Format the cluster name
value: (trim((truncate(($run), `32`)), '-'))
template: true
steps:
- name: step-00
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ spec:
- name: run
value: (join('-', ['e2e', 'lm-vpc', env('GIT_REF')]))
- name: cluster
# Format the cluster name into a valid Linode label
# TODO: This is over-truncated to account for the Linode NodeBalancer label
value: (trim((truncate(($run), `21`)), '-'))
# Format the cluster name
value: (trim((truncate(($run), `32`)), '-'))
- name: vpc
# Format the VPC name into a valid Kubernetes object name
value: (trim((truncate(($run), `63`)), '-'))
Expand Down

0 comments on commit 9d905de

Please sign in to comment.