You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Add common test steps that are rendered into all generated tests #40
Some kuttl test steps are identical across every test in an operator — the clearest example is a
teardown step that deletes the product custom resources before the namespace is removed (see #2).
Today beku renders only each test's own template directory, so a common step has to be copied into
every tests/templates/kuttl/<test>/ directory and kept in sync by hand.
Proposal
Teach beku to render a shared directory into every generated test case, in addition to that
test's own steps.
Files in a shared/ directory next to the test templates (i.e. tests/templates/kuttl/shared) are
rendered into every generated test case.
The directory is templated exactly like regular steps: .j2/.jinja2 files are rendered (with NAMESPACE and lookup available), others are copied verbatim.
Location overridable with a new -c/--common_dir CLI flag.
No-op unless the directory exists — repositories that don't opt in are completely unaffected.
Collision safety: on a name collision the test's own file wins. A shared file that would
overwrite a file the test already provides is skipped (with a warning), so a shared step can never
silently clobber a test-specific one.
Activity
soenkeliebau commentedon Aug 10, 2026
Ping @NickLarsenNZ - can we look at merging this now, or is there still post-release stuff going on?
NickLarsenNZ commentedon Aug 10, 2026
I think we want to discuss it with the team.
I can't recall why now, but I did think about a possible caveat in doing this.
soenkeliebau commentedon Aug 13, 2026
Potentially because of this: #39 (review) ?
soenkeliebau commentedon Aug 27, 2026
closing this due to moving away from Kuttl and beku