Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy-ccnp.sh: Update the path of the manifests #8

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions deployment/kubernetes/script/deploy-ccnp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,26 @@ function check_env {
}

function delete_ccnp {
pushd "${WORK_DIR}/../.." || exit
pushd "${WORK_DIR}/../../.." || exit

echo "-----------Delete ccnp device plugin and NFD..."
helm uninstall $NFD_NAME --namespace $NFD_NS
helm uninstall ccnp-device-plugin

echo "-----------Delete ccnp server..."
kubectl delete -f deployment/manifests/ccnp-server-deployment.yaml
kubectl delete -f deployment/kubernetes/manifests/ccnp-server-deployment.yaml

echo "-----------Delete ccnp namespace..."
kubectl delete -f deployment/manifests/namespace.yaml
kubectl delete -f deployment/kubernetes/manifests/namespace.yaml
popd || exit
}

function deploy_ccnp {
pushd "${WORK_DIR}/../.." || exit
pushd "${WORK_DIR}/../../.." || exit

# Generate temporary yaml files for deployment
mkdir -p temp_manifests
cp deployment/manifests/* temp_manifests/
cp deployment/kubernetes/manifests/* temp_manifests/

#If private repo is used, modify the images' names in the yaml files

Expand Down
Loading