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

Caching of workflows and workflowtemplates #3899

Closed
ddseapy opened this issue Aug 29, 2020 · 2 comments
Closed

Caching of workflows and workflowtemplates #3899

ddseapy opened this issue Aug 29, 2020 · 2 comments

Comments

@ddseapy
Copy link
Contributor

ddseapy commented Aug 29, 2020

Summary

One of our java applications needs a cache of workflows and workflowtemplates to make various decisions, as requesting them regularly from the argo server causes bandwidth issues due to the number/size of our workflows. For some things we could use the field selection to limit the amount of data coming back, but it's not ideal when wanting the full objects. We would like to still use the argo server for other less-frequent/low-bandwidth operations (submit, resubmits, retries, deletes, suspend, resume, etc...).

We saw that the argo java client transitively pulls in the kubernetes java sdk, so we thought to simply use a kubernetes informer to maintain the cache the wf/wftmpl for us. Unfortunately there are several differences between the way wf/wftmpl objects are serialized when talking to the kubernetes API server and the argo server:

To test, after a couple quick hacks on these and adding "implements KubernetesObject" to Workflow and WorkflowTemplate objects, the kubernetes api informer worked.

Questions

@ddseapy
Copy link
Contributor Author

ddseapy commented Aug 30, 2020

Looks like this can be fixed in the client gen project, so will put up a PR there.

@ddseapy ddseapy closed this as completed Aug 30, 2020
@gpomykala
Copy link

@ddseapy looking for exactly same for Go api client, was aforementioned change applied? If so, would to mind to reference a PR?

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

2 participants