Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart chain id fix #299

Merged
merged 2 commits into from
Jul 6, 2022
Merged

Helm chart chain id fix #299

merged 2 commits into from
Jul 6, 2022

Conversation

rustyShacklefurd
Copy link
Collaborator

@rustyShacklefurd rustyShacklefurd commented Jul 6, 2022

Description:
Cleanup the way CHAIN_ID is set and transported into the k8s deployments. Hex numbers are often converted (or attempted to be converted) and this makes the code return 0xNaN as the CHAIN_ID. Moving away from setting this in a k8s secret because there is less conversion/encoding.

Fixes #300

… encoded so putting decimal or hexadecimal values in there will often render something like this: % Moving this to single quoted value fixes that.

Signed-off-by: Matt Halder <[email protected]>
…decimal value not hexadecimal.

Signed-off-by: Matt Halder <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Jul 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Nana-EC Nana-EC added P1 process Build, test and deployment-process related tasks labels Jul 6, 2022
@Nana-EC Nana-EC added this to the 0.3.0 milestone Jul 6, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #299 (4086ce8) into main (fb6e217) will not change coverage.
The diff coverage is n/a.

❗ Current head 4086ce8 differs from pull request most recent head e616bef. Consider uploading reports for the commit e616bef to get more accurate results

@@           Coverage Diff           @@
##             main     #299   +/-   ##
=======================================
  Coverage   57.81%   57.81%           
=======================================
  Files           9        9           
  Lines         825      825           
  Branches      131      131           
=======================================
  Hits          477      477           
  Misses        322      322           
  Partials       26       26           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb6e217...e616bef. Read the comment docs.

Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@@ -10,7 +10,6 @@ data:
OPERATOR_KEY_MAIN: {{ .Values.config.OPERATOR_KEY_MAIN | b64enc }}
OPERATOR_ID_ETH_SENDRAWTRANSACTION: {{ .Values.config.OPERATOR_ID_ETH_SENDRAWTRANSACTION | default (printf "%q" "") }}
OPERATOR_KEY_ETH_SENDRAWTRANSACTION: {{ .Values.config.OPERATOR_KEY_ETH_SENDRAWTRANSACTION | default (printf "%q" "") }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these operator properties not base64 encoded and are just escaped? Better to use stringData instead of data to avoid all the extra base64 conversion anyway.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. @rustyShacklefurd feel free to open a separate PR that addresses this properly.
This satisfies the work around

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added #301 to capture this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good suggestion. I will put this change in new branch and get it PR'd

@rustyShacklefurd rustyShacklefurd merged commit 3f0b6e3 into main Jul 6, 2022
@rustyShacklefurd rustyShacklefurd deleted the helm-chart-chain-id-fix branch July 6, 2022 23:19
@Nana-EC Nana-EC added the enhancement New feature or request label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1 process Build, test and deployment-process related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm deployments don't handle integer CHAIN_ID values
4 participants