Skip to content

locriandev/ocp-build-data-validator

 
 

Repository files navigation

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/)

About

Validation of ocp-build-data Image & RPM declarations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.8%
  • Dockerfile 1.2%