Skip to content

Conversation

@nvanthao
Copy link
Member

Update Cluster Naming

If there are multiple people working on wg-easy project from platform-examples, the test-cluster will be shared by everyone.

Changes

  • Modified default cluster name to use a dynamic format: {username}-cluster (falls back to wg-easy-dev-cluster if USER env var not set)
  • Simplified kubeconfig file path to use a static name test-cluster.kubeconfig instead of dynamic cluster name

Why

  • Makes cluster names more unique by incorporating username, reducing potential conflicts
  • Simplifies kubeconfig file handling by using a consistent filename
  • Improves developer experience by making it easier to identify clusters in shared environments

Testing

  • Verified cluster creation with new naming convention
  • Confirmed kubeconfig file is properly generated and accessible

@nvanthao nvanthao marked this pull request as ready for review May 21, 2025 00:52
@nvanthao nvanthao requested a review from chris-sanders May 21, 2025 00:52
@banjoh
Copy link
Member

banjoh commented May 21, 2025

It works!

$ task cluster-create
...
Creating new cluster evans-cluster...

@banjoh banjoh merged commit 7533222 into main May 21, 2025
1 check passed
@banjoh banjoh deleted the gerard/123461/cluster-name branch May 21, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants