From 3c7f837e0a9575016d733b7cead14e1e078c868f Mon Sep 17 00:00:00 2001 From: Md Sahil <85174511+MdSahil-oss@users.noreply.github.com> Date: Mon, 24 Apr 2023 00:09:41 +0530 Subject: [PATCH] kuttl README (#6984) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added Context in CleanupPolicySpec Signed-off-by: MdSahil-oss * Added context.go file with loadVariable() Signed-off-by: MdSahil-oss * Added loadAPIData() in context.go and called from handlers.go Signed-off-by: MdSahil-oss * Added conditionals for not supported context variables Signed-off-by: MdSahil-oss * Reverted versions in CRDs Signed-off-by: MdSahil-oss * Reverted CRDs to v0.11.1 Signed-off-by: MdSahil-oss * Imported fmt in handlers.go Signed-off-by: MdSahil-oss * Added Context in CleanupPolicySpec Signed-off-by: MdSahil-oss * Added context.go file with loadVariable() Signed-off-by: MdSahil-oss * Added loadAPIData() in context.go and called from handlers.go Signed-off-by: MdSahil-oss * Added conditionals for not supported context variables Signed-off-by: MdSahil-oss * Reverted versions in CRDs Signed-off-by: MdSahil-oss * Reverted CRDs to v0.11.1 Signed-off-by: MdSahil-oss * Imported fmt in handlers.go Signed-off-by: MdSahil-oss * Removed duplicate import Signed-off-by: MdSahil-oss * make verify-codegen Signed-off-by: MdSahil-oss * Updated kuttl test Signed-off-by: MdSahil-oss * Fixed kuttl failure Signed-off-by: MdSahil-oss * moved policy check to validation Signed-off-by: MdSahil-oss * Reused functions Signed-off-by: MdSahil-oss * Added kuttl test Signed-off-by: MdSahil-oss * Added more configMap Signed-off-by: MdSahil-oss * removed unecessary check Signed-off-by: MdSahil-oss * auto codegen Signed-off-by: MdSahil-oss * updated codegen Signed-off-by: MdSahil-oss * Renamed ApplyJMESPath() to applyJMESPath() Signed-off-by: MdSahil-oss * Added Readme in context-cleanup-pod Signed-off-by: MdSahil-oss --------- Signed-off-by: MdSahil-oss Co-authored-by: shuting Co-authored-by: Chip Zoller Co-authored-by: Charles-Edouard Brétéché --- .../cleanup/clusterpolicy/context-cleanup-pod/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/conformance/kuttl/cleanup/clusterpolicy/context-cleanup-pod/README.md diff --git a/test/conformance/kuttl/cleanup/clusterpolicy/context-cleanup-pod/README.md b/test/conformance/kuttl/cleanup/clusterpolicy/context-cleanup-pod/README.md new file mode 100644 index 0000000000..d65b6906b9 --- /dev/null +++ b/test/conformance/kuttl/cleanup/clusterpolicy/context-cleanup-pod/README.md @@ -0,0 +1,9 @@ +# ## Description + +This test cleans up pods via a cluster cleanup policy. + +## Expected Behavior + +The pod `{{ varname }}` in the namespace `{{ varNamespace }}` set by context variable is cleaned up successfully. + +## Reference Issue(s)