-
Notifications
You must be signed in to change notification settings - Fork 9
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: solo deployment create
should use the context and cluster provided for where to save the remote config
#1142
base: main
Are you sure you want to change the base?
feat: solo deployment create
should use the context and cluster provided for where to save the remote config
#1142
Conversation
Signed-off-by: instamenta <[email protected]>
…calconfig for not prompting the user for email Signed-off-by: instamenta <[email protected]>
Signed-off-by: instamenta <[email protected]>
E2E Test Report 17 files 126 suites 1h 30m 15s ⏱️ Results for commit 66d6a1c. ♻️ This comment has been updated with latest results. |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1142 +/- ##
==========================================
- Coverage 83.37% 83.03% -0.34%
==========================================
Files 77 77
Lines 20809 21188 +379
Branches 1717 1269 -448
==========================================
+ Hits 17349 17593 +244
- Misses 3363 3590 +227
+ Partials 97 5 -92
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❯ rm -Rf ~/.solo
❯ kind create cluster -n solo-e2e
Creating cluster "solo-e2e" ...
✓ Ensuring node image (kindest/node:v1.27.3) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-solo-e2e"
You can now use your cluster with:
kubectl cluster-info --context kind-solo-e2e
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
❯ kind create cluster -n solo
Creating cluster "solo" ...
✓ Ensuring node image (kindest/node:v1.27.3) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-solo"
You can now use your cluster with:
kubectl cluster-info --context kind-solo
Have a nice day! 👋
❯ git status
On branch 00976-solo-deployment-create-should-use-the-context
Your branch is up to date with 'origin/00976-solo-deployment-create-should-use-the-context'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
examples/address-book/
nothing added to commit but untracked files present (use "git add" to track)
❯ git pull
Already up to date.
❯ npm run build
> @hashgraph/[email protected] build
> rm -Rf dist && tsc && node resources/post-build-script.js
❯ npm run solo -- deployment create -n jeromy-solo --deployment-clusters kind-solo-e2e --context-cluster kind-solo-e2e=kind-solo-e2e
> @hashgraph/[email protected] solo
> node --no-deprecation --no-warnings dist/solo.js deployment create -n jeromy-solo --deployment-clusters kind-solo-e2e --context-cluster kind-solo-e2e=kind-solo-e2e
******************************* Solo *********************************************
Version : 0.32.0
Kubernetes Context : kind-solo
Kubernetes Cluster : kind-solo
Kubernetes Namespace : jeromy-solo
**********************************************************************************
✔ Initialize
✔ Acquire lease - lease acquired successfully, attempt: 1/10
⠴ Prompt local configuration
◼ Validate cluster connections
◼ Create remote config
◼ Read local configuration settings
◼ Update local configuration
? Select kubectl context to be associated with cluster: kind-solo-e2e …
❯ docker
docker-desktop
gke-alex
gke-edge
gke-fullstack
gke-jeromy
gke-secure
re-lat
kind-solo-e2e
kind-solo
It is prompting me for the cluster, even though I supplied the flag with the same information.
Then when I select it, I get this error:
******************************* Solo *********************************************
Version : 0.32.0
Kubernetes Context : kind-solo
Kubernetes Cluster : kind-solo
Kubernetes Namespace : jeromy-solo
**********************************************************************************
✔ Initialize
✔ Acquire lease - lease acquired successfully, attempt: 1/10
✖ ENOENT: no such file or directory, open '/Users/user/.solo/cache/local-config.yaml'
◼ Validate cluster connections
◼ Create remote config
◼ Read local configuration settings
◼ Update local configuration
*********************************** ERROR *****************************************
Error installing chart solo-deployment
***********************************************************************************
I think Ivo moved the init method that creates the directories into the basecommand, you just need to call it at the beginning of the deployment command. this is because I did rm -Rf
on the ~/.solo
directory.
if I run solo init
and then run the command again, I now get a different error:
❯ npm run solo -- init
> @hashgraph/[email protected] solo
> node --no-deprecation --no-warnings dist/solo.js init
******************************* Solo *********************************************
Version : 0.32.0
Kubernetes Context : kind-solo
Kubernetes Cluster : kind-solo
**********************************************************************************
✔ Setup home directory and cache
✔ Check dependencies [11s]
✔ Check dependency: helm [OS: darwin, Release: 23.6.0, Arch: arm64] [11s]
✔ Setup chart manager [1s]
✔ Copy templates in '/Users/user/.solo/cache'
***************************************************************************************
Note: solo stores various artifacts (config, logs, keys etc.) in its home directory: /Users/user/.solo
If a full reset is needed, delete the directory or relevant sub-directories before running 'solo init'.
***************************************************************************************
❯ npm run solo -- deployment create -n jeromy-solo --deployment-clusters kind-solo-e2e --context-cluster kind-solo-e2e=kind-solo-e2e
> @hashgraph/[email protected] solo
> node --no-deprecation --no-warnings dist/solo.js deployment create -n jeromy-solo --deployment-clusters kind-solo-e2e --context-cluster kind-solo-e2e=kind-solo-e2e
******************************* Solo *********************************************
Version : 0.32.0
Kubernetes Context : kind-solo
Kubernetes Cluster : kind-solo
Kubernetes Namespace : jeromy-solo
**********************************************************************************
✔ Initialize
✔ Acquire lease - lease acquired successfully, attempt: 1/10
✔ Prompt local configuration [7s]
✔ Validate cluster connections
✔ Testing connection to cluster: kind-solo-e2e
✖ Failed to read remote config from cluster
◼ Read local configuration settings
◼ Update local configuration
*********************************** ERROR *****************************************
failed to read existing leases, unexpected server response of '500' received
***********************************************************************************
@instamenta , this is still happening after I pulled your latest.
…-create-should-use-the-context
as requested Signed-off-by: instamenta <[email protected]>
Description
Addresses issue preventing passing email address via flags
Related Issues