Commit 079d44c
[federation] Fix CA bundle secret name resolving to empty string
Ansible's default() filter (without boolean=True) only substitutes
Undefined values, not empty strings. cifmw_custom_ca_certs_secret_name
is defined as "" in defaults/main.yml, so:
| default(cifmw_custom_ca_certs_secret_name | default('custom-ca-certs'))
evaluated the inner default() to "" (defined, not undefined), and the
outer default() then received "" instead of Undefined, leaving the
secret name empty and causing the kubernetes.core.k8s task to fail
with "metadata.name: Required value".
Fix by passing true as the second argument to both default() calls so
that falsy values (including empty strings) are also replaced.
Affects hook_controlplane_config.yml and update-central-ca-bundle.yaml.
Made-with: Cursor
Signed-off-by: Ade Lee <alee@redhat.com>
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0ab4633 commit 079d44c
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- hooks/playbooks/skmo
- roles/federation/tasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments