-
Notifications
You must be signed in to change notification settings - Fork 113
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
kapp deploy suddenly doesn't work anymore #404
Comments
OMG ... Shit ... sorry ... was my fault! :) I was in the wrong directory today ... there are no yaml's at all ... and this cause this "result". Mayb it would be good if kapp shows a different warning if no input files at all given? Could be rejected. |
Glad you are enjoying kapp! |
That was the problem :D I run kapp deploy with "nothing" g |
Oh I see! I am sorry I did not notice the comment you made later. A better error message would definitely help. We will take note of this! |
The error I get while trying to deploy an empty directory is
I am curious about what conditions led to that error message as we would definitely want it to be more helpful 🤔 |
Is it possible that this directory had YAML files that were improperly formatted or created for some other purpose? |
You are right @100mik ... there was a "EXPORT.yml" ... its just a configuration file. |
Oops! Thanks for bringing this up. |
What steps did you take:
Yesterday I started working with kapp (nice tool! :D) in my win-10 docker-desktop-k8s ... simple setup, using lens to look into it, simple application to deploy (deployment, service, nginx-ingress, ....) nothing special so far ... And everything works well ...
kapp deploy -a "foo" -f .
I did this many many many times ... changed my yaml's, re-deployed etc.
I also deleted my app many times
kapp delete -a "foo"
Everything was fine
What happened:
BUT :D Today ... kapp deploy always fail with
"kapp: Error: error unmarshaling JSON: json: cannot unmarshal array into Go value of type map[string]interface {}"
And I have no glue why :(
Anything else you would like to add:
I removed all the things I installed with kapp yesterday
kapp list
kapp delete ...
Is there a debug/verbose mode or something?
Environment:
$kapp --version
kapp version 0.43.0
$kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.1", GitCommit:"86ec240af8cbd1b60bcc4c03c20da9b98005b92e", GitTreeState:"clean", BuildDate:"2021-12-16T11:41:01Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:42:41Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered: