Commit 3acf99e
committed
Skip pull secret extraction when pre-populated
When the pull-secret file already exists with content (size > 0),
skip the kubeconfig-based extraction from the Kubernetes API. This
allows adoption CI jobs to pre-populate the pull secret from the
hypervisor where the kubeconfig is accessible, instead of requiring
the container to reach the OCP API directly.
The always-block cleanup is also skipped for pre-populated files
since the file lifecycle is managed externally.
Assisted-By: Claude Code
Change-Id: I66e6f1206a9e5e64d28b56aa2a3b658d57b5ba21
Signed-off-by: Itay Matza <imatza@redhat.com>1 parent d0ba31d commit 3acf99e
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
0 commit comments