Skip to content

Adds a secret skip preflight environment variable #2364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

crdant
Copy link
Member

@crdant crdant commented Jun 23, 2025

TL;DR

Supports the SKIP_HOST_PREFLIGHTS environment variable to skip the preflight checks. This is not documented and not for general use.

Details

Offers a "hidden" way to skip preflight checks by setting the environment variable SKIP_HOST_PREFLIGHTS. I'm adding the flag to support our Instruqt labs, since the Instruqt environment require a wildcard DNS entry that causes the host preflights to fail.

I decided on this approach to avoid teaching any bad habits by telling the user to use --ignore-host-preflights when teaching them about the Embedded Cluster. I wanted instead to avoid the checks on their behalf without them realized it. This variable is not deliberately not documented to avoid similar encouragement of bad habits.

TL;DR
-----

Supports the `SKIP_HOST_PREFLIGHTS` environment variable to skip the
preflight checks. Thjis is not documented and not for general use.

Details
-------

Offers a "hidden" way to skip preflight checks by setting the
environment variable `SKIP_HOST_PREFLIGHTS`. I'm adding the flag to
support our Instruqt labs, since the Instruqt environment require a
wildcard DNS entry that causes the host preflights to fail.

I decided on this approach to avoid teaching any bad habits by telling
the user to use `--ignore-host-preflights` when teaching them about
the Embedded Cluster. I wanted instead to avoid the checks on their
behalf without them realized it. This variable is not deliberately not
documented to avoid similar encouragement of bad habits.
@crdant crdant force-pushed the feature/crdant/adds-secret-preflight-skip branch from 187d6e1 to 884305b Compare June 23, 2025 21:28
Copy link

This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID.

Online Installer:

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci/appver-dev-84788e1" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Airgap Installer (may take a few minutes before the airgap bundle is built):

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci-airgap/appver-dev-84788e1?airgap=true" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Happy debugging!

@crdant
Copy link
Member Author

crdant commented Jun 24, 2025

FYI, @ajp-io, this is for the labs workaround we discussed.

@crdant
Copy link
Member Author

crdant commented Jun 24, 2025

I'm curious @sgalsaleh and @emosbaugh, are the failing tests predictable? I don't have any variations that would seem to impact those areas.

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.

1 participant