nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
93 stars 52 forks source link

Support `ObjectMeta.GenerateName `for `PackageRevision` creation #712

Open liamfallon opened 3 months ago

liamfallon commented 3 months ago

Original issue URL: https://github.com/kptdev/kpt/issues/3222 Original issue user: https://github.com/mortent Original issue created at: 2022-05-22T23:45:37Z Original issue last updated at: 2022-05-22T23:45:37Z Original issue body: Currently package names are computed as -. Ideally Porch would accept name prefix (constrained for example to the last segment of the package name) as GenerateName value, for example istions and Porch would append the SHA. This will require creating an inverse mapping from package name to its owning repository. Currently the inverse mapping is encoded in the package name, whose format is <repository name>-<package name hash>.

Original issue comments: