Skip to content

feat: add E2E deployment test for Fluentd#1849

Open
ishaanxgupta wants to merge 4 commits intofluent:masterfrom
hemang1404:add-e2e-deployment-test
Open

feat: add E2E deployment test for Fluentd#1849
ishaanxgupta wants to merge 4 commits intofluent:masterfrom
hemang1404:add-e2e-deployment-test

Conversation

@ishaanxgupta
Copy link

  • Add comprehensive E2E test for Fluentd deployment verification
  • Test verifies complete operator workflow: CR -> StatefulSet -> Ready Pods
  • Uses label-based StatefulSet lookup for future-proofing
  • Implements container-level readiness checks
  • Includes robust cleanup with DeferCleanup and IgnoreNotFound
  • Addresses issue Add e2e tests for project #1733 for proper E2E test coverage

The test creates a Fluentd CR with FluentdConfig and ClusterOutput, waits for the operator to create a StatefulSet, and verifies that pods are running with all containers ready.

The test:

  • Runs in an isolated namespace
  • Creates Fluentd, FluentdConfig, and ClusterOutput
  • Verifies StatefulSet creation via labels
  • Asserts ReadyReplicas and container-level pod readiness
  • Cleans up all resources and namespace idempotently

Executed automatically by the existing test-e2e.yml workflow.

Fixes #1733

Collaborated with @hemang1404

@hemang1404 hemang1404 force-pushed the add-e2e-deployment-test branch from 3b92e10 to 88adab9 Compare January 19, 2026 12:53
@ishaanxgupta ishaanxgupta marked this pull request as ready for review January 19, 2026 13:30
@ishaanxgupta
Copy link
Author

@marcofranssen @joshuabaird please have a look

@hemang1404 hemang1404 force-pushed the add-e2e-deployment-test branch 2 times, most recently from 414245a to 784c512 Compare January 28, 2026 19:49
@ishaanxgupta
Copy link
Author

@marcofranssen @joshuabaird awaiting your review on this one

@cw-Guo
Copy link
Collaborator

cw-Guo commented Feb 1, 2026

@ishaanxgupta the test failed itself, see https://github.com/fluent/fluent-operator/actions/runs/21453174637/job/62003022673?pr=1849, please fix it first. Thank you.

@hemang1404 hemang1404 force-pushed the add-e2e-deployment-test branch from 784c512 to 9f4aa55 Compare February 3, 2026 19:09
- Added E2E deployment test for Fluentd with EmptyDir buffers for CI runners.
- Enabled manual triggering (workflow_dispatch) for E2E CI workflows.
- Fixed Helm linting by using local dependency paths for unreleased charts.
- Tidied Go modules.

Signed-off-by: hemang1404 <hemangsharrma@gmail.com>
The E2E test was failing because the Fluentd image
ghcr.io/fluent/fluent-operator/fluentd:v1.19.1 wasn't available
in the Kind cluster. This commit adds the missing step to build
the Fluentd image using make build-fd-amd64 and load it into the
Kind cluster before running the e2e tests.

Resolves ImagePullBackOff error in CI.

Signed-off-by: hemang1404 <hemangsharrma@gmail.com>
The Fluentd Dockerfile requires FLUENTD_BASE_VERSION to be set, but the Makefile wasn't passing it. This caused builds to fail with 'fluent/fluentd:v-debian: not found'.

Now reading the version from cmd/fluent-watcher/fluentd/VERSION file and passing it as --build-arg to match the GitHub workflow behavior.

Signed-off-by: hemang1404 <hemangsharrma@gmail.com>
@hemang1404 hemang1404 force-pushed the add-e2e-deployment-test branch from 9f4aa55 to e2c4192 Compare February 3, 2026 19:10
- Trim whitespace from FLUENTD_BASE_VERSION to avoid CRLF issues
- Use FD_IMG variable in e2e script to avoid image tag drift
- Add comment explaining check-version-increment disable rationale

Signed-off-by: hemang1404 <hemangsharrma@gmail.com>
@ishaanxgupta
Copy link
Author

@cw-Guo tested on local, the tests should pass this time

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.

Add e2e tests for project

3 participants