Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Delete objects in reverse order.
Browse files Browse the repository at this point in the history
Fixes: #97
  • Loading branch information
mattmoor committed Feb 6, 2018
1 parent 959c5ad commit aad37cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/objects.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def k8s_objects(name, objects, **kwargs):

_run_all(name=name, objects=objects, delimiter="echo ---\n", **kwargs)
_run_all(name=name + ".create", objects=[x + ".create" for x in objects], **kwargs)
_run_all(name=name + ".delete", objects=[x + ".delete" for x in objects], **kwargs)
_run_all(name=name + ".delete", objects=[x + ".delete" for x in reversed(objects)], **kwargs)
_run_all(name=name + ".replace", objects=[x + ".replace" for x in objects], **kwargs)
_run_all(name=name + ".apply", objects=[x + ".apply" for x in objects], **kwargs)

0 comments on commit aad37cb

Please sign in to comment.