[kubernetes/kubernetes] kubectl should provide better error message when validation failed (#28321)

129 views
Skip to first unread message

Janet Kuo

unread,
Apr 3, 2018, 12:55:13 AM4/3/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

I found many users confused when they see this error message:

error validating data: <some error messages>; if you choose to ignore these errors, turn validation off with --validate=false

For most of them, the command just failed, and they don't know how to move on.

We should provide better error message, and communicate better what they should do next.

@kubernetes/sig-cli-feature-requests


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Nate-Clark

unread,
Apr 19, 2018, 12:36:03 PM4/19/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

to @arikkfir 's point... or better yet, just process the boolean value correctly!

Will Yardley

unread,
May 31, 2018, 7:26:32 PM5/31/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Agree that this should give the line number / character offset. Also, I think the point has been made elsewhere, but would be great if --validate / --dry-run caught these errors (for me, it doesn't seem to).

fejta-bot

unread,
Aug 29, 2018, 7:46:51 PM8/29/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Will Yardley

unread,
Aug 29, 2018, 7:52:45 PM8/29/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

fejta-bot

unread,
Nov 27, 2018, 7:43:13 PM11/27/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Will Yardley

unread,
Nov 27, 2018, 7:57:37 PM11/27/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove lifecycle-stale

Will Yardley

unread,
Nov 27, 2018, 7:58:24 PM11/27/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

fejta-bot

unread,
Feb 25, 2019, 8:28:39 PM2/25/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Will Yardley

unread,
Feb 25, 2019, 8:49:40 PM2/25/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

fejta-bot

unread,
May 26, 2019, 10:28:47 PM5/26/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Will Yardley

unread,
May 26, 2019, 11:04:58 PM5/26/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

Pontus

unread,
Jun 14, 2019, 2:41:46 PM6/14/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Got this today and i would probably not have found the error in at least a couple of more hours.
flag=true instead of flag="true"

fejta-bot

unread,
Sep 12, 2019, 3:14:27 PM9/12/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Will Yardley

unread,
Sep 12, 2019, 6:03:07 PM9/12/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

Pascal Helfenstein

unread,
Nov 11, 2019, 9:46:15 AM11/11/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

kubectl --namespace=default apply -f deployment/production/deployment.yaml

...
&{0xc4200e4780 0xc42013c230 default my-api deployment/production/deployment.yaml 0xc42010e5b0 0xc42010ebf8 13401 false}
for: "deployment/production/deployment.yaml": unrecognized type: string

Don't know if this is same issue but this is what i get when i do the following lol :D

      nodeSelector:
        role-app: true
      nodeSelector:
        role-app: "true"

Not even a line number

Which one is correct? :D


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

fejta-bot

unread,
Feb 9, 2020, 10:43:44 AM2/9/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Will Yardley

unread,
Feb 9, 2020, 11:32:01 AM2/9/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

fejta-bot

unread,
May 9, 2020, 12:53:42 PM5/9/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Jonathan Nicholas

unread,
May 25, 2020, 9:33:09 PM5/25/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

fejta-bot

unread,
Aug 23, 2020, 10:21:21 PM8/23/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

fejta-bot

unread,
Sep 22, 2020, 11:03:47 PM9/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.

/lifecycle rotten


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

fejta-bot

unread,
Oct 22, 2020, 11:46:43 PM10/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.


Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Kubernetes Prow Robot

unread,
Oct 22, 2020, 11:46:54 PM10/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Closed #28321.


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Kubernetes Prow Robot

unread,
Oct 22, 2020, 11:46:54 PM10/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Will Yardley

unread,
Oct 22, 2020, 11:49:08 PM10/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/reopen


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Kubernetes Prow Robot

unread,
Oct 22, 2020, 11:49:20 PM10/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@wyardley: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Evgenii

unread,
Jan 7, 2022, 2:29:56 PM1/7/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/reopen


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/28321/1007679584@github.com>

Kubernetes Prow Robot

unread,
Jan 7, 2022, 2:30:14 PM1/7/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@skillcoder: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/28321/1007679819@github.com>

Dmitry Zavedeev

unread,
Feb 17, 2022, 9:35:14 AM2/17/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Test!
$ helm create k8s-helm

$ helm lint k8s-helm/
==> Linting k8s-helm/
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed

$ kubectl apply -f k8s-helm/ --dry-run=client
error validating "k8s-helm/Chart.yaml": error validating data: kind not set; if you choose to ignore these errors, turn validation off with --validate=false
error validating "k8s-helm/values.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false

Linter did not reveal any errors, but there are problems with validation. How to be?

Helm launch!

$ helm install --debug --dry-run test-app k8s-helm/


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/28321/1043014543@github.com>

Reply all
Reply to author
Forward
0 new messages