Skip to content

Commit c0e6251

Browse files
Merge pull request #1849 from rabi/secretHashes
Fix stale SecretHashes on nodeset status after node removal
2 parents 6fd66d8 + 8f1d826 commit c0e6251

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/controller/dataplane/openstackdataplanenodeset_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ func checkDeployment(ctx context.Context, helper *helper.Helper,
592592
for k, v := range deployment.Status.ConfigMapHashes {
593593
instance.Status.ConfigMapHashes[k] = v
594594
}
595+
if len(deployment.Spec.ServicesOverride) == 0 {
596+
instance.Status.SecretHashes = make(map[string]string, len(deployment.Status.SecretHashes))
597+
}
595598
for k, v := range deployment.Status.SecretHashes {
596599
instance.Status.SecretHashes[k] = v
597600
}

0 commit comments

Comments
 (0)