Skip to content

fix: sequence ESO install before Keycloak secret sync#154

Open
mlorenzofr wants to merge 1 commit into
validatedpatterns:mainfrom
mlorenzofr:eso-rhbk-deps
Open

fix: sequence ESO install before Keycloak secret sync#154
mlorenzofr wants to merge 1 commit into
validatedpatterns:mainfrom
mlorenzofr:eso-rhbk-deps

Conversation

@mlorenzofr

@mlorenzofr mlorenzofr commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Keycloak depends on ExternalSecrets that require the External Secrets Operator to be installed and reconciling. Without explicit ordering, rh-keycloak could sync before ESO was ready, leaving admin and database secrets missing when the Keycloak CR started.

  • Add sync-wave 26 to the external-secrets-operator OperatorGroup
  • Add sync-wave 27 to the openshift-external-secrets-operator subscription
  • Add a PreSync hook to the rh-keycloak chart that waits for the ESO webhook to have ready endpoints before ArgoCD syncs the ExternalSecret resources.

@mlorenzofr mlorenzofr marked this pull request as draft July 10, 2026 15:51
…lSecrets

Keycloak depends on ExternalSecrets that require the External Secrets
Operator to be installed and reconciling. Without explicit ordering,
rh-keycloak could sync before ESO was ready, leaving admin and database
secrets missing when the Keycloak CR started.

- Add sync-wave 26 to the external-secrets-operator OperatorGroup
- Add sync-wave 27 to the openshift-external-secrets-operator subscription
- Add a PreSync hook to the rh-keycloak chart that waits for the ESO webhook
  to have ready endpoints before ArgoCD syncs the ExternalSecret
  resources.

Signed-off-by: Manuel Lorenzo <mlorenzofr@redhat.com>
@mlorenzofr mlorenzofr marked this pull request as ready for review July 14, 2026 09:37

@sabre1041 sabre1041 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality as it is today works. A few suggestons

- -ce
- |
echo "Waiting for ESO webhook endpoints in external-secrets namespace..."
until oc get endpoints external-secrets-webhook -n external-secrets \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Endpoints are deprecated. Use EndpointSlice instead. The following command replicates what is currently being performed

oc get endpointslice -n external-secrets -l=kubernetes.io/service-name=external-secrets-webhook -o jsonpath='{.items[0].endpoints[0].addresses[0]}'

Comment thread values-hub.yaml
hs.message = "Waiting for ClusterSecretStore"
return hs
group: external-secrets.io
kind: ClusterSecretStore

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed as there is already a health check in Argo CD for a ClusterSecretStore

https://github.com/argoproj/argo-cd/tree/master/resource_customizations/external-secrets.io/ClusterSecretStore

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