Skip to content

Commit

Permalink
Revert "Assign the owner as a label to the project (#946)"
Browse files Browse the repository at this point in the history
This reverts commit 02c9bc8
  • Loading branch information
stitakis committed Jul 21, 2021
1 parent 137bb77 commit 7d919aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
- Fix port from 3.x for SonarQube libressl issue - change to openssl ([#996](https://github.com/opendevstack/ods-core/issues/996))

### Added
- Assign the owner as a label to the project ([#946](https://github.com/opendevstack/ods-core/pull/946))
- Install Aquasec scannercli on jenkins base image ([#976](https://github.com/opendevstack/ods-core/pull/976))
- Add changelog enforcer as GitHub Action to workflow ([#891](https://github.com/opendevstack/ods-core/issues/891))
- Narrow down system:authenticated permissions when creating new ODS project ([#942](https://github.com/opendevstack/ods-core/issues/942))
Expand Down
11 changes: 0 additions & 11 deletions create-projects/create-projects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ if [ -n "${PROJECT_ADMINS}" ]; then
oc policy add-role-to-user admin "${admin_user}" -n "${PROJECT_ID}-test"
oc policy add-role-to-user admin "${admin_user}" -n "${PROJECT_ID}-cd"
done

echo "Assign the owner as a label to the OpenShift project"
# Take the first in the list as owner of the project.
# Labels do not allow the '@' char so let's replace it with '_at_'
# For instance, [email protected] will be converted to foo_at_bar.com
# resulting in the following label: opendevstack.org/project.owner=foot_at_bar.com
namespace_owner=$(echo "${PROJECT_ADMINS}" | cut -d "," -f1 | sed -r 's/@/_at_/g')

oc label namespace "${PROJECT_ID}-dev" opendevstack.org/project.owner="${namespace_owner}"
oc label namespace "${PROJECT_ID}-test" opendevstack.org/project.owner="${namespace_owner}"
oc label namespace "${PROJECT_ID}-cd" opendevstack.org/project.owner="${namespace_owner}"
fi

if [ -n "${PROJECT_GROUPS}" ]; then
Expand Down

0 comments on commit 7d919aa

Please sign in to comment.