Adding Azure Oracle Autonomous Database resources#1179
Adding Azure Oracle Autonomous Database resources#1179BigGold1310 wants to merge 4 commits intocrossplane-contrib:mainfrom
Conversation
ce1d662 to
016504e
Compare
jonasz-lasut
left a comment
There was a problem hiding this comment.
I've added few comments for namespaced examples, the same should be done for cluster examples
examples/oracle/namespaced/v1beta1/autonomousdatabaseclonefrombackup.yaml
Outdated
Show resolved
Hide resolved
examples/oracle/namespaced/v1beta1/autonomousdatabaseclonefrombackup.yaml
Outdated
Show resolved
Hide resolved
examples/oracle/namespaced/v1beta1/autonomousdatabaseclonefromdatabase.yaml
Show resolved
Hide resolved
|
/test-examples="examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml" |
examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml
Outdated
Show resolved
Hide resolved
e4c9807 to
dcea514
Compare
|
/test-examples="examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml" |
|
/test-examples="examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml" |
48093b7 to
53c27c9
Compare
|
/test-examples="examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml |
Signed-off-by: Cyrill Näf <cyrill.naef@gmail.com>
Signed-off-by: Cyrill Näf <cyrill.naef@gmail.com>
Signed-off-by: Cyrill Näf <cyrill.naef@gmail.com> Signed-off-by: plk <Philip@kime.org.uk> Co-authored-by: plk <Philip@kime.org.uk>
…ster-scoped oracle MR examples Signed-off-by: Erhan Cagirici <erhan@upbound.io>
|
just fyi, cluster-scoped examples had secretRef without namespace and Added d9b4dc2 to address those |
|
really appreciate it @erhancagirici |
|
@erhancagirici 'Oracle.Database' namespace is not registered in the test Azure subscription, could you enable it when you have some time? |
|
I can perhaps run the tests locally if required - we really need this. I think you might need an OCI subscription linked to your Azure subscription too for this to work, testwise. I have that available if I can work out how to run the tests for this. |
|
I also noticed that in the main DB params, |
|
Thank you @plk for you proactive approach. You can run the E2E tests against your subscription by following this guide: https://github.com/crossplane/upjet/blob/main/docs/adding-new-resource.md#automated-tests---uptest On the second topic - that's a known Upjet behavior, secretReferences are always required - crossplane/upjet#456 |
|
If OCI subscription link is required for the tests to pass then I think we need to mark the resources as manual tests required @erhancagirici the E2E tests subscription is linked |
But does that mean it we set it in initparams, you also have to set it in params, thus defeating the purpose of initparams? |
|
Correct, you need to set it in both init and forProvider |
|
/test-examples="examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml" |
|
It's going to be very difficult apparently to set up Uptest in our environment - is there a way we can get/generate the xpgs for this PR and I can test a few things that way? The latest test error looks like it's related to not being able to deploy the DBs likely due to no OCI subscription? |
|
It is this error that is suggesting issues with OCI subscription? I've not used the autonomous databases on Azure To build and publish the package to OCI registry you can run this: make SUBPACKAGES="oracle" XPKG_REG_ORGS="my-oci-registry/repo" CONFIG_DEPENDENCY_REG_ORG="<registry-of-provider-family>" BRANCH_NAME="main" VERSION=<version-of-the-family-provider-that-you-run-in-cluster> build.all
make SUBPACKAGES="oracle" XPKG_REG_ORGS="my-oci-registry/repo" CONFIG_DEPENDENCY_REG_ORG="<registry-of-provider-family>" BRANCH_NAME="main" VERSION=<version-of-the-family-provider-that-you-run-in-cluster> publishFor "registry-of-provider-family" use for example The image wil be available under |
|
I would bet that the 400 is caused by the OCI<->Azure connection not being present. Let me see if I can do some sort of test with an xpkg etc. |
|
After a lot of building, dies near the end with: Building on ubuntu, do I have to build on Alpine? |
|
Your host can be any operating system, I'm building it locally on Fedora 43 and MacOS depends on which laptop I have to use. Do you run docker behind a corporate proxy? |
|
Solved - had to restrict the PLATFORMS to stop it trying to build arm64. |
|
Problem seems to be in the dependency on the config/family provider - I am trying to use the already deployed v2.5.0 family provider - is there a way to remove this explicit dependency when creating the xpkg? |
|
If you were able to build it then you can deploy the pkg with |
|
But you should also be able to set the family dependency via CONFIG_DEPENDENCY_REG_ORG="" during build/publish steps |
|
|
I thought I was skipping dependencies but I wasn't ... now it works and I have deployed an Oracle ADB with the new provider. A bit more testing but looks good so far. |
|
Looks good - I have successfully deployed an Oracle ADB using the PR provider code. Do you need me to somehow attach proof? |
|
For resources that we can not test due to some limitations we require two things:
|
|
Really appreciate all the effort that you are putting into this feature @plk and @BigGold1310 ! |
|
But if we manage to get the Uptest automated tests running here (I assume they are e2e and actually deploy things ...), then that would cover it? |
|
Yes, uptest would cover it |
|
It's a little tricky for uptest in our setup but I'm wondering if we can just splice out some of the uptest commands and run the tests against an existing cluster that has the provider already installed ... |
|
I think it would be easier to just run the tests manually then. Just apply all resources added in this PR at once to the cluster, we don't need to run 4 separate runs as a lot of resources are common across the example/ files. Wait for creation, run the Import test and later delete. It'll most likely require less work than trying to make uptest work (speaking from experience as my company uses a proxy that makes it near impossible to properly run uptest) |
|
Same issue - proxies, firewalls, rootless podman etc. etc. Many thanks for the continuing swift responses - will look at the manual method. |
Description of your changes
This PR adds the Azure Oracle Autonomous Database resources:
Fixes #1177
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested