Skip to content

Commit

Permalink
Workflow: Delete old model objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Parmann authored and epa095 committed Nov 27, 2019
1 parent ec5e7bd commit ba77cc0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1250,9 +1250,10 @@ spec:
image: {{ docker_registry }}/{{ docker_repository }}/gordo-deploy:{{gordo_version}}
command: [bash]
source: |
echo "Deleting gordo deployments and services for project {{project_name}} different than {{project_version}}" \
echo "Deleting gordo deployments, services, models, and hpa's for project {{project_name}} different than {{project_version}}" \
&& kubectl delete deployments -l applications.gordo.equinor.com/project-name={{project_name}},applications.gordo.equinor.com/project-version!={{project_version}} \
&& kubectl delete svc -l applications.gordo.equinor.com/project-name={{project_name}},applications.gordo.equinor.com/project-version!={{project_version}} \
&& kubectl delete models -l applications.gordo.equinor.com/project-name={{project_name}},applications.gordo.equinor.com/project-version!={{project_version}} \
&& kubectl delete hpa -l applications.gordo.equinor.com/project-name={{project_name}},applications.gordo.equinor.com/project-version!={{project_version}} \
&& echo "Deleting Succeeded gordo pods for project={{project_name}} version={{project_version}}" \
&& kubectl delete pods --field-selector=status.phase==Succeeded -l applications.gordo.equinor.com/project-name={{project_name}},applications.gordo.equinor.com/project-version={{project_version}}
Expand Down

0 comments on commit ba77cc0

Please sign in to comment.