Problem Statement
The Kyverno SDK CEL HTTP library does not support DELETE operations, which are essential for completing CRUD (Create, Read, Update, Delete) functionality. DELETE is a fundamental HTTP method used to remove resources from REST APIs. Without DELETE support, users cannot use the HTTP library to perform resource deletion operations, limiting the library's usefulness for comprehensive API interactions and resource lifecycle management.
Solution Description
- Add Delete(url string, headers map[string]string) (any, error) method to the ContextInterface in types.go
- Implement the Delete method in contextImpl in http.go that creates a DELETE request with the provided headers
- Register two CEL function overloads in lib.go:
http_delete_string: Basic DELETE with URL only
http_delete_string_headers: DELETE with URL and custom headers
Alternatives
No response
Additional Context
No response
Slack discussion
No response
Research
Problem Statement
The Kyverno SDK CEL HTTP library does not support DELETE operations, which are essential for completing CRUD (Create, Read, Update, Delete) functionality. DELETE is a fundamental HTTP method used to remove resources from REST APIs. Without DELETE support, users cannot use the HTTP library to perform resource deletion operations, limiting the library's usefulness for comprehensive API interactions and resource lifecycle management.
Solution Description
http_delete_string: Basic DELETE with URL only
http_delete_string_headers: DELETE with URL and custom headers
Alternatives
No response
Additional Context
No response
Slack discussion
No response
Research