You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log_message "'Offboards' either the specified SAS Viya deployment (namespace) or the specified tenant within that deployment. This removes the ability to limit admins to the SAS Viya deployment (or a single tenant within a given deployment)."
19
-
log_message "The offboarding process deletes the security access controls and the associated OpenSearch Dashboards tenant space (including any saved OpenSearch Dashboards content (e.g. visualizations, dashboards, etc.)."
20
-
log_message ""
21
-
log_message " Arguments:"
22
-
log_message " -ns, --namespace NAMESPACE - (Required) The SAS Viya deployment/Kubernetes Namespace to which access should be removed."
23
-
log_message " -t, --tenant TENANT - (Optional) The tenant within the specific SAS Viya deployment/Kubernetes Namespace to which access should be removed."
log_message "'Offboards' either the specified SAS Viya deployment (namespace) or the specified tenant within that deployment. This removes the ability to limit admins to the SAS Viya deployment (or a single tenant within a given deployment)."
19
+
log_message "The offboarding process deletes the security access controls and the associated OpenSearch Dashboards tenant space (including any saved OpenSearch Dashboards content (e.g. visualizations, dashboards, etc.)."
20
+
log_message ""
21
+
log_message " Arguments:"
22
+
log_message " -ns, --namespace NAMESPACE - (Required) The SAS Viya deployment/Kubernetes Namespace to which access should be removed."
23
+
log_message " -t, --tenant TENANT - (Optional) The tenant within the specific SAS Viya deployment/Kubernetes Namespace to which access should be removed."
24
+
log_message ""
25
+
#log_message " Options:"
26
+
#log_message ""
27
27
}
28
28
29
29
# set flag indicating wrapper/driver script being run
@@ -34,41 +34,41 @@ export LOGGING_DRIVER=true
34
34
#
35
35
POS_PARMS=""
36
36
37
-
while(("$#"));do
37
+
while(("$#"));do
38
38
case"$1"in
39
-
-ns | --namespace)
40
-
if [ -n"$2" ] && [ "${2:0:1}"!="-" ];then
41
-
namespace=$2
42
-
shift 2
43
-
else
44
-
log_error "A value for parameter [NAMESPACE] has not been provided.">&2
45
-
show_usage
46
-
exit 2
47
-
fi
48
-
;;
49
-
-t | --tenant)
50
-
if [ -n"$2" ] && [ "${2:0:1}"!="-" ];then
51
-
tenant=$2
52
-
shift 2
53
-
else
54
-
log_error "A value for parameter [TENANT] has not been provided.">&2
55
-
show_usage
56
-
exit 2
57
-
fi
58
-
;;
59
-
-h | --help)
39
+
-ns | --namespace)
40
+
if [ -n"$2" ] && [ "${2:0:1}"!="-" ];then
41
+
namespace=$2
42
+
shift 2
43
+
else
44
+
log_error "A value for parameter [NAMESPACE] has not been provided.">&2
60
45
show_usage
61
-
exit
62
-
;;
63
-
--*= | -*) # unsupported flags
64
-
log_error "Unsupported flag $1">&2
46
+
exit 2
47
+
fi
48
+
;;
49
+
-t | --tenant)
50
+
if [ -n"$2" ] && [ "${2:0:1}"!="-" ];then
51
+
tenant=$2
52
+
shift 2
53
+
else
54
+
log_error "A value for parameter [TENANT] has not been provided.">&2
65
55
show_usage
66
-
exit 1
67
-
;;
68
-
*) # preserve positional arguments
69
-
POS_PARMS="$POS_PARMS$1"
70
-
shift
71
-
;;
56
+
exit 2
57
+
fi
58
+
;;
59
+
-h | --help)
60
+
show_usage
61
+
exit
62
+
;;
63
+
--*= | -*) # unsupported flags
64
+
log_error "Unsupported flag $1">&2
65
+
show_usage
66
+
exit 1
67
+
;;
68
+
*) # preserve positional arguments
69
+
POS_PARMS="$POS_PARMS$1"
70
+
shift
71
+
;;
72
72
esac
73
73
done
74
74
@@ -162,7 +162,6 @@ else
162
162
log_warn "There was an issue deleting the index [${kibana_index_name}_*] holding content related to OpenSearch Dashboards tenant space [$ktenant]. You may need to manually delete this index. [$response]"
0 commit comments