Skip to content

test: integration test for NIC PR #201 — configurable StorageClass & MetalLB#15

Closed
viniciusdc wants to merge 1 commit intomainfrom
test/nic-pr-201-local-configurable-infra
Closed

test: integration test for NIC PR #201 — configurable StorageClass & MetalLB#15
viniciusdc wants to merge 1 commit intomainfrom
test/nic-pr-201-local-configurable-infra

Conversation

@viniciusdc
Copy link
Copy Markdown
Collaborator

Purpose

This PR is a review/test vehicle for nebari-dev/nebari-infrastructure-core#201 — it is not intended to be merged until that NIC PR lands on main.

The CI run of this PR exercises the platform profile end-to-end against the NIC feature/local-configurable-infra-settings branch, giving us real integration coverage for #201 before it merges.

Do not merge until NIC PR #201 is merged. At that point, revert NIC_BRANCH back to main.


What NIC PR #201 adds

Makes three fields configurable in the local provider config block:

Field Default Use here
storage_class standard Set to local-path (k3s native)
metallb.address_pool 192.168.1.100-192.168.1.110 Explicitly declared to match Docker network
metallb.enabled true Unchanged (MetalLB still needed)
https_port 443 Unchanged

Changes in this PR

scripts/install-nic.sh

  • Pin NIC_BRANCH to feature/local-configurable-infra-settings for PR testing

scripts/deploy-platform.sh

  • Add storage_class: local-path to the NIC config — k3s ships local-path, not standard
  • Add metallb.address_pool: 192.168.1.100-192.168.1.110 explicitly to make the coupling between the Docker network subnet and the MetalLB pool visible

scripts/create-cluster.sh

  • Remove the standard StorageClass workaround (the kubectl apply block that created a fake standard class backed by rancher.io/local-path). This workaround had a TODO pointing directly at #201.

After NIC PR #201 merges

  1. Change NIC_BRANCH back to main in install-nic.sh
  2. Merge this PR

Pins install-nic.sh to the feature/local-configurable-infra-settings
branch of NIC (nebari-dev/nebari-infrastructure-core#201) to provide
an end-to-end integration test environment for that PR review.

PR #201 makes StorageClass, MetalLB address pool, and https_port
configurable in the local provider config. This unlocks two changes:

1. deploy-platform.sh: set storage_class: local-path in the NIC config
   so NIC uses k3s's native StorageClass instead of 'standard'.

2. create-cluster.sh: remove the kubectl apply workaround that created
   a fake 'standard' StorageClass backed by rancher.io/local-path
   (the TODO block referencing #201 is now resolved).

3. deploy-platform.sh: explicitly declare metallb.address_pool in the
   NIC config to make the coupling between the Docker network subnet
   (create-cluster.sh) and the MetalLB pool visible and explicit.

This branch is NOT intended to be merged until NIC PR #201 lands on
main. At that point, NIC_BRANCH should be reverted to 'main'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant