Skip to content

e2e: removed validating job#2174

Open
AndrewChubatiuk wants to merge 2 commits into
masterfrom
e2e-removed-validating-job
Open

e2e: removed validating job#2174
AndrewChubatiuk wants to merge 2 commits into
masterfrom
e2e-removed-validating-job

Conversation

@AndrewChubatiuk
Copy link
Copy Markdown
Contributor

@AndrewChubatiuk AndrewChubatiuk commented May 15, 2026

Summary by cubic

Removed the in-cluster Job used for HTTP validation in e2e tests. We now call services via the API server proxy and use watch-based status/deletion waits that fail fast on errors to reduce flakiness and speed up runs.

  • Refactors
    • Dropped batch/v1 Job + curl; HTTP checks now use rest.HTTPClientFor (10s timeout) via the API server proxy, auto-POSTing when a payload is provided.
    • Added GetRestConfig and plumbed rest.Config (k8sCfg) into tests.
    • Implemented buildServiceProxyURL to reach in-cluster services without Pods.
    • Replaced polling Eventually with watch-based waits and deletion helpers (expectStatusAfterAction, WatchUntilStatusReached/Seen, waitResourceDeleted/waitObjectDeleted) with generation guards; watchers/status checks now fail fast on UpdateStatusFailed; set default polling interval to 2s.

Written for commit ad2d5e7. Summary will update on new commits. Review in cubic

@AndrewChubatiuk AndrewChubatiuk requested a review from vrutkovs as a code owner May 15, 2026 13:11
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Comment thread test/e2e/utils_test.go
if u.RawQuery != "" {
proxyPath += "?" + u.RawQuery
}
return fmt.Sprintf("%s/api/v1/namespaces/%s/services/%s:%s/proxy%s",
Copy link
Copy Markdown
Collaborator

@vrutkovs vrutkovs May 15, 2026

Choose a reason for hiding this comment

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

I think we removed nodes/proxy RBAC permission from the operator anymore - would it still work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it uses services/proxy, which is already present in cluster-admin role, which is a default role for cli credentials generated by kind

@AndrewChubatiuk AndrewChubatiuk force-pushed the e2e-removed-validating-job branch 3 times, most recently from dd29f3e to ec8c408 Compare May 16, 2026 06:02
@AndrewChubatiuk AndrewChubatiuk force-pushed the e2e-removed-validating-job branch 2 times, most recently from 6b9aa06 to 2af87e2 Compare May 16, 2026 14:22
@AndrewChubatiuk AndrewChubatiuk force-pushed the e2e-removed-validating-job branch from 2af87e2 to ad2d5e7 Compare May 16, 2026 14:31
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.

2 participants