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

tk diff silently failing when ks diff works #59

Closed
tomwilkie opened this issue Aug 23, 2019 · 4 comments · Fixed by #61
Closed

tk diff silently failing when ks diff works #59

tomwilkie opened this issue Aug 23, 2019 · 4 comments · Fixed by #61
Labels
kind/bug Something isn't working

Comments

@tomwilkie
Copy link
Contributor

$ tk diff -v environments/default/hg-free-us-central1.default
Warning: `namespace` is deprecated, use `spec.namespace` instead.
Warning: `server` is deprecated, use `spec.apiServer` instead.
Warning: `team` is deprecated, use `metadata.labels.team` instead.


$ echo $?
16
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the kind/bug Something isn't working label Aug 23, 2019
@tomwilkie
Copy link
Contributor Author

This is using the native kubectl diff

@tomwilkie
Copy link
Contributor Author

Made tk print the kubectl error:

$ tk diff -v environments/default/hg-free-us-central1.default
Warning: `namespace` is deprecated, use `spec.namespace` instead.
Warning: `server` is deprecated, use `spec.apiServer` instead.
Warning: `team` is deprecated, use `metadata.labels.team` instead.
Error from server (Forbidden): clusterroles.rbac.authorization.k8s.io "prometheus-one" is forbidden: user "[email protected]" (groups=["system:authenticated"]) is attempting to grant RBAC permissions not currently held:
{APIGroups:[""], Resources:["endpoints"], Verbs:["get" "list" "watch"]}
{APIGroups:[""], Resources:["nodes"], Verbs:["get" "list" "watch"]}
{APIGroups:[""], Resources:["nodes/proxy"], Verbs:["get" "list" "watch"]}
{APIGroups:[""], Resources:["pods"], Verbs:["get" "list" "watch"]}
{APIGroups:[""], Resources:["services"], Verbs:["get" "list" "watch"]}
{NonResourceURLs:["/metrics"], Verbs:["get"]}
  • Interesting that ksonnet works...
  • Also, weird that kubectl diff using 1 for the presence of a diff or an RBAC error.

@tomwilkie
Copy link
Contributor Author

kubernetes/kubectl#707

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant