转到 CSV 标记,从另一个模块中填充 "owned" CRD 的 specDescriptors

作者: kaovilai创建于 2023年10月27日更新于 2024年9月11日
标签triage/needs-informationlifecycle/frozenlanguage/go

Feature Request

A way to generate specDescriptors and statusDescriptors to CSV from CRDs defined in _types.go in an external module (ie. different go.mod) using markers

Describe the problem you need a feature to resolve.

We oadp-operator deploy CRDs that are not from the same Go module GitHub.com/vmware-tanzu/velero/. Our go module is GitHub.com/openshift/oadp-operator

This means we are not able to add operator-sdk Go tags to the _types.go since the GitHub.com/vmware-tanzu/velero/ project is not operator-sdk specific.

I have an issue when ... make bundle does not have a way to populate specDescriptors into CSV from out of module CRD. Defining specDescriptors manually also gets overwritten if I'm not mistaken.

Usecase So we can specify which x-descriptors applies to each field to customize the UI for a field in externally and non operator-sdk specific defined _types.go https://GitHub.com/openshift/console/blob/master/frontend/packages/operator-lifecycle-manager/src/components/descriptors/reference/reference.md image

Describe the solution you'd like.

A way to store define/generate specDescriptors into CSV dynamically from out of module _types.go or CRD. Perhaps by defining imported_types.go like following

内容来源: operator-framework/operator-sdk