Dependency error between units monitoring and keycloak-oidc-external-secrets
Summary
While deploying a cluster without monitoring unit (disabled), the deployment fails on kustomization keycloak-oidc-external-secrets
because it tries to create an external-secret eso-grafana-oidc in the namespace cattle-monitoring-system which has not been created.
This namespace is normaly created by monitoring kustomization
Steps to reproduce
While deploying a libvirt metal cluster (should probably fail with other kind of deployments), I have disable monitoring unit to save disk space. The management cluster deployment is failing on kustomization keycloak-oidc-external-secrets.
What is the current bug behavior?
deployment hangs
What is the expected correct behavior?
deployment should continue
Relevant logs and/or screenshots
⢎⠁ Kustomization/keycloak-oidc-external-secrets - ReconciliationFailed - ExternalSecret/cattle-monitoring-system/eso-grafana-oidc not found: namespaces "cattle-monitoring-system" not found
✗ Command timeout exceeded
Timed-out waiting for the following resources to be ready:
IDENTIFIER STATUS REASON MESSAGE
Kustomization/sylva-system/keycloak-oidc-external-secrets InProgress Kustomization generation is 2, but latest observed generation is -1
╰┄╴┬┄┄[Conditions]
├┄╴Reconciling True ProgressingWithRetry Detecting drift for revision sha1:c8d04991cb3067ca9dd4675ed391f681f782c35c with a timeout of 30s
╰┄╴Ready False ReconciliationFailed ExternalSecret/cattle-monitoring-system/eso-grafana-oidc not found: namespaces "cattle-monitoring-system" not found
Kustomization Events:
Status: │
│ Conditions: │
│ Last Transition Time: 2024-06-11T08:16:45Z │
│ Message: Detecting drift for revision sha1:c8d04991cb3067ca9dd4675ed391f681f782c35c with a timeout of 30s │
│ Observed Generation: 2 │
│ Reason: ProgressingWithRetry │
│ Status: True │
│ Type: Reconciling │
│ Last Transition Time: 2024-06-11T08:16:45Z │
│ Message: ExternalSecret/cattle-monitoring-system/eso-grafana-oidc not found: namespaces "cattle-monitoring-system" not found │
│ │
│ Observed Generation: 2 │
│ Reason: ReconciliationFailed │
│ Status: False │
│ Type: Ready │
│ Last Attempted Revision: sha1:c8d04991cb3067ca9dd4675ed391f681f782c35c │
│ Last Handled Reconcile At: 2024-06-10T16:13:11 │
│ Observed Generation: -1 │
│ Events: │
│ Type Reason Age From Message │
│ ---- ------ ---- ---- ------- │
│ Warning ReconciliationFailed 4m51s (x952 over 16h) kustomize-controller ExternalSecret/cattle-monitoring-system/eso-grafana-oidc not found: namespaces "cattle-monitoring-system" not found
Possible fixes
fix dependencies, or move external secret eso-grafana-oidc resource in monitoring unit