Skip to content

Commit 22ee170

Browse files
committed
update scripts.
1 parent f0fc256 commit 22ee170

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

scripts/offboarding.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -o allexport -o pipefail -ex
33
# Pre-condition:
44
# - Create the config file at location ${PAYLOAD_PATH}
55
# - Clone the github.com/operate-first/apps repo at location ${WORKING_DIR}
6+
# - Working branch should be clean, checked out of upstream default branch.
67

78
CONFIG=${PAYLOAD_PATH}
89
REPO=${WORKING_DIR}/apps
@@ -34,4 +35,9 @@ kustomize edit remove resource ../../../base/user.openshift.io/groups/${GROUP}
3435
cd ${REPO}/cluster-scope/overlays/prod/${ENVIRONMENT}/${CLUSTER}
3536
kustomize edit remove resource ../../../../base/core/namespaces/${NAMESPACE}
3637

38+
# Commit changes
39+
cd ${REPO}
40+
git add cluster-scope
41+
git commit -m "Offboarding team ${GROUP}."
42+
3743
set -o allexport

scripts/onboarding.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -o allexport -o pipefail -ex
33
# Pre-condition:
44
# - Create the config file at location ${PAYLOAD_PATH}
55
# - Clone the github.com/operate-first/apps repo at location ${WORKING_DIR}
6+
# - Working branch should be clean, checked out of upstream default branch.
67

78
CONFIG=${PAYLOAD_PATH}
89
REPO=${WORKING_DIR}/apps
@@ -81,6 +82,8 @@ kustomize edit add resource ../../../base/user.openshift.io/groups/${GROUP}
8182
yq -i '.resources |= sort' kustomization.yaml
8283

8384
# Commit changes
84-
# TODO
85+
cd ${REPO}
86+
git add cluster-scope
87+
git commit -m "Onboarding team ${GROUP}."
8588

8689
set -o allexport

0 commit comments

Comments
 (0)