nephio-project/nephio

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

liamfallon opened this issue · 0 comments

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.