Skip to content

Copy MCAD CRDs in Kustomize config instead of referencing them #353

Closed
@astefanutti

Description

@astefanutti

Currently MCAD CRDs are included by references:

- github.com/project-codeflare/multi-cluster-app-dispatcher/config/crd?ref=v0.0.0 # kpt-set: ${MCAD_CRD}

This used to work as they were dereferenced during the build of the OLM bundle.

Now that the CFO is managed by the ODH operator v2 using plain Kustomize manifests, they must be dereferenced beforehand, also because it'll be required for disconnected environments.

That can be added as extra commands run in the manifests target for example:

$(SED) -i -E "s|(- )\${MCAD_REPO}.*|\1\${MCAD_CRD}|" config/crd/mcad/kustomization.yaml
$(KUSTOMIZE) build config/crd/mcad > config/crd/mcad.yaml

And remove the inclusion of the mcad directory from the config/crd/kustomization.yaml file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions