Enable Isolation Mode Between Folders and Workspaces The specific setup steps are as follows:
Check if the global management Helm repository exists.
helm repo list | grep ghippo
If the result is empty or shows the following error, proceed to the next step; otherwise, skip the next step.
Error: no repositories to show
Add and update the global management Helm repository.
helm repo add ghippo http://{ harbor url} /chartrepo/{ project}
helm repo update ghippo
Set environment variables for easier use in the following steps.
# Helm --set parameter backup file
export GHIPPO_VALUES_BAK = "ghippo-values-bak.yaml"
# Get the current version of ghippo
export GHIPPO_HELM_VERSION = $( helm get notes ghippo -n ghippo-system | grep "Chart Version" | awk -F ': ' '{ print $2 }' )
Backup the --set parameters.
helm get values ghippo -n ghippo-system -o yaml > ${ GHIPPO_VALUES_BAK }
Turn on the isolation mode switch between Folder and WS.
Run helm upgrade to apply the configuration.
helm upgrade ghippo ghippo/ghippo \
-n ghippo-system \
-f ${ GHIPPO_VALUES_BAK } \
--version ${ GHIPPO_HELM_VERSION }
Use kubectl to restart the global management Pod to apply the configuration.
kubectl rollout restart deploy/ghippo-apiserver -n ghippo-system