Skip to content

feat: use Newt in dev-env#2322

Draft
anmazzotti wants to merge 1 commit into
rancher:mainfrom
anmazzotti:use_pangolin_newt
Draft

feat: use Newt in dev-env#2322
anmazzotti wants to merge 1 commit into
rancher:mainfrom
anmazzotti:use_pangolin_newt

Conversation

@anmazzotti
Copy link
Copy Markdown
Contributor

@anmazzotti anmazzotti commented Apr 22, 2026

What this PR does / why we need it:
Fix #2283

This PR replaces ngrok with newt.
Changes:

  • fix: Rancher uses Gitea's ClusterIP to fetch system-charts without going through the internet
  • fix: Rancher is immediately configured with the correct CATTLE_CHART_* variables, this prevents a Rancher pod restart and makes the deployment more production-like
  • new: Ngrok replaced with Newt
  • fix: quickstart script is dropped due to lack of maintenance and validation (documentation has been dropped already since v0.25, no changes needed)
  • the kind management environment type has been removed due to lack of usage and maintenance

Usage:

PANGOLIN_ENDPOINT=my.pangolin.example.com \
NEWT_SITE_ID=my-newt-client-id \
NEWT_SITE_SECRET=my-newt-client-secret \ 
PANGOLIN_SITE_DOMAIN=myself.myteam.my.pangolin.example.com \
PANGOLIN_SITE_IDENTIFIER=some-random-identifier \
make dev-env

About NetworkPolicy:

This is a requirement of the RFD.
In this context it's a bit overkill, because the newt pod can't escape the kind container and it's just a dev environment. Right now this does not seem to cause any critical errors in newt.
There's a 10 seconds timeout during boot, but it's not critical.
See newt logs:

INFO: 2026/04/23 08:09:09 Newt version 1.11.0
ERROR: 2026/04/23 08:09:19 Error checking for updates: failed to fetch release info: Get "https://api.github.com/repos/fosrl/newt/releases/latest": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

INFO: 2026/04/23 08:09:19 Config file does not exist at /.config/newt-client/config.json, will create it

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@anmazzotti anmazzotti self-assigned this Apr 22, 2026
@anmazzotti anmazzotti added area/ci kind/refactor Indicates a PR with large refactoring changes e.g. removes files or moves content labels Apr 22, 2026
@anmazzotti anmazzotti moved this to In Progress (8 max) in CAPI / Turtles Apr 22, 2026
@anmazzotti anmazzotti force-pushed the use_pangolin_newt branch 5 times, most recently from 021b327 to adc692c Compare April 22, 2026 16:20
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
@anmazzotti anmazzotti moved this from In Progress (8 max) to Blocked in CAPI / Turtles Apr 23, 2026
@anmazzotti
Copy link
Copy Markdown
Contributor Author

Blocked waiting for a Pangolin instance to be used.

@kkaempf kkaempf moved this from Blocked to In Progress (8 max) in CAPI / Turtles Apr 28, 2026
@anmazzotti anmazzotti moved this from In Progress (8 max) to PR to be reviewed in CAPI / Turtles Apr 28, 2026
@anmazzotti anmazzotti marked this pull request as ready for review April 28, 2026 12:49
@anmazzotti anmazzotti requested a review from a team as a code owner April 28, 2026 12:49
@kkaempf kkaempf added this to the v2.14.2 milestone May 5, 2026
@anmazzotti anmazzotti marked this pull request as draft May 5, 2026 15:02
@anmazzotti
Copy link
Copy Markdown
Contributor Author

Blocked waiting for EDR approval.

@anmazzotti anmazzotti moved this from PR to be reviewed to Blocked in CAPI / Turtles May 5, 2026
@mbologna mbologna modified the milestones: v2.14.2, v2.14.3 May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci do not merge kind/refactor Indicates a PR with large refactoring changes e.g. removes files or moves content

Projects

Status: Blocked

Development

Successfully merging this pull request may close these issues.

Switch from ngrok to pangolin

3 participants