Skip to content

Conversation

@gbartolini
Copy link
Contributor

Introduces the get_cluster_context and get_cluster_name helper functions to standardise how names are derived from environment variables.

  • Uses K8S_CONTEXT_PREFIX (default: kind-) and K8S_BASE_NAME (default: k8s-).
  • Ensures consistent string concatenation across the scripts.

@gbartolini gbartolini requested a review from a team as a code owner January 13, 2026 07:58
@gbartolini gbartolini changed the title refactor: centralise k8s context and cluster naming logic chore: centralise k8s context and cluster naming logic Jan 13, 2026
@sxd
Copy link
Member

sxd commented Jan 13, 2026

@gbartolini you may want to take a look to this #41

Introduces the `get_cluster_context` and `get_cluster_name` helper functions to
standardise how names are derived from environment variables.

- Uses K8S_CONTEXT_PREFIX (default: kind-) and K8S_BASE_NAME (default: k8s-).
- Ensures consistent string concatenation across the scripts.

Signed-off-by: Gabriele Bartolini <[email protected]>
@gbartolini gbartolini force-pushed the dev/clean-context-name branch from 0ad0655 to ede886b Compare January 13, 2026 10:06
@gbartolini
Copy link
Contributor Author

@gbartolini you may want to take a look to this #41

I have reviewed it, merged, and rebased this PR on top of that.

@mnencia mnencia changed the title chore: centralise k8s context and cluster naming logic refactor: centralise k8s context and cluster naming logic Jan 14, 2026
@mnencia mnencia merged commit 3b2abb0 into main Jan 14, 2026
1 check passed
@mnencia mnencia deleted the dev/clean-context-name branch January 14, 2026 13:06
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 14, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 14, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 14, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 15, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 15, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 15, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 15, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 15, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
ardentperf added a commit to ardentperf/cnpg-playground that referenced this pull request Jan 15, 2026
after rebasing, update test scripts to use centralized logic that was
introduced in cloudnative-pg#53

Signed-off-by: Jeremy Schneider <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants