Skip to content

MTV-3663 | AAP job template hooks for migration plans#5622

Draft
gwencasey96 wants to merge 2 commits intokubev2v:mainfrom
gwencasey96:ansible-integration-change-crdr
Draft

MTV-3663 | AAP job template hooks for migration plans#5622
gwencasey96 wants to merge 2 commits intokubev2v:mainfrom
gwencasey96:ansible-integration-change-crdr

Conversation

@gwencasey96
Copy link
Copy Markdown
Contributor

Add optional spec.aap on Hook (url, jobTemplateId, tokenSecret, timeout). Controller launches AAP job templates with migration extra_vars and waits for completion; token read from Secret. Regenerate CRD, deepcopy, and operator stream manifests (update-manifests).

Ref: https://issues.redhat.com/browse/MTV-3663
Resolves: MTV-3663
Made-with: Cursor

@gwencasey96 gwencasey96 marked this pull request as draft March 25, 2026 17:21
Add optional spec.aap on Hook (url, jobTemplateId, tokenSecret, timeout).
Controller launches AAP job templates with migration extra_vars and waits
for completion; token read from Secret. Regenerate CRD and operator
manifests.

Make spec.image optional with CEL: either spec.aap or non-empty image and
playbook for local hooks. Hook and plan controllers validate execution
mode. Use package logger in AAP client poll loop.

Replace ginkgo hook tests with testing.T to avoid running the entire plan
package suite from TestHook; align ServiceAccount template tests with
current template() behavior.

Ref: https://issues.redhat.com/browse/MTV-3663
Resolves: MTV-3663
Made-with: Cursor
Signed-off-by: Gwen Casey <gcasey@redhat.com>
@gwencasey96 gwencasey96 force-pushed the ansible-integration-change-crdr branch from 12d46da to 54c791b Compare March 31, 2026 03:36
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 31, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 8.25688% with 200 lines in your changes missing coverage. Please review.
✅ Project coverage is 10.11%. Comparing base (f1fe5d0) to head (f034c29).
⚠️ Report is 2074 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/aap_client.go 17.97% 73 Missing ⚠️
pkg/controller/plan/hook.go 3.07% 63 Missing ⚠️
pkg/controller/hook/validation.go 0.00% 30 Missing ⚠️
pkg/controller/plan/validation.go 0.00% 21 Missing ⚠️
pkg/apis/forklift/v1beta1/zz_generated.deepcopy.go 0.00% 13 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5622      +/-   ##
==========================================
- Coverage   15.45%   10.11%   -5.35%     
==========================================
  Files         112      501     +389     
  Lines       23377    57645   +34268     
==========================================
+ Hits         3613     5828    +2215     
- Misses      19479    51333   +31854     
- Partials      285      484     +199     
Flag Coverage Δ
unittests 10.11% <8.25%> (-5.35%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Resolves: MTV-3663

Refresh operator/.upstream_manifests via KUBECTL kustomize + controller-gen output:
relatedImages naming (vsphere copy offload), HyperV provider, CLI download,
and virt-v2v RHEL9 entries.

Made-with: Cursor
Signed-off-by: Gwen Casey <gcasey@redhat.com>
@sonarqubecloud
Copy link
Copy Markdown

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