Skip to content

Commit

Permalink
Merge pull request #4057 from LiilyZhang/zhangl/Issue3432-2
Browse files Browse the repository at this point in the history
Issue open-horizon#Issue3432 (part2) - MMSinCluster: Update agent-ins…
  • Loading branch information
LiilyZhang authored May 8, 2024
2 parents 4a994a5 + c16f76e commit 29f9d8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent-install/agent-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
set -e

DEPLOYMENT_NAME="agent"
SERVICE_NAME="agent-service"
SERVICE_ACCOUNT_NAME="agent-service-account"
CLUSTER_ROLE_BINDING_NAME="openhorizon-agent-cluster-rule"
SECRET_NAME="openhorizon-agent-secrets"
Expand Down Expand Up @@ -378,6 +379,9 @@ function deleteAgentResources() {
fi
fi

log_info "Deleting agent service..."
$KUBECTL delete svc $SERVICE_NAME -n $AGENT_NAMESPACE

log_info "Deleting configmap..."
$KUBECTL delete configmap $CONFIGMAP_NAME -n $AGENT_NAMESPACE
$KUBECTL delete configmap ${CONFIGMAP_NAME}-backup -n $AGENT_NAMESPACE
Expand Down

0 comments on commit 29f9d8d

Please sign in to comment.