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

Discuss if we should use OwnerReferences instead of component references to get artifacts #295

Open
9 tasks
frewilhelm opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@frewilhelm
Copy link

Description

In https://github.com/open-component-model/ocm-k8s-toolkit/pull/30 the component artifact is retrieved by using:

err := r.Get(ctx, types.NamespacedName{
		Namespace: resource.GetNamespace(),
		Name:      component.Status.ArtifactRef.Name,
}

Instead of using this explicit reference to the component, we could consider using k8s OwnerReference of the component to get the respective artifact.

Done Criteria

  • ...
  • Code has been reviewed by other team members
  • Internal technical Documentation created/updated
  • New / changed code is documented
  • Analysis of existing tests (Unit and Integration)
  • Unit Tests created for new code or existing Unit Tests updated
  • Integration Test Suite updated (includes deletion of existing unnecessary Integration Test and/or creation of new ones if required)
  • Enduser Documentation updated (if applicable)
  • Successful demonstration in Review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 ToDo
Development

No branches or pull requests

1 participant