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

Reverse prebuilt multi-object yamls in k8s_object's delete #109

Closed
mattmoor opened this issue Feb 8, 2018 · 0 comments
Closed

Reverse prebuilt multi-object yamls in k8s_object's delete #109

mattmoor opened this issue Feb 8, 2018 · 0 comments

Comments

@mattmoor
Copy link
Contributor

mattmoor commented Feb 8, 2018

This is related to this issue with k8s_objects.

This manifests when the input to k8s_object is a multi-document yaml file delimited by ---, such as the Istio release.

In the case of Istio what happens is that they create the CRDs before instances of the CRDs, otherwise kubectl create would fail.

However, when you kubectl delete this file, you run into problems because (evaluating in the same order) you delete the CRD definition before its instances, and so the former cascades the deletion and the latter result in 404 errors.

mattmoor added a commit that referenced this issue Feb 8, 2018
…#110)

* This splits and reverses a multi-document yaml for k8s_object delete.

Fixes: #109
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant