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(cli): add new command solo deployment list that lists deployments on that specific cluster #1220

Conversation

instamenta
Copy link
Contributor

Description

  • Adds new command solo deployment list:
    command accepts flag.clusterName and gets context from the local config and lists all deployments/namespaces that have remote config inside them.

  • Adds new method K8.isRemoteConfigPresentInNamespace() to search for remote config inside a namespace.

Related Issues

…-list--cluster-solo-1---give-cluster-and-return-a-list-of-solo-deployments-on-that-cluster
…moteConfigPresentInNamespace

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

github-actions bot commented Jan 28, 2025

Unit Test Results - Linux

  1 files  ±0   59 suites  ±0   2s ⏱️ -2s
233 tests ±0  233 ✅ ±0  0 💤 ±0  0 ❌ ±0 
238 runs  ±0  238 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4f22e5f. ± Comparison against base commit 8d7b858.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 28, 2025

Unit Test Results - Windows

  1 files  ±0   59 suites  ±0   8s ⏱️ -1s
233 tests ±0  233 ✅ ±0  0 💤 ±0  0 ❌ ±0 
238 runs  ±0  238 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4f22e5f. ± Comparison against base commit 8d7b858.

♻️ This comment has been updated with latest results.

Copy link
Contributor

E2E Test Report

 17 files  ±0  126 suites  ±0   1h 28m 48s ⏱️ +25s
258 tests ±0  258 ✅ ±0  0 💤 ±0  0 ❌ ±0 
269 runs  ±0  269 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 7b5cbed. ± Comparison against base commit 83ad04f.

Copy link
Contributor

github-actions bot commented Jan 28, 2025

E2E Test Report

 17 files  ±0  126 suites  ±0   1h 31m 2s ⏱️ + 2m 55s
254 tests ±0  254 ✅ ±0  0 💤 ±0  0 ❌ ±0 
265 runs  ±0  265 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4f22e5f. ± Comparison against base commit 8d7b858.

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Jan 28, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.06% (target: -1.00%) 32.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (8d7b858) 20725 17137 82.69%
Head commit (4f22e5f) 20750 (+25) 17146 (+9) 82.63% (-0.06%)

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 (#1220) 25 8 32.00%

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 28, 2025

Codecov Report

Attention: Patch coverage is 32.00000% with 17 lines in your changes missing coverage. Please review.

Project coverage is 81.67%. Comparing base (8d7b858) to head (4f22e5f).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/core/kube/k8_client.ts 32.00% 17 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1220      +/-   ##
==========================================
- Coverage   81.72%   81.67%   -0.06%     
==========================================
  Files          79       79              
  Lines       20725    20750      +25     
  Branches     1931     1542     -389     
==========================================
+ Hits        16937    16947      +10     
- Misses       3622     3728     +106     
+ Partials      166       75      -91     
Files with missing lines Coverage Δ
src/core/kube/k8_client.ts 81.54% <32.00%> (-0.67%) ⬇️

... and 29 files with indirect coverage changes

Impacted file tree graph

src/core/k8.ts Outdated Show resolved Hide resolved
@jeromy-cannon jeromy-cannon added PR: Unresolved Comments A pull request where there are comments and they need to be resolved. PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved. labels Jan 28, 2025
…-list--cluster-solo-1---give-cluster-and-return-a-list-of-solo-deployments-on-that-cluster

# Conflicts:
#	src/commands/deployment.ts
#	src/core/kube/k8_client.ts
@jeromy-cannon jeromy-cannon removed PR: Unresolved Comments A pull request where there are comments and they need to be resolved. PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved. labels Jan 31, 2025
@jeromy-cannon jeromy-cannon merged commit 6b0b486 into main Feb 3, 2025
41 of 43 checks passed
@jeromy-cannon jeromy-cannon deleted the 00961-solo-deployment-list--cluster-solo-1---give-cluster-and-return-a-list-of-solo-deployments-on-that-cluster branch February 3, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants