Skip to content

How to install dependent operator using OLM way #6900

@tbhagwat16

Description

@tbhagwat16

Type of question How to install dependent operator using OLM way

Hi All, Sorry if this question is already asked, but I have checked google and github but did not get the required answer. My operator A is dependent on operator B and C. Before operator A gets install, I want to install operator B and C.

I have defined dependencies.yaml under bundle/metadata folder but what to do next? I am not getting the steps on google.

Thank you in advance.

Question

What did you do?

Hi All, Sorry if this question is already asked, but I have checked google and github but did not get the required answer. My operator A is dependent on operator B and C. Before operator A gets install, I want to install operator B and C.

I have defined dependencies.yaml under bundle/metadata folder but what to do next? I am not getting the steps on google.

Thank you in advance.

What did you expect to see?

Whatever I have defined in the dependecies.yaml is getting reflected in operator CSV and when I try to install operator A, operator B and C should get installed.

What did you see instead? Under which circumstances?

No changes in CSV and installation

Environment

Operator type:

Kubernetes cluster type:

Openshift
tejshribhagwat@Tejshris-MacBook-Pro Documents % operator-sdk version
operator-sdk version: "v1.38.0", commit: "0735b20c84e5c33cda4ed87daa3c21dcdc01bb79", kubernetes version: "v1.30.0", go version: "go1.23.3", GOOS: "darwin", GOARCH: "arm64"
tejshribhagwat@Tejshris-MacBook-Pro Documents % go version
go version go1.23.4 darwin/arm64
tejshribhagwat@Tejshris-MacBook-Pro Documents % kubectl version
Client Version: v1.32.0
Kustomize Version: v5.5.0
error: You must be logged in to the server (the server has asked for the client to provide credentials)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions