kpt icon indicating copy to clipboard operation
kpt copied to clipboard

Separate validation pipelines from the kpt file

Open ciaranjohnston opened this issue 1 year ago • 3 comments

Describe your problem

Currently validation and mutation pipelines are part of the kptfile. Separating the validation pipelines out into separate files would allow for different rules and different pipelines to execute in different conditions or according to different user preferences / permissions. Git + OWNERS file can enforce rules

  • Allow to break the pipeline from the kpfile resource -> @kispaljr
    • Define the pipeline in a separate file
    • This allow us to separate the pipelines like mutation pipeline and validation pipeline
    • Open up the possibility to have different kind of pipelines
    • In the far future we can make the pipelines pluggable, like create other pipelines not implemented in kpt, like Ansible, GitLab or whatever

Enhancement discussed as part of the Nephio meetup Sept 2025

ciaranjohnston avatar Oct 29 '25 13:10 ciaranjohnston

Hi @ciaranjohnston, I’d like to pick this up. I'll start by analyzing the current Kptfile structure code and will post a brief proposal here before I start implementation.

Jaisheesh-2006 avatar Feb 08 '26 05:02 Jaisheesh-2006

Hi @Jaisheesh-2006 , please be aware that there is a large restructuring PR under review that you should consider in this work, see https://github.com/kptdev/kpt/pull/4355

liamfallon avatar Feb 09 '26 07:02 liamfallon

Thanks for letting me know, @liamfallon. I'll review #4355 to gauge the complexity and confirm if I can still effectively contribute to this issue in parallel

Jaisheesh-2006 avatar Feb 10 '26 17:02 Jaisheesh-2006