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

Porch server does not create API resources unless certificates and the "--cert-dir" parameter is supplied #753

Closed liamfallon closed 2 weeks ago

liamfallon commented 2 weeks ago

The Porch server should create the following resources when it starts but it doesn't:

functions                                        porch.kpt.dev/v1alpha1            true         Function
packagerevisionresources                         porch.kpt.dev/v1alpha1            true         PackageRevisionResources
packagerevisions                                 porch.kpt.dev/v1alpha1            true         PackageRevision
packages                                         porch.kpt.dev/v1alpha1            true         PorchPackage

The reason is that in standalone mode or in vscode, you must supply the --cert-dir command line parameter. If the--cert-dir parameter is not provided, then Porch starts but does not create the porch API resources, and the porchctl command and any porch package commands do not work.