Skip to content

Populate CSV alm-examples from config/samples in generate_bundle.py #220

@aslakknutsen

Description

@aslakknutsen

What?

Bundle generation fills OLM alm-examples from the same sample CRs we ship, instead of the template default [].

Why?

OLM/OpenShift use alm-examples for console samples. Generating it from config/samples keeps published bundle metadata aligned with the documented samples.

How?

  • Load multi-doc YAML from config/samples/*.yaml; include only owned API versions.
  • json.dumps(..., indent=2) plus a LiteralBlockStr helper so PyYAML emits a | block.

Additional Context

  • bundle/base/csv-template.yaml, make bundle

Metadata

Metadata

Assignees

Type

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions