File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed
cluster-scope/overlays/prod Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : kustomize.config.k8s.io/v1beta1
2
2
kind : Kustomization
3
3
resources :
4
- - ../../../base/user.openshift.io/groups/neu-students
4
+ - ../../../base/user.openshift.io/groups/neu-students
Original file line number Diff line number Diff line change 1
1
apiVersion : kustomize.config.k8s.io/v1beta1
2
2
kind : Kustomization
3
3
resources :
4
- - ../common
4
+ - ../common
Original file line number Diff line number Diff line change @@ -12,14 +12,7 @@ PROJECT=$(yq e .project-name ${CONFIG})
12
12
ENVIRONMENT=moc
13
13
CLUSTER=$( yq e ' .cluster[0] | downcase' ${CONFIG} )
14
14
NAMESPACE=$( yq e ' .project-name | downcase' ${CONFIG} )
15
- REQUESTER=$( yq e ' .project-owner' ${CONFIG} )
16
- DISPLAY_NAME=$( yq e ' .project-name' ${CONFIG} )
17
- PROJECT_OWNER=$( yq e ' .project-owner' ${CONFIG} )
18
- ONBOARDING_ISSUE=https://github.com/${ORG_NAME} /${SOURCE_REPO} /issues/${ISSUE_NUMBER}
19
- DOCS=$( yq e ' .project-docs-link' ${CONFIG} )
20
15
GROUP=$( yq e ' .team-name' ${CONFIG} )
21
- USERS=$( yq ' .users | split(",") | map(trim)' -o json -I=0 ${CONFIG} )
22
- QUOTA=$( yq e ' .quota[0] | downcase' ${CONFIG} )
23
16
24
17
25
18
# Remove OCP Group for team being onboarded
@@ -36,6 +29,9 @@ RBAC_PATH="${REPO}/cluster-scope/components/project-admin-rolebindings/${GROUP}/
36
29
rm ${RBAC_PATH} -rf
37
30
38
31
# Remove from cluster
39
- # TODO
32
+ cd ${REPO} /cluster-scope/overlays/prod/common
33
+ kustomize edit remove resource ../../../base/user.openshift.io/groups/${GROUP}
34
+ cd ${REPO} /cluster-scope/overlays/prod/${ENVIRONMENT} /${CLUSTER}
35
+ kustomize edit remove resource ../../../../base/core/namespaces/${NAMESPACE}
40
36
41
37
set -o allexport
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ REPO=${WORKING_DIR}/apps
9
9
10
10
# Unpack Config file, we will need these environment variables for the remainder of the steps
11
11
PROJECT=$( yq e .project-name ${CONFIG} )
12
- ENVIRONMENT=moc
12
+ ENVIRONMENT=$( yq e ' .environment[0] | downcase ' ${CONFIG} )
13
13
CLUSTER=$( yq e ' .cluster[0] | downcase' ${CONFIG} )
14
14
NAMESPACE=$( yq e ' .project-name | downcase' ${CONFIG} )
15
15
REQUESTER=$( yq e ' .project-owner' ${CONFIG} )
@@ -77,7 +77,10 @@ yq -i '.resources |= sort' kustomization.yaml
77
77
cd ${REPO} /cluster-scope/overlays/prod/common
78
78
kustomize edit add resource ../../../base/user.openshift.io/groups/${GROUP}
79
79
80
- # Same as earlier, here we sort the resources field
80
+ # Same as before, sort the resources field
81
81
yq -i ' .resources |= sort' kustomization.yaml
82
82
83
+ # Commit changes
84
+ # TODO
85
+
83
86
set -o allexport
You can’t perform that action at this time.
0 commit comments