C3I: Fix permissions on new c3i project.

Allow service account used by pipeline-as-a-service to manage resources
in project created via c3i-as-a-service.
This commit is contained in:
Michal Kovarik
2020-02-14 07:17:57 +01:00
parent 401d8aa3b8
commit 7bae720b81

View File

@@ -137,7 +137,7 @@ pipeline {
openshift.withProject(params.C3IAAS_REQUEST_PROJECT_BUILD_CONFIG_NAMESPACE) {
c3i.buildAndWait(script: this, objs: "bc/${params.C3IAAS_REQUEST_PROJECT_BUILD_CONFIG_NAME}",
'-e', "PROJECT_NAME=${env.PIPELINE_ID}",
'-e', "ADMIN_GROUPS=system:serviceaccounts:${TRIGGER_NAMESPACE}",
'-e', "ADMIN_GROUPS=system:serviceaccounts:${TRIGGER_NAMESPACE},system:serviceaccounts:${PIPELINE_AS_A_SERVICE_BUILD_NAMESPACE}",
'-e', "LIFETIME_IN_MINUTES=${params.C3IAAS_LIFETIME}"
)
}