Commit 9490655
[federation] Fix InstallPlan approval using ambiguous short name
The "oc get ip" command resolves to Kubernetes services instead of
installplans.operators.coreos.com, causing the approval task to fail
with "installplans.operators.coreos.com 172.30.0.1 not found" (a
cluster service IP mistaken for an InstallPlan name).
Replace the shell command with Ansible-native tasks: extract the
InstallPlan name from the already-registered ip_list variable using
the same label filter as the wait task, then approve it via
kubernetes.core.k8s.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Luca Miccini <lmiccini@redhat.com>1 parent 592d089 commit 9490655
1 file changed
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
67 | 84 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
76 | 94 | | |
77 | 95 | | |
78 | 96 | | |
| |||
0 commit comments