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

Workload identity #335

Closed shyamradhakrishnan closed 1 year ago

shyamradhakrishnan commented 1 year ago

What this PR does / why we need it: Add support for OKE workload identity

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 #334

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  60.896s coverage: 23.7% of statements
ok      github.com/oracle/cluster-api-provider-oci/api/v1beta2  0.040s  coverage: 15.6% 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.009s  coverage: 19.6% of statements
ok      github.com/oracle/cluster-api-provider-oci/cloud/scope  232.210s    coverage: 75.1% 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.223s  coverage: 61.1% of statements
ok      github.com/oracle/cluster-api-provider-oci/controllers  26.892s coverage: 57.9% of statements
ok      github.com/oracle/cluster-api-provider-oci/exp/api/v1beta1  15.980s coverage: 15.2% of statements
ok      github.com/oracle/cluster-api-provider-oci/exp/api/v1beta2  0.017s  coverage: 4.8% of statements
ok      github.com/oracle/cluster-api-provider-oci/exp/controllers  0.942s  coverage: 56.0% 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
shyamradhakrishnan commented 1 year ago

e2e

ynchronizedAfterSuite] PASSED [1.062 seconds]
[SynchronizedAfterSuite]
/home/ubuntu/go/src/github.com/oracle/cluster-api-provider-oci/test/e2e/e2e_suite_test.go:261

  Timeline >>
  STEP: Tearing down the management cluster @ 10/03/23 04:32:44.376
  << Timeline
------------------------------

Ran 7 of 28 Specs in 2801.695 seconds
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 21 Skipped