oracle / cluster-api-provider-oci

Kubernetes Cluster API Provider for Oracle Cloud Infrastructure
https://oracle.github.io/cluster-api-provider-oci/
Apache License 2.0
40 stars 22 forks source link

Add Subnet Id and NSG ID to machine spec #291

Closed shyamradhakrishnan closed 1 year ago

shyamradhakrishnan commented 1 year ago

What this PR does / why we need it:

Add Subnet ID and NSG ID to machine spec

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

shyamradhakrishnan commented 1 year ago

e2e

------------------------------

Ran 7 of 27 Specs in 3682.923 seconds
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 20 Skipped
shyamradhakrishnan commented 1 year ago

unit test

?       github.com/oracle/cluster-api-provider-oci  [no test files]
ok      github.com/oracle/cluster-api-provider-oci/api/v1beta1  41.891s coverage: 24.1% of statements
ok      github.com/oracle/cluster-api-provider-oci/api/v1beta2  0.049s  coverage: 15.7% of statements
?       github.com/oracle/cluster-api-provider-oci/cloud/config [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/metrics    [no test files]
ok      github.com/oracle/cluster-api-provider-oci/cloud/ociutil    0.004s  coverage: 19.6% of statements
ok      github.com/oracle/cluster-api-provider-oci/cloud/scope  240.815s    coverage: 75.7% of statements
?       github.com/oracle/cluster-api-provider-oci/cloud/scope/mocks    [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/base  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/base/mock_base    [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/compute   [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/compute/mock_compute  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement/mock_computemanagement  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/containerengine   [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/containerengine/mock_containerengine  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/identity  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/identity/mock_identity    [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/loadbalancer  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/loadbalancer/mock_lb  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer   [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer/mock_nlb  [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/vcn   [no test files]
?       github.com/oracle/cluster-api-provider-oci/cloud/services/vcn/mock_vcn  [no test files]
ok      github.com/oracle/cluster-api-provider-oci/cloud/util   0.080s  coverage: 76.1% of statements
ok      github.com/oracle/cluster-api-provider-oci/controllers  26.034s coverage: 67.5% of statements
ok      github.com/oracle/cluster-api-provider-oci/exp/api/v1beta1  27.892s coverage: 18.6% of statements
ok      github.com/oracle/cluster-api-provider-oci/exp/api/v1beta2  0.028s  coverage: 9.5% of statements
ok      github.com/oracle/cluster-api-provider-oci/exp/controllers  1.171s  coverage: 56.7% of statements
?       github.com/oracle/cluster-api-provider-oci/feature  [no test files]
?       github.com/oracle/cluster-api-provider-oci/version  [no test files]
go tool cover -func=coverage.out -o coverage.txt
go tool cover -html=coverage.out -o coverage.html