Skip to content

Instantly share code, notes, and snippets.

@jmrodri
Last active May 11, 2020 22:07
Show Gist options
  • Save jmrodri/76ef1ce004bd57210c7d7fe3ccf1590b to your computer and use it in GitHub Desktop.
Save jmrodri/76ef1ce004bd57210c7d7fe3ccf1590b to your computer and use it in GitHub Desktop.
option 1
cases := []testcase{
{
name: "This test should pass",
restMapper: restMapper,
owner: &unstructured.Unstructured{
Object: map[string]interface{}{
"kind": "Deployment",
"apiVersion": "rbac.authorization.k8s.io/v1",
"metadata": map[string]interface{}{
"name": "example-nginx-role",
"namespace": "ns",
,
},
},
dependent: &unstructured.Unstructured{
Object: map[string]interface{}{
"kind": "ClusterRole",
"apiVersion": "rbac.authorization.k8s.io/v1",
"metadata": map[string]interface{}{
"name": "example-nginx-role",
"namespace": "ns",
},
},
},
result: false,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment