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

Skaffold run deployment error is missing #564

Closed
taraspos opened this issue May 17, 2018 · 2 comments
Closed

Skaffold run deployment error is missing #564

taraspos opened this issue May 17, 2018 · 2 comments

Comments

@taraspos
Copy link

taraspos commented May 17, 2018

Hello,
I updated a Skaffold and faced the unfortunate issue.
Skaffold doesn't print error from kubernetes deployment.

I had broken CronJob definition (restartPolicy was missing) and tool keeps hiding errors from me. I had to do it manually with kubectl to find the actual error.

The output of skaffold run:

Actual behavior

Starting deploy...
configmap "xxxxx" unchanged
configmap "xxxx" unchanged
deployment "xxx" configured
service "xxxx" unchanged
Error: deploy: deploy step: deploying manifests: exit status 1
Usage:
  skaffold run [flags]

Flags:
  -f, --filename string       Filename or URL to the pipeline file (default "skaffold.yaml")
  -h, --help                  help for run
  -p, --profile stringArray   Activate profiles by name
  -t, --tag string            The optional custom tag to use for images which overrides the current Tagger configuration
      --toot                  Emit a terminal beep after the deploy is complete

Global Flags:
  -v, --verbosity string   Log level (debug, info, warn, error, fatal, panic (default "warning")
### Information

Expected behavior

Starting deploy...
configmap "xxxx" unchanged
configmap "xxxx" unchanged
deployment "xxx" configured
service "xxxx" unchanged
Error: deploy: deploy step: deploying manifests: exit status 1
The CronJob "xxxxx" is invalid: spec.jobTemplate.spec.template.spec.restartPolicy: Unsupported value: "Always": supported values: "OnFailure", "Never"
  • Skaffold version: 0.6.0

Steps to reproduce the behavior

  1. Deploy broken CronJob definition
@jonjohnsonjr
Copy link
Contributor

Does #560 fix this?

@taraspos
Copy link
Author

I think it does. Thanks

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

No branches or pull requests

2 participants