mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 21:29:20 +00:00
patch: loop variable deployment captured by func literal
This commit is contained in:
@@ -36,6 +36,7 @@ func (r *InfisicalSecretReconciler) ReconcileDeploymentsWithManagedSecrets(ctx c
|
|||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
// Iterate over the deployments and check if they use the managed secret
|
// Iterate over the deployments and check if they use the managed secret
|
||||||
for _, deployment := range listOfDeployments.Items {
|
for _, deployment := range listOfDeployments.Items {
|
||||||
|
deployment := deployment
|
||||||
if deployment.Annotations[AUTO_RELOAD_DEPLOYMENT_ANNOTATION] == "true" && r.IsDeploymentUsingManagedSecret(deployment, infisicalSecret) {
|
if deployment.Annotations[AUTO_RELOAD_DEPLOYMENT_ANNOTATION] == "true" && r.IsDeploymentUsingManagedSecret(deployment, infisicalSecret) {
|
||||||
// Start a goroutine to reconcile the deployment
|
// Start a goroutine to reconcile the deployment
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user