Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat(k8-operator): better error status
Daniel Hougaarda8a27c3045cf
diff --git a/k8-operator/controllers/infisicalsecret/conditions.go b/k8-operator/controllers/infisicalsecret/conditions.goindex 7ac3a9e5f7..91da2e4605 100644--- a/k8-operator/controllers/infisicalsecret/conditions.go+++ b/k8-operator/controllers/infisicalsecret/conditions.go@@ -21,14 +21,14 @@ func (r *InfisicalSecretReconciler) SetReadyToSyncSecretsConditions(ctx context.Type: "secrets.infisical.com/ReadyToSyncSecrets",Status: metav1.ConditionFalse,Reason: "Error",- Message: "Failed to sync secrets. This can be caused by invalid service token or an invalid API host that is set. Check operator logs for more info",+ Message: fmt.Sprintf("Failed to sync secrets. This can be caused by invalid access token or an invalid API host that is set. Error: %v", errorToConditionOn),})meta.SetStatusCondition(&infisicalSecret.Status.Conditions, metav1.Condition{Type: "secrets.infisical.com/AutoRedeployReady",Status: metav1.ConditionFalse,Reason: "Stopped",- Message: "Auto redeployment has been stopped because the operator failed to sync secrets",+ Message: fmt.Sprintf("Auto redeployment has been stopped because the operator failed to sync secrets. Error: %v", errorToConditionOn),})} else {meta.SetStatusCondition(&infisicalSecret.Status.Conditions, metav1.Condition{