github vmware-tanzu/crash-diagnostics v0.3.2

latest releases: v0.3.10, v0.3.9, v0.3.8...
3 years ago

v0.3.2

This release is a small but consequential in which two new Crashd script functions are introduces and API search functions (kube_get, kube_capture) have been update to search by API category.

copy_to

The new copy_to function allows script authors to copy files from the local machine (where the script is executing) to remote compute resources.

Example:

res=resources(provider=host_list_provider(hosts=["192.168.100.2","192.168.100.3"])) 
copy_to(source_path="./bar/foo.txt", target_path="bar/foo.txt", resources=res)

prog_avail_local

New function prog_avail_local is a utility function that searches the local PATH for the specified program. If found, it returns the full path of the program on the local machine as shown below:

prog_avail_local("go"')

The previous would return the full path of the Go binary on the local system.

API Resource Category Search

In this release, the API search functionality used by the kube_* functions (kube_get and kube_capture) now supports API resource category search (see Resource Categories for detail).

Example:

kube_get_data = kube_get(categories=["all"], kube_config = kube_config(path="path/to/kubecfg"))

Changelog

f6492f4 Implements support for copy_to() starlark function
d366bed add prog_avail_local function
2d5f02b add 'categories' to search, kind update to 0.9.0

Don't miss a new crash-diagnostics release

NewReleases is sending notifications on new releases.