Skip to content

Commit 092db8a

Browse files
committed
Updating OCI Go SDK to v65.56.0
1 parent a5fe226 commit 092db8a

File tree

1,735 files changed

+8365
-2037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,735 files changed

+8365
-2037
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ cloud-provider specific code out of the Kubernetes codebase.
3131
| v1.23.0 | v1.23 | - |
3232
| v1.24.2 | v1.24 | - |
3333
| v1.25.2 | v1.25 | - |
34-
| v1.26.1 | v1.26 | - |
35-
| v1.27.0 | v1.27 | - |
34+
| v1.26.2 | v1.26 | - |
35+
| v1.27.1 | v1.27 | - |
3636

3737

3838

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ require (
4444
github.com/kubernetes-csi/external-snapshotter/client/v6 v6.2.0
4545
github.com/onsi/ginkgo v1.16.5
4646
github.com/onsi/gomega v1.27.7
47-
github.com/oracle/oci-go-sdk/v65 v65.49.2
47+
github.com/oracle/oci-go-sdk/v65 v65.56.0
4848
github.com/pkg/errors v0.9.1
4949
github.com/prometheus/client_golang v1.15.1
5050
github.com/spf13/cobra v1.6.1 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
325325
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
326326
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
327327
github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI=
328-
github.com/oracle/oci-go-sdk/v65 v65.49.2 h1:optOfjGIVmZZMT3a/8ri/CVV1loDG0ab1p2tEpNW5ro=
329-
github.com/oracle/oci-go-sdk/v65 v65.49.2/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0=
328+
github.com/oracle/oci-go-sdk/v65 v65.56.0 h1:o5na2VTSoH6LDLDrIB81XAjgtok6utLrixNO1TySN7c=
329+
github.com/oracle/oci-go-sdk/v65 v65.56.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0=
330330
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
331331
github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ=
332332
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=

manifests/cloud-controller-manager/oci-cloud-controller-manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
path: /etc/kubernetes
4343
containers:
4444
- name: oci-cloud-controller-manager
45-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
45+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
4646
command: ["/usr/local/bin/oci-cloud-controller-manager"]
4747
args:
4848
- --cloud-config=/etc/oci/cloud-provider.yaml

manifests/container-storage-interface/oci-csi-controller-driver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ spec:
9696
- --fss-csi-endpoint=unix://var/run/shared-tmpfs/csi-fss.sock
9797
command:
9898
- /usr/local/bin/oci-csi-controller-driver
99-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
99+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
100100
imagePullPolicy: IfNotPresent
101101
volumeMounts:
102102
- name: config

manifests/container-storage-interface/oci-csi-node-driver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ spec:
117117
fieldPath: spec.nodeName
118118
- name: PATH
119119
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/host/usr/bin:/host/sbin
120-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
120+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
121121
securityContext:
122122
privileged: true
123123
volumeMounts:

manifests/flexvolume-driver/oci-flexvolume-driver.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
secretName: oci-flexvolume-driver
4141
containers:
4242
- name: oci-flexvolume-driver
43-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
43+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
4444
command: ["/usr/local/bin/install.py", "-c", "/tmp/config.yaml"]
4545
securityContext:
4646
privileged: true
@@ -76,7 +76,7 @@ spec:
7676
type: DirectoryOrCreate
7777
containers:
7878
- name: oci-flexvolume-driver
79-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
79+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
8080
command: ["/usr/local/bin/install.py"]
8181
securityContext:
8282
privileged: true

manifests/volume-provisioner/oci-volume-provisioner-fss.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
secretName: oci-volume-provisioner
3636
containers:
3737
- name: oci-volume-provisioner
38-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
38+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
3939
command: ["/usr/local/bin/oci-volume-provisioner"]
4040
env:
4141
- name: NODE_NAME

manifests/volume-provisioner/oci-volume-provisioner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
secretName: oci-volume-provisioner
3636
containers:
3737
- name: oci-volume-provisioner
38-
image: ghcr.io/oracle/cloud-provider-oci:v1.27.0
38+
image: ghcr.io/oracle/cloud-provider-oci:v1.27.1
3939
command: ["/usr/local/bin/oci-volume-provisioner"]
4040
env:
4141
- name: NODE_NAME

pkg/oci/client/client.go

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ package client
1616

1717
import (
1818
"context"
19-
"crypto/tls"
20-
"crypto/x509"
21-
"io/ioutil"
22-
"net"
23-
"net/http"
24-
"net/url"
25-
"os"
2619
"time"
2720

2821
"github.com/oracle/oci-go-sdk/v65/common"
@@ -170,6 +163,7 @@ type client struct {
170163

171164
// New constructs an OCI API client.
172165
func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimiter *RateLimiter) (Interface, error) {
166+
173167
compute, err := core.NewComputeClientWithConfigurationProvider(cp)
174168
if err != nil {
175169
return nil, errors.Wrap(err, "NewComputeClientWithConfigurationProvider")
@@ -361,51 +355,5 @@ func (c *client) FSS() FileStorageInterface {
361355
}
362356

363357
func configureCustomTransport(logger *zap.SugaredLogger, baseClient *common.BaseClient) error {
364-
httpClient := baseClient.HTTPClient.(*http.Client)
365-
366-
var transport *http.Transport
367-
if httpClient.Transport == nil {
368-
transport = &http.Transport{
369-
DialContext: (&net.Dialer{
370-
Timeout: 30 * time.Second,
371-
KeepAlive: 30 * time.Second,
372-
DualStack: true,
373-
}).DialContext,
374-
MaxIdleConns: 100,
375-
IdleConnTimeout: 90 * time.Second,
376-
TLSHandshakeTimeout: 10 * time.Second,
377-
ExpectContinueTimeout: 1 * time.Second,
378-
}
379-
} else {
380-
transport = httpClient.Transport.(*http.Transport)
381-
}
382-
383-
ociProxy := os.Getenv("OCI_PROXY")
384-
if ociProxy != "" {
385-
proxyURL, err := url.Parse(ociProxy)
386-
if err != nil {
387-
return errors.Wrapf(err, "failed to parse OCI proxy url: %s", ociProxy)
388-
}
389-
transport.Proxy = func(req *http.Request) (*url.URL, error) {
390-
return proxyURL, nil
391-
}
392-
}
393-
394-
trustedCACertPath := os.Getenv("TRUSTED_CA_CERT_PATH")
395-
if trustedCACertPath != "" {
396-
logger.With("path", trustedCACertPath).Infof("Configuring OCI client with a new trusted ca")
397-
trustedCACert, err := ioutil.ReadFile(trustedCACertPath)
398-
if err != nil {
399-
return errors.Wrapf(err, "failed to read root certificate: %s", trustedCACertPath)
400-
}
401-
caCertPool := x509.NewCertPool()
402-
ok := caCertPool.AppendCertsFromPEM(trustedCACert)
403-
if !ok {
404-
return errors.Wrapf(err, "failed to parse root certificate: %s", trustedCACertPath)
405-
}
406-
transport.TLSClientConfig = &tls.Config{RootCAs: caCertPool}
407-
}
408-
409-
httpClient.Transport = transport
410358
return nil
411359
}

0 commit comments

Comments
 (0)