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

Cache addons resources #1290

Closed
9 tasks done
nirs opened this issue Mar 27, 2024 · 1 comment · Fixed by #1397
Closed
9 tasks done

Cache addons resources #1290

nirs opened this issue Mar 27, 2024 · 1 comment · Fixed by #1397
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers test Testing related issue

Comments

@nirs
Copy link
Member

nirs commented Mar 27, 2024

In the e2e lab we have flaky network making downloads from github slow and unreliable. In some cases like ocm-controller, applying kustmization can fail when the remote server disconnects. We want to cache all resources consumed from github to make builds faster and more reliable.

Caching resources is not enough, we need to cache also container images. This will be tracked in a separate issue.

Addons that can be cached

These addons use a static kustomization that can be cached by the current caching infrastructure.

See ocm-controller hooks for example:

Addons accessing resources directly

These addons apply resources directly from github.

We have 2 options:

  • Change the cache to support standalone resources
  • Convert them to static kustomization

Using static kustomization sounds a better way since it is easier to test with standard tools, and support easy way to modify the resources (e.g. replace image tags or prefix names).

Addons using kustomization templates

Use a kustomization template used to create a temporary kustomization file with replaced values.
We have 2 options:

  • Cache the temporary kustomization
  • Convert to static kustomization

Getting rid of the kustomization templates sounds the better way. Static kustomization are easier to understand and test using standard tools.

Addons using external tools

These addons use external tool for deployment. The tool may access remote resources but we are not in control.

We can check if the tool support caching in some way.

  • ocm-cluster - uses clusteradm
  • ocm-hub - uses clusteradm
  • velero - uses velero
  • volsync - uses helm
  • submariner - uses subctl

Addons using local or no resources

  • demo
  • example
  • minio
  • rook-pool
  • rbd-mirror
  • sleep
  • error
@nirs nirs added enhancement New feature or request test Testing related issue good first issue Good for newcomers labels Mar 27, 2024
@nirs

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers test Testing related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants