From a8a27c3045cf1613011e7d35ed05c3fcbe43d7d8 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 27 Jan 2025 23:48:20 +0100 Subject: [PATCH 1/2] feat(k8-operator): better error status --- k8-operator/controllers/infisicalsecret/conditions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8-operator/controllers/infisicalsecret/conditions.go b/k8-operator/controllers/infisicalsecret/conditions.go index 7ac3a9e5f..91da2e460 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{ From 554e268f88588a5ca15759018da39c5bfc2d696b Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 27 Jan 2025 23:51:08 +0100 Subject: [PATCH 2/2] chore: update helm --- helm-charts/secrets-operator/Chart.yaml | 4 ++-- helm-charts/secrets-operator/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-charts/secrets-operator/Chart.yaml b/helm-charts/secrets-operator/Chart.yaml index d3ee2a0c1..861a5d737 100644 --- a/helm-charts/secrets-operator/Chart.yaml +++ b/helm-charts/secrets-operator/Chart.yaml @@ -13,9 +13,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: v0.8.6 +version: v0.8.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.8.6" +appVersion: "v0.8.7" diff --git a/helm-charts/secrets-operator/values.yaml b/helm-charts/secrets-operator/values.yaml index 9ceddeb3e..75954050d 100644 --- a/helm-charts/secrets-operator/values.yaml +++ b/helm-charts/secrets-operator/values.yaml @@ -32,7 +32,7 @@ controllerManager: - ALL image: repository: infisical/kubernetes-operator - tag: v0.8.6 + tag: v0.8.7 resources: limits: cpu: 500m