Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: the cli can get and decompress works and workplacements #59

Open
SaphMB opened this issue Sep 26, 2024 · 0 comments
Open

feat: the cli can get and decompress works and workplacements #59

SaphMB opened this issue Sep 26, 2024 · 0 comments

Comments

@SaphMB
Copy link
Member

SaphMB commented Sep 26, 2024

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 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant