Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.33 KB

README.rst

File metadata and controls

47 lines (30 loc) · 1.33 KB

ocp-build-data-validator

Validation of ocp-build-data Image & RPM declarations

Installation

$ pip install rh-ocp-build-data-validator

Usage

Validating a single file:

$ validate-ocp-build-data path/to/ocp-build-data/images/or/rpms.yml

Validating the whole ocp-build-data repository:

$ validate-ocp-build-data path/to/ocp-build/data/{images,rpms}/*

Validations

  • YAML Format
  • YAML Schema (supported schemas: Image and RPM)
  • Presence of corresponding DistGit repository (needs to match YAML filename)
    • Presence of corresponding branch on DistGit
  • Presence of GitHub repository (if declared)
    • Presence of branch on GitHub (if declared)
    • Presence of dockerfile on GitHub (if declared)
    • Presence of manifests-dir on GitHub (if declared)
  • Stream is supported (if declared, value must match one of the entries in streams.yml)
  • Member exists (if declared, member must be another existing declaration under images/)