Kratix has been updated to no longer display the raw content of documents in the workflow.content of works and workplacements. This means that users now need to decode and decompress the content to view it (detailed in troubleshooting docs)
// Get the filepath of the first scheduled document
kubectl get work <work-name> -o=jsonpath='{.spec.workloadGroups[0].workloads[0].filepath}'
// Get, decode and decompress the content of the first scheduled document
kubectl get work <work-name> -o=jsonpath='{.spec.workloadGroups[0].workloads[0].content}' | base64 -d | gzip -d
For ease, this functionality can sit within the cli, getting and decoding the content for the user.
Considerations
This could take the form of a kubectl kratix plugin instead of addition to the cli (if this approach is taken, we can distribute it via krew)
Context
Kratix has been updated to no longer display the raw content of documents in the
workflow.content
of works and workplacements. This means that users now need to decode and decompress thecontent
to view it (detailed in troubleshooting docs)For ease, this functionality can sit within the cli, getting and decoding the content for the user.
Considerations
kubectl
kratix plugin instead of addition to the cli (if this approach is taken, we can distribute it viakrew
)