Skip to content

Commit

Permalink
Set passwordEncryptionMetadata to not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
kabicin committed Oct 30, 2024
1 parent 64e7f64 commit 71d9131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/controller/experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ func (r *ReconcileOpenLiberty) reconcilePasswordEncryptionKeySharingEnabled(inst
err := errors.Wrapf(fmt.Errorf("Secret %q not found", passwordEncryptionSecretName), "Secret for Password Encryption was not found. Create a secret named %q in namespace %q with the encryption key specified in data field %q.", passwordEncryptionSecretName, instance.GetNamespace(), "passwordEncryptionKey")
reconcileResultChan <- ReconcileResult{err: err, condition: common.StatusConditionTypeReconciled}
for i := 0; i < expectedMetadataLength; i++ {
passwordEncryptionMetadataChan <- nil
passwordEncryptionMetadataChan <- passwordEncryptionMetadata
}
return
} else {
instanceMutex.Unlock()
}
reconcileResultChan <- ReconcileResult{err: nil, condition: common.StatusConditionTypeReconciled}
for i := 0; i < expectedMetadataLength; i++ {
passwordEncryptionMetadataChan <- nil
passwordEncryptionMetadataChan <- passwordEncryptionMetadata
}
}

Expand Down
3 changes: 0 additions & 3 deletions internal/controller/ltpa_keys_sharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,6 @@ func (r *ReconcileOpenLiberty) generateLTPAConfig(instance *olv1.OpenLibertyAppl
err = r.GetClient().Get(context.TODO(), types.NamespacedName{Name: generateLTPAConfigJob.Name, Namespace: generateLTPAConfigJob.Namespace}, generateLTPAConfigJob)
if err != nil && kerrors.IsNotFound(err) {
err = r.CreateOrUpdate(generateLTPAConfigJob, nil, func() error {
fmt.Println("debug:")
fmt.Println("debug2: " + passwordEncryptionMetadata.Name)

ltpaConfig := &lutils.LTPAConfig{
Metadata: ltpaConfigMetadata,
SecretName: ltpaSecretRootName,
Expand Down

0 comments on commit 71d9131

Please sign in to comment.