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

AWS kube-up: fails to create /srv/kubernetes/abac-authz-policy.jsonl #29424

Closed
justinsb opened this issue Jul 22, 2016 · 1 comment
Closed

AWS kube-up: fails to create /srv/kubernetes/abac-authz-policy.jsonl #29424

justinsb opened this issue Jul 22, 2016 · 1 comment

Comments

@justinsb
Copy link
Member

2016-07-22 04:02:42,496 [salt.state       ][INFO    ] Running state [/srv/kubernetes/abac-authz-policy.jsonl] at time 04:02:42.495534
2016-07-22 04:02:42,496 [salt.state       ][INFO    ] Executing state file.managed for /srv/kubernetes/abac-authz-policy.jsonl
2016-07-22 04:02:42,502 [salt.state       ][ERROR   ] Unable to manage file: Jinja variable 'dict object' has no attribute 'kube_user'; line 3

---
{% set kube_user = grains.kube_user -%}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"user":"admin", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"user":"{{kube_user}}", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}    <======================
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"user":"kubelet", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"user":"kube_proxy", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"user":"kubecfg", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"user":"client", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"group":"system:serviceaccounts", "namespace": "*", "resource": "*", "apiGroup": "*", "nonResourcePath": "*"}}

---
@justinsb
Copy link
Member Author

justinsb commented Jul 22, 2016

Looks like this was broken by #29164 (which means no cherry pick will be needed :-) ). Fix incoming...

justinsb added a commit to justinsb/kubernetes that referenced this issue Jul 22, 2016
This was done for GCE in kubernetes#29164, but not for AWS.

Fixes kubernetes#29424
k8s-github-robot pushed a commit that referenced this issue Jul 22, 2016
Automatic merge from submit-queue

AWS kube-up: export kube_user to salt

This was done for GCE in #29164, but not for AWS.

Fixes #29424
justinsb added a commit to justinsb/kubernetes that referenced this issue Jul 23, 2016
This was done for GCE in kubernetes#29164, but not for AWS.

Fixes kubernetes#29424
zefciu pushed a commit to zefciu/kubernetes that referenced this issue Jul 28, 2016
This was done for GCE in kubernetes#29164, but not for AWS.

Fixes kubernetes#29424
shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this issue Dec 1, 2016
This was done for GCE in kubernetes#29164, but not for AWS.

Fixes kubernetes#29424
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

1 participant