Skip to content

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 from e4d8264 to 414245a Compare January 28, 2026 19:46
- 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 fluent#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.

Signed-off-by: Hemang Sharrma <[email protected]>
- Moved DeferCleanup inside BeforeEach to satisfy Ginkgo requirements
- Fixed label mismatch (app.kubernetes.io/name vs instance)
- Switched from deprecated k8s.io/utils/pointer to k8s.io/utils/ptr (Fixes Lint)
- Increased timeouts for CI stability

Signed-off-by: Hemang Sharrma <[email protected]>
@hemang1404 hemang1404 force-pushed the add-e2e-deployment-test branch from 414245a to 784c512 Compare January 28, 2026 19:49
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

2 participants