Skip to content

Commit 5559fc4

Browse files
committed
t
Signed-off-by: Veronika Fisarova <[email protected]>
1 parent 329f9c7 commit 5559fc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/controller/manilaapi_controller.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,16 @@ func (r *ManilaAPIReconciler) reconcileNormal(ctx context.Context, instance *man
845845
err.Error()))
846846
return ctrl.Result{}, err
847847
}
848+
849+
// Verify Application Credential secret if available (optional)
850+
acSecretName := keystonev1.GetACSecretName(manila.ServiceName)
851+
acSecretKey := types.NamespacedName{Namespace: instance.Namespace, Name: acSecretName}
852+
acHash, _, err := secret.VerifySecret(ctx, acSecretKey, []string{keystonev1.ACIDSecretKey, keystonev1.ACSecretSecretKey}, helper.GetClient(), 0)
853+
if err == nil && acHash != "" {
854+
// AC secret exists and is valid - add to configVars for hash tracking
855+
configVars[acSecretName] = env.SetValue(acHash)
856+
}
857+
848858
// create hash over all the different input resources to identify if any those changed
849859
// and a restart/recreate is required.
850860
//

0 commit comments

Comments
 (0)