fnproject / cli

CLI tool for fnproject.
https://fnproject.io
Apache License 2.0
132 stars 66 forks source link

FAAS-7483: Support creating OCIR repos in the non-root compartment. #642

Closed parthasarathy-menon closed 2 years ago

parthasarathy-menon commented 2 years ago

Fn context, oracle.image-compartment-id is used to specify the compartment id to which the function image is to be deployed.

If the the repository already exists and oracle.image-compartment-id is specified, the deployment will fail if the repository is not present the same compartment id as the image-compartment-id.

There are no tests added to the code due to the lack of testing around the deploy path, in order to write a test, we would have needed to mock multiple clients and change some fundamental properties in the providers code. Instead, we have performed manual testing: