Skip to content

Skip reencrypt route config if rhacs-central-tls secret does not exist#142

Merged
treddy08 merged 3 commits into
mainfrom
fix-rhacs-reencrypt-skip-if-no-secret
May 1, 2026
Merged

Skip reencrypt route config if rhacs-central-tls secret does not exist#142
treddy08 merged 3 commits into
mainfrom
fix-rhacs-reencrypt-skip-if-no-secret

Conversation

@treddy08
Copy link
Copy Markdown
Contributor

@treddy08 treddy08 commented May 1, 2026

Move secret check outside the block and update block condition to check both reencrypt_route enabled and secret exists. This prevents failure when the secret is not yet created.

treddy08 and others added 2 commits May 1, 2026 18:49
Move secret check outside the block and update block condition to check
both reencrypt_route enabled and secret exists. This prevents failure
when the secret is not yet created.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Only include the destinationCACertificate field if the variable is defined.
This prevents template errors when rhacs-central-tls secret doesn't exist.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
wkulhanek
wkulhanek previously approved these changes May 1, 2026
Rename ocp4_workload_rhacs_reencrypt_destination_ca to
_ocp4_workload_rhacs_reencrypt_destination_ca to indicate it's an
internal variable. Skip reencrypt block if variable is not defined.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@treddy08 treddy08 merged commit 88f8475 into main May 1, 2026
1 check passed
@treddy08 treddy08 deleted the fix-rhacs-reencrypt-skip-if-no-secret branch May 1, 2026 08:57
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