-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reconcile loop in chaincode controllers (#248)
* Add revocation list support to FabricFollowerChannel and improve requeue logic in chaincode controllers - Introduced a new `revocationList` field in `FabricFollowerChannelSpec` to manage certificate revocation lists. - Enhanced the `updateCRStatusOrFailReconcile` method in chaincode controllers to requeue failed updates after 10 seconds and handle running status without requeuing. - Implemented CRL parsing utility to support revocation list processing in the follower channel controller. - Updated related CRD and deepcopy functions to accommodate the new revocation list feature. Signed-off-by: David VIEJO <[email protected]> * Update README.md for Helm and Istio installation instructions - Updated Helm installation command for hlf-operator to version 1.11.1. - Modified Istio installation command to specify ISTIO_VERSION as 1.23.3. These changes ensure users are directed to the latest versions for better compatibility and performance. Signed-off-by: David VIEJO <[email protected]> --------- Signed-off-by: David VIEJO <[email protected]>
- Loading branch information
Showing
10 changed files
with
112 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package utils | ||
|
||
import ( | ||
"crypto/x509" | ||
"crypto/x509/pkix" | ||
"encoding/pem" | ||
"fmt" | ||
) | ||
|
||
func ParseCRL(crlBytes []byte) (*pkix.CertificateList, error) { | ||
block, _ := pem.Decode(crlBytes) | ||
if block == nil { | ||
return nil, fmt.Errorf("failed to decode PEM block containing CRL") | ||
} | ||
|
||
crl, err := x509.ParseCRL(block.Bytes) | ||
if err != nil { | ||
return nil, fmt.Errorf("failed to parse CRL: %v", err) | ||
} | ||
|
||
return crl, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
pkg/apis/hlf.kungfusoftware.es/v1alpha1/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.