OLM : Dependency management

29 views
Skip to first unread message

Loic Fouray

unread,
Apr 21, 2021, 3:23:01 AM4/21/21
to Operator Framework
Hello,

In the OLM doc, it's mentionned that "An operator can define dependencies within its ClusterServiceVersion (CSV)", so with an another OLM Package.

Is it possible to have also dependencies with other packages like TemplateInstance or Helm Package? 

Thanks
Loïc

Daniel Messer

unread,
Apr 21, 2021, 5:51:24 AM4/21/21
to Loic Fouray, Operator Framework
Not at the moment but we are moving towards supporting more things to depend on for resolution. Something were considering for dependency resolution at the moment is the provided app / workload versions of an Operator. So you can say "My Operator requires another Operator that provides MongoDB in version x." So in addition to requiring certain API versions to be present you can also express the need for a certain Operand version to be  there.

You can depend on a particular API like TemplateInstance but not yet on the presence of a certain object. What is the use case you are looking at? Same goes for Helm - how and why would you depend on a Helm Chart? Would your Operator instantiate that Helm Chart?

--
You received this message because you are subscribed to the Google Groups "Operator Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to operator-framew...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/824c4809-a6c4-4b39-b0d8-5172d8ff5f86n%40googlegroups.com.


--
Daniel Messer

Product Manager Operator Framework & Quay

Red Hat OpenShift

Loic Fouray

unread,
Apr 21, 2021, 11:10:56 AM4/21/21
to Operator Framework
Thanks Daniel for your reply.
Yes, i could depend of Helm Chart because the OLM package doesn't exist yet for example..

Loïc

Daniel Messer

unread,
Apr 21, 2021, 11:41:45 AM4/21/21
to Loic Fouray, Operator Framework
And how would you instantiate the Helm Chart via your Operator?

Loic Fouray

unread,
Apr 21, 2021, 12:30:35 PM4/21/21
to Operator Framework

It would interesting that OLM component supports the dependency Helm like with an another OLM Package. But it's probably complicated.. 

Daniel Messer

unread,
Apr 22, 2021, 3:50:26 AM4/22/21
to Loic Fouray, Operator Framework
It may not be as complicated as it sounds. I am just wondering how your Operator would instantiate the Helm Chart on the cluster? Would it vendor the helm rendering library? How would it expect OLM to verify the Helm chart is available for resolution?

Camila Macedo

unread,
Apr 22, 2021, 7:34:54 AM4/22/21
to Daniel Messer, Loic Fouray, Operator Framework
Hi Loic, 

If I did not misunderstand your scenario, would it not be a possible solution to create an Helm operator using the chart (see here[1]) and publish it and then, use OLM dependency resolution[2] to address the need?


Cheers, 

CAMILA MACEDO

SR. SOFTWARE ENGINEER 

RED HAT Operator framework

Red Hat UK

She / Her / Hers

IM: cmacedo





Reply all
Reply to author
Forward
0 new messages