From c714fbef18d04fab9756eb6cfc3c35f5a9dcb73b Mon Sep 17 00:00:00 2001 From: Matan Heled Date: Thu, 16 Mar 2023 19:48:34 +0200 Subject: [PATCH 1/3] added disclosure --- kubernetes/install.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/kubernetes/install.sh b/kubernetes/install.sh index f2c4647..94abc85 100644 --- a/kubernetes/install.sh +++ b/kubernetes/install.sh @@ -54,6 +54,42 @@ echo "Importing common functions..." curl -s ${COMMON_FUNCTIONS_URL} -o "${temp_dir}/common.sh" source "${temp_dir}/common.sh" +cat << EOF +**** Install infromation **** +Docs Reference for Port's K8s Exporter - https://docs.getport.io/build-your-software-catalog/sync-data-to-catalog/kubernetes/ + +The following script will ensure a connection to the Kubernetes Cluster which is currently +referenced in your ~/.kubeconfig file. + +It will add Port's helm chart ($HELM_REPO_URL) under the name $HELM_REPO_NAME locally, +and then install the chart to your Kubernetes cluster under the namespace: $TARGET_NAMESPACE, +and the Deployment name: $DEPLOYMENT_NAME. + +By default, the exporter is given *read* permissions on all API groups and resources +using the "$DEPLOYMENT_NAME" Cluster Role: + +#### +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - get + - watch + - list +#### + +For advanced security configuration - https://docs.getport.io/build-your-software-catalog/sync-data-to-catalog/kubernetes/advanced#security-configuration + + +In Port, the current K8s cluster will be referenced as "$CLUSTER_NAME". + +For further information, don't hesitate to reach out using our in-site Intercom system! +EOF + +trigger_continue_prompt + echo "Checking for prerequisites..." check_commands "helm" "kubectl" From dc57af681335c806c5b07f494aba9a94b28d4b63 Mon Sep 17 00:00:00 2001 From: Matan Heled Date: Thu, 16 Mar 2023 19:56:17 +0200 Subject: [PATCH 2/3] added newlines --- kubernetes/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/install.sh b/kubernetes/install.sh index 94abc85..c78964c 100644 --- a/kubernetes/install.sh +++ b/kubernetes/install.sh @@ -55,6 +55,8 @@ curl -s ${COMMON_FUNCTIONS_URL} -o "${temp_dir}/common.sh" source "${temp_dir}/common.sh" cat << EOF + + **** Install infromation **** Docs Reference for Port's K8s Exporter - https://docs.getport.io/build-your-software-catalog/sync-data-to-catalog/kubernetes/ From 0fca376f6806939cf29a881ddec62a37bcb8d42d Mon Sep 17 00:00:00 2001 From: Matan Heled Date: Thu, 16 Mar 2023 20:02:32 +0200 Subject: [PATCH 3/3] fix --- kubernetes/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kubernetes/install.sh b/kubernetes/install.sh index c78964c..e9bc449 100644 --- a/kubernetes/install.sh +++ b/kubernetes/install.sh @@ -63,9 +63,9 @@ Docs Reference for Port's K8s Exporter - https://docs.getport.io/build-your-soft The following script will ensure a connection to the Kubernetes Cluster which is currently referenced in your ~/.kubeconfig file. -It will add Port's helm chart ($HELM_REPO_URL) under the name $HELM_REPO_NAME locally, -and then install the chart to your Kubernetes cluster under the namespace: $TARGET_NAMESPACE, -and the Deployment name: $DEPLOYMENT_NAME. +It will add Port's helm chart ($HELM_REPO_URL) under the name "$HELM_REPO_NAME" locally, +and then install the chart to your Kubernetes cluster under the namespace: "$TARGET_NAMESPACE", +and the Deployment name: "$DEPLOYMENT_NAME". By default, the exporter is given *read* permissions on all API groups and resources using the "$DEPLOYMENT_NAME" Cluster Role: