pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
63 stars 33 forks source link

[Tooling] Retrieve keys for all actors from k8s secrets #903

Closed Olshansk closed 1 year ago

Olshansk commented 1 year ago

Description

Summary generated by Reviewpad on 14 Jul 23 23:17 UTC

This pull request includes a series of patches that make changes to the file debug.go in the shared/k8s directory.

Patch 1/5: The patch retrieves keys for all actors from k8s secrets. It adds support for retrieving private keys for validators, servicers, fisherman, and applications.

Patch 2/5: This patch fixes a linter error in the fetchPrivateKeys function by updating the function signature to use a single string parameter for resourceName and actor.

Patch 3/5: This patch further fixes linter errors in the same function and shortens the code by removing unnecessary switch cases.

Patch 4/5: This patch updates the constant for the secret resource name from privateKeysSecretResourceNameFisherman to privateKeysSecretResourceNameFishermen.

Patch 5/5: This patch fixes a typo in the function name FetchFishermanPrivateKeys by updating the privateKeysSecretResourceName to privateKeysSecretResourceNameFishermen.

Please review these changes and ensure they are appropriate.

Issue

Added as a TODO in #869:

Screenshot 2023-07-12 at 5 10 03 PM

Type of change

Please mark the relevant option(s):

List of changes

Testing

Required Checklist

If Applicable Checklist