From 2cd59077538cd376d8bd52afb8f74bc00f82574d Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Tue, 7 Feb 2023 21:09:25 -0500 Subject: [PATCH] fix secret hash status message --- pkg/controller/config_change.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/config_change.go b/pkg/controller/config_change.go index 8afe8fb5..88e7dc70 100644 --- a/pkg/controller/config_change.go +++ b/pkg/controller/config_change.go @@ -21,7 +21,8 @@ func (c *ConfigChangedHandler) Handle(ctx context.Context) { secret := CtxSecret.Value(ctx) var secretHash string if secret != nil { - ctx = CtxSecretHash.WithValue(ctx, hash.SecureObject(secret.Data)) + secretHash = hash.SecureObject(secret.Data) + ctx = CtxSecretHash.WithValue(ctx, secretHash) } status := &v1alpha1.SpiceDBCluster{ TypeMeta: metav1.TypeMeta{