Skip to content

feat(config): add SkipWebhookCheck flag#60

Merged
sergenyalcin merged 1 commit intocrossplane:mainfrom
kaessert:feat/skip-webhook-check
Feb 24, 2026
Merged

feat(config): add SkipWebhookCheck flag#60
sergenyalcin merged 1 commit intocrossplane:mainfrom
kaessert:feat/skip-webhook-check

Conversation

@kaessert
Copy link
Contributor

Summary

  • Add SkipWebhookCheck option to AutomatedTest, TestCase, the Builder, CLI flags (--skip-webhook-check), and template conditionals
  • When enabled, skips the curl-based webhook endpoint health check (check_endpoints.sh) and associated sleep in 00-apply.yaml.tmpl and 02-import.yaml.tmpl
  • Follows the existing SkipUpdate/SkipImport pattern
  • In the import template, patch.sh/patch-ns.sh downloads remain unconditional since they are needed for import regardless of webhook checking
  • Fixes a pre-existing copy-paste typo in tester.go where the SkipUpdate log message incorrectly referenced skip-delete

Motivation

Consumers like up-cli already ensure provider health via kube.InstallConfiguration before uptest runs. The check_endpoints.sh curl to raw.githubusercontent.com is unnecessary in that context and introduces an external network dependency that can fail in restricted environments.

Test plan

  • go build ./... passes
  • go test ./... passes
  • New TestRenderWithSkipWebhookCheck tests verify both apply and import templates with SkipWebhookCheck: true
  • Existing tests confirm default behavior (webhook check present) is preserved

…th checks

Add a SkipWebhookCheck option that allows consumers to disable the
curl-based webhook endpoint health check (check_endpoints.sh) that
runs before applying and importing resources. This is useful for
consumers like up-cli that already ensure provider health before
uptest runs, avoiding unnecessary external HTTP requests to
raw.githubusercontent.com.

The flag is plumbed through AutomatedTest, TestCase, the Builder,
CLI flags, and template conditionals, following the existing
SkipUpdate/SkipImport pattern.

In the import template, patch.sh and patch-ns.sh downloads are kept
outside the conditional since they are needed for the import step
regardless of webhook checking.

Also fixes a pre-existing copy-paste typo in tester.go where the
SkipUpdate log message incorrectly referenced "skip-delete".

Signed-off-by: Tobias Kässer <tobias.kasser@upbound.io>
@kaessert kaessert force-pushed the feat/skip-webhook-check branch from 70b96ab to de76060 Compare February 24, 2026 12:15
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kaessert LGTM!

@sergenyalcin sergenyalcin merged commit 4a16ecb into crossplane:main Feb 24, 2026
7 checks passed
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