#200 Fix e2e
This commit is contained in:
parent
4d1d23cf6c
commit
b27aef1808
|
|
@ -39,6 +39,7 @@ rules:
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
|
- list
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
|
|
||||||
|
|
@ -145,13 +145,13 @@ func createJenkinsCR(t *testing.T, name, namespace string, seedJob *[]v1alpha2.S
|
||||||
Type: corev1.ServiceTypeNodePort,
|
Type: corev1.ServiceTypeNodePort,
|
||||||
Port: constants.DefaultHTTPPortInt32,
|
Port: constants.DefaultHTTPPortInt32,
|
||||||
},
|
},
|
||||||
Roles: []rbacv1.RoleRef{
|
},
|
||||||
{
|
}
|
||||||
APIGroup: "rbac.authorization.k8s.io",
|
jenkins.Spec.Roles = []rbacv1.RoleRef{
|
||||||
Kind: "ClusterRole",
|
{
|
||||||
Name: "view",
|
APIGroup: "rbac.authorization.k8s.io",
|
||||||
},
|
Kind: "Role",
|
||||||
},
|
Name: resources.GetResourceName(jenkins),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue