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

feat: inspect existing cluster resources during cluster setup #1094

Conversation

instamenta
Copy link
Contributor

@instamenta instamenta commented Jan 3, 2025

Description

  • During cluster setup an instance of won't be deployed if it's already present:

    • Minio
    • Prometheus Stack
    • Cert Manager
    • Cert Manager CRDS

    If all of the above are present solo-setup-chart won't be installed.

  • During mirror-node deploy an instance of won't be deployed if it's already present:

    • Ingress Controller

Related Issues

…g-cluster-resources-during-cluster-setup

# Conflicts:
#	src/core/k8.ts
…g-cluster-resources-during-cluster-setup

# Conflicts:
#	package-lock.json
#	src/commands/cluster.ts
#	src/core/k8.ts
#	src/types/index.ts
Signed-off-by: instamenta <[email protected]>
@instamenta instamenta self-assigned this Jan 3, 2025
@instamenta instamenta requested review from leninmehedy and a team as code owners January 3, 2025 08:36
@instamenta instamenta linked an issue Jan 3, 2025 that may be closed by this pull request
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Unit Test Results - Linux

  1 files  ±0   58 suites  ±0   3s ⏱️ ±0s
227 tests ±0  227 ✅ ±0  0 💤 ±0  0 ❌ ±0 
232 runs  ±0  232 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c8cd4e9. ± Comparison against base commit a064954.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 3, 2025

Unit Test Results - Windows

  1 files  ±0   58 suites  ±0   13s ⏱️ -1s
227 tests ±0  227 ✅ ±0  0 💤 ±0  0 ❌ ±0 
232 runs  ±0  232 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c8cd4e9. ± Comparison against base commit a064954.

♻️ This comment has been updated with latest results.

Signed-off-by: instamenta <[email protected]>
Signed-off-by: instamenta <[email protected]>
Copy link
Contributor

github-actions bot commented Jan 3, 2025

E2E Test Report

 16 files  ±0  121 suites  ±0   1h 19m 54s ⏱️ -19s
258 tests ±0  258 ✅ ±0  0 💤 ±0  0 ❌ ±0 
261 runs  ±0  261 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 56dda24. ± Comparison against base commit aa4b3d3.

Copy link
Contributor

github-actions bot commented Jan 3, 2025

E2E Test Report

 16 files  ±0  121 suites  ±0   1h 22m 12s ⏱️ - 1m 55s
258 tests ±0  258 ✅ ±0  0 💤 ±0  0 ❌ ±0 
261 runs  ±0  261 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c8cd4e9. ± Comparison against base commit a064954.

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Jan 3, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.25% (target: -1.00%) 50.47%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (a064954) 20275 17330 85.47%
Head commit (c8cd4e9) 20453 (+178) 17430 (+100) 85.22% (-0.25%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1094) 212 107 50.47%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

codecov bot commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 46.69811% with 113 lines in your changes missing coverage. Please review.

Project coverage is 84.38%. Comparing base (1cd0e28) to head (c8cd4e9).
Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
src/core/k8.ts 50.40% 60 Missing and 2 partials ⚠️
src/commands/cluster/tasks.ts 50.00% 29 Missing and 3 partials ⚠️
src/commands/mirror_node.ts 5.26% 18 Missing ⚠️
src/commands/cluster/configs.ts 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1094      +/-   ##
==========================================
- Coverage   84.66%   84.38%   -0.28%     
==========================================
  Files          75       75              
  Lines       20302    20453     +151     
  Branches     1929     1275     -654     
==========================================
+ Hits        17188    17260      +72     
- Misses       2957     3160     +203     
+ Partials      157       33     -124     
Files with missing lines Coverage Δ
src/commands/cluster/index.ts 40.74% <100.00%> (ø)
src/core/config/remote/remote_config_manager.ts 81.25% <100.00%> (ø)
src/core/constants.ts 97.22% <100.00%> (+0.01%) ⬆️
src/commands/cluster/configs.ts 83.20% <0.00%> (-0.68%) ⬇️
src/commands/mirror_node.ts 74.60% <5.26%> (+0.70%) ⬆️
src/commands/cluster/tasks.ts 86.46% <50.00%> (-6.48%) ⬇️
src/core/k8.ts 85.33% <50.40%> (-2.50%) ⬇️

... and 30 files with indirect coverage changes

Impacted file tree graph

type: 'toggle',
default: false,
message:
'There is remote config for one of the deployments' +
Copy link
Contributor

Choose a reason for hiding this comment

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

would be better if we can tell the user which deployment is still on the cluster

jeromy-cannon
jeromy-cannon previously approved these changes Jan 8, 2025
@jeromy-cannon jeromy-cannon merged commit 808516c into main Jan 8, 2025
39 checks passed
@jeromy-cannon jeromy-cannon deleted the 00042-inspect-existing-cluster-resources-during-cluster-setup branch January 8, 2025 21:35
swirlds-automation added a commit that referenced this pull request Jan 13, 2025
## [0.33.0](v0.32.0...v0.33.0) (2025-01-13)

### Features

* add support for genesis throttle configuration ([#1026](#1026)) ([d8903a8](d8903a8))
* enable Blockstreams and uploader ([#1109](#1109)) ([ed6527b](ed6527b))
* inspect existing cluster resources during cluster setup ([#1094](#1094)) ([808516c](808516c))
* production readiness pass custom mirror node postgresql credentials and server address ([#1128](#1128)) ([f8b7e41](f8b7e41))
* support using GCS for backup uploader ([#1130](#1130)) ([5fe2f4e](5fe2f4e))
* update genesis-network.json to add roster entries and more ([#1122](#1122)) ([c27d1d6](c27d1d6))
* Updating solo to leverage changes after moving acme-cluster-issuer and haproxy-ingress out of mirror-node-explorer ([#1079](#1079)) ([7965894](7965894))
* use gcs for stream file storage ([#994](#994)) ([04d5806](04d5806))

### Bug Fixes

* add missing images, fix debug page images ([#1092](#1092)) ([4073d31](4073d31))
* Bug when running `solo cluster connect` after fresh install ([#1123](#1123)) ([1cd0e28](1cd0e28))
* bump solo-charts to 0.42.2 to pull in blockStreams fix ([#1138](#1138)) ([c482895](c482895))
* bump versions of hedera, json rpc relay, and mirror node ([#1147](#1147)) ([0784b46](0784b46))
* clarify how to use nvm ([#1125](#1125)) ([bdc1873](bdc1873))
* commit message of auto update ([#1106](#1106)) ([a3231f9](a3231f9))
* external link rendering ([#1118](#1118)) ([28af1fe](28af1fe))
* file size empty error when throttle file is provided on command line ([#1140](#1140)) ([5180a76](5180a76))
* fixed release artifact version issue and updated readme link ([#1090](#1090)) ([84e6611](84e6611))
* **lease:** reworks the previous fix addressing renewal issues ([#1105](#1105)) ([5edb9c9](5edb9c9))
* should run `npm install` before build ([#1117](#1117)) ([3398875](3398875))
* solo deployment create should use email address in local config if it is already there instead of prompting the user for it ([#1112](#1112)) ([362df60](362df60))
* started adding a yachli example and taskfile ([#1132](#1132)) ([8753723](8753723))
* update to AccountManager._getNodeClient() to parallel node connection setup ([#1091](#1091)) ([4959a12](4959a12))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inspect existing cluster resources during cluster setup
3 participants