GoogleCloudPlatform / policy-library

A library of constraint templates and sample constraints for Constraint Framework tools
Apache License 2.0
223 stars 128 forks source link

KPT breaks to install the bundle ? #403

Open rajlearner17 opened 3 years ago

rajlearner17 commented 3 years ago

Is it the only way to install through KPT? I am running kpt version 1.0.0-beta.1. What I am doing wrong here ?

$ kpt pkg get https://github.com/GoogleCloudPlatform/policy-library.git ./policy-library
Package "policy-library":
Fetching https://github.com/GoogleCloudPlatform/policy-library@master
From https://github.com/GoogleCloudPlatform/policy-library
 * branch            master     -> FETCH_HEAD
Adding package "".
Error: Kptfile at "/var/folders/z4/m1_z65hx36x0zd4l4cj0z0wh0000gp/T/kpt-get-660876435/policies/constraints" has an old version ("v1alpha1") of the Kptfile schema.
Please update the package to the latest format by following https://kpt.dev/installation/migration. 
morgante commented 3 years ago

Thanks for flagging this, it looks like we need to update the bundles to work with kpt v1.