Skip to content

Commit c14921b

Browse files
authored
Merge pull request #22 from ibm-garage-cloud/bw-scripts
Script improvements
2 parents d824421 + a7edefe commit c14921b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

terraform/scripts/acp-admin

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,21 @@ fi
3636

3737
# Define the Polices for the Access Group to enable installation and adminstration
3838

39+
# https://cloud.ibm.com/docs/iam?topic=iam-userroles
3940
# All IAM Services in all Regions in Resource Group - 40
4041
ibmcloud iam access-group-policy-create ${ACCESS_GROUP} --roles Administrator,Manager --resource-group-name ${RESOURCE_GROUP}
4142

43+
# https://cloud.ibm.com/docs/iam?topic=iam-userroles
4244
# Resource Group - 10
4345
ibmcloud iam access-group-policy-create ${ACCESS_GROUP} --roles Viewer --resource-group-name ${RESOURCE_GROUP} --attributes "resourceType=resource-group,resource=${RESOURCE_GROUP}"
4446

47+
# "Prepare to create clusters at the account level"
48+
# https://cloud.ibm.com/docs/containers?topic=containers-clusters#cluster_prepare
4549
# Kubernetes service in all Regions - 45
4650
ibmcloud iam access-group-policy-create ${ACCESS_GROUP} --roles Administrator,Manager --service-name containers-kubernetes
4751

52+
# "Updating existing clusters to use the API key image pull secret"
53+
# https://cloud.ibm.com/docs/containers?topic=containers-images#imagePullSecret_migrate_api_key
4854
# Container Registery in all Regions - 64
4955
ibmcloud iam access-group-policy-create ${ACCESS_GROUP} --roles Administrator,Manager --service-name container-registry
5056

terraform/scripts/kill-kube-ns

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
#
1313
# SPDX-License-Identifier: EPL-2.0
1414
###############################################################################
15+
#
16+
# input validation
17+
if [ -z "$1" ]; then
18+
echo "Usage: kill-kube-ns <NAMESPACE>"
19+
echo "Delete the namespace. kubectl must be logged into the cluster."
20+
exit
21+
fi
1522

1623
set -eo pipefail
1724

0 commit comments

Comments
 (0)