This commit is contained in:
Tomasz Sęk
2020-01-06 20:41:36 +01:00
parent 4d1d23cf6c
commit b27aef1808
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -39,6 +39,7 @@ rules:
verbs:
- create
- update
- list
- apiGroups:
- ""
resources:
+7 -7
View File
@@ -145,13 +145,13 @@ func createJenkinsCR(t *testing.T, name, namespace string, seedJob *[]v1alpha2.S
Type: corev1.ServiceTypeNodePort,
Port: constants.DefaultHTTPPortInt32,
},
Roles: []rbacv1.RoleRef{
{
APIGroup: "rbac.authorization.k8s.io",
Kind: "ClusterRole",
Name: "view",
},
},
},
}
jenkins.Spec.Roles = []rbacv1.RoleRef{
{
APIGroup: "rbac.authorization.k8s.io",
Kind: "Role",
Name: resources.GetResourceName(jenkins),
},
}