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
patch: loop variable deployment captured by func literal
Maidul Islamff9418c0c776
diff --git a/k8-operator/controllers/auto_redeployment.go b/k8-operator/controllers/auto_redeployment.goindex e4fa6d00fe..cd5bf193b7 100644--- a/k8-operator/controllers/auto_redeployment.go+++ b/k8-operator/controllers/auto_redeployment.go@@ -36,6 +36,7 @@ func (r *InfisicalSecretReconciler) ReconcileDeploymentsWithManagedSecrets(ctx cvar wg sync.WaitGroup// Iterate over the deployments and check if they use the managed secretfor _, deployment := range listOfDeployments.Items {+ deployment := deploymentif deployment.Annotations[AUTO_RELOAD_DEPLOYMENT_ANNOTATION] == "true" && r.IsDeploymentUsingManagedSecret(deployment, infisicalSecret) {// Start a goroutine to reconcile the deploymentwg.Add(1)