mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
Merge pull request #318 from replicatedhq/divolgin/cani
Fix can-i checks
This commit is contained in:
@@ -148,7 +148,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Namespace",
|
||||
Resource: "namespaces",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -160,7 +160,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Node",
|
||||
Resource: "nodes",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -172,7 +172,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "apiextensions.k8s.io",
|
||||
Version: "",
|
||||
Resource: "CustomResourceDefinition",
|
||||
Resource: "customresourcedefinitions",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -184,7 +184,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "storage.k8s.io",
|
||||
Version: "",
|
||||
Resource: "StorageClasses",
|
||||
Resource: "storageclasses",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -197,7 +197,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Secret",
|
||||
Resource: "secrets",
|
||||
Subresource: "",
|
||||
Name: c.Secret.SecretName,
|
||||
},
|
||||
@@ -210,7 +210,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -222,8 +222,8 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Subresource: "log",
|
||||
Resource: "pods",
|
||||
Subresource: "logs",
|
||||
Name: "",
|
||||
},
|
||||
NonResourceAttributes: nil,
|
||||
@@ -235,7 +235,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "create",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -248,7 +248,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -260,7 +260,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "exec",
|
||||
Name: "",
|
||||
},
|
||||
@@ -273,7 +273,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -285,7 +285,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "exec",
|
||||
Name: "",
|
||||
},
|
||||
|
||||
@@ -168,7 +168,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Namespace",
|
||||
Resource: "namespaces",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -180,7 +180,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Node",
|
||||
Resource: "nodes",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -192,7 +192,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "apiextensions.k8s.io",
|
||||
Version: "",
|
||||
Resource: "CustomResourceDefinition",
|
||||
Resource: "customresourcedefinitions",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -204,7 +204,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "storage.k8s.io",
|
||||
Version: "",
|
||||
Resource: "StorageClasses",
|
||||
Resource: "storageclasses",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -217,7 +217,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Secret",
|
||||
Resource: "secrets",
|
||||
Subresource: "",
|
||||
Name: c.Secret.SecretName,
|
||||
},
|
||||
@@ -230,7 +230,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -242,8 +242,8 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Subresource: "log",
|
||||
Resource: "pods",
|
||||
Subresource: "logs",
|
||||
Name: "",
|
||||
},
|
||||
NonResourceAttributes: nil,
|
||||
@@ -255,7 +255,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "create",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -268,7 +268,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -280,7 +280,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "exec",
|
||||
Name: "",
|
||||
},
|
||||
@@ -293,7 +293,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "list",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "",
|
||||
Name: "",
|
||||
},
|
||||
@@ -305,7 +305,7 @@ func (c *Collect) AccessReviewSpecs(overrideNS string) []authorizationv1.SelfSub
|
||||
Verb: "get",
|
||||
Group: "",
|
||||
Version: "",
|
||||
Resource: "Pod",
|
||||
Resource: "pods",
|
||||
Subresource: "exec",
|
||||
Name: "",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user