Skip to content

Commit 6669486

Browse files
Merge pull request #437 from YashwantGohokar/oke_oss_release_1.26
OKE OSS Release 1.26.1
2 parents 4102275 + 6d66307 commit 6669486

File tree

777 files changed

+35580
-3250
lines changed

Some content is hidden

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

777 files changed

+35580
-3250
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,11 @@ RUN yum install -y util-linux \
3737
&& yum install -y xfsprogs \
3838
&& yum clean all
3939

40+
COPY scripts/encrypt-mount /sbin/encrypt-mount
41+
COPY scripts/encrypt-umount /sbin/encrypt-umount
42+
COPY scripts/rpm-host /sbin/rpm-host
43+
RUN chmod 755 /sbin/encrypt-mount
44+
RUN chmod 755 /sbin/encrypt-umount
45+
RUN chmod 755 /sbin/rpm-host
46+
4047
COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/* /usr/local/bin/

Dockerfile_arm_all

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ RUN yum install -y util-linux \
2121
&& yum clean all
2222
\
2323

24+
COPY scripts/encrypt-mount /sbin/encrypt-mount
25+
COPY scripts/encrypt-umount /sbin/encrypt-umount
26+
COPY scripts/rpm-host /sbin/rpm-host
27+
RUN chmod 755 /sbin/encrypt-mount
28+
RUN chmod 755 /sbin/encrypt-umount
29+
RUN chmod 755 /sbin/rpm-host
30+
2431
COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/arm/* /usr/local/bin/

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ cloud-provider specific code out of the Kubernetes codebase.
3131
| v1.22.0 | v1.22 | - |
3232
| v1.23.0 | v1.23 | - |
3333
| v1.24.2 | v1.24 | - |
34-
| v1.25.1 | v1.25 | - |
35-
| v1.26.0 | v1.26 | - |
34+
| v1.25.2 | v1.25 | - |
35+
| v1.26.1 | v1.26 | - |
36+
| v1.27.0 | v1.27 | - |
3637

3738

3839

3940

4041
Note:
41-
Versions older than v1.24.2 are no longer supported, new features / bug fixes will be available in v1.24.1 and later.
42+
Versions older than v1.25.2 are no longer supported, new features / bug fixes will be available in v1.25.2 and later.
4243

4344
## Implementation
4445
Currently `oci-cloud-controller-manager` implements:

THIRD_PARTY_LICENSES.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ SPDX:Apache-2.0
66
---------------------------------- Copyright -----------------------------------
77
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
88
Copyright 2014 The Kubernetes Authors.
9+
Copyright 2016 The Kubernetes Authors.
910
Copyright 2017 Oracle and/or its affiliates. All rights reserved.
1011
Copyright 2017 The Kubernetes Authors.
1112
Copyright 2018 Oracle and/or its affiliates. All rights reserved.
1213
Copyright 2019 Oracle and/or its affiliates. All rights reserved.
1314
Copyright 2020 Oracle and/or its affiliates. All rights reserved.
1415
Copyright 2021 Oracle and/or its affiliates. All rights reserved.
16+
Copyright 2022 Oracle and/or its affiliates. All rights reserved.
17+
Copyright 2023 Oracle and/or its affiliates. All rights reserved.
1518

1619
-------------------------- Fourth Party Dependencies ---------------------------
1720

@@ -3902,4 +3905,4 @@ the Mozilla Public License, v. 2.0.
39023905

39033906
=== ATTRIBUTION-HELPER-GENERATED:
39043907
=== Attribution helper version: {Major:0 Minor:11 GitVersion: GitCommit: GitTreeState:dirty BuildDate:1970-01-01T00:00:00Z GoVersion:go1.19.3 Compiler:gc Platform:darwin/arm64}
3905-
=== License file based on go.mod with md5 sum: 44a3b09805c5f60c83e1b48d2c1b752f
3908+
=== License file based on go.mod with md5 sum: e957b8b0f5b20080cd769d0650a881eb

container-storage-interface.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ $ kubectl describe pvc/oci-bv-claim
130130

131131
# Troubleshoot
132132

133-
### FsGroup policy not propagated from pod security context
133+
## FsGroup policy not propagated from pod security context
134134

135135
If your fsGroup is not being applied on the files in your volume.
136136

@@ -183,6 +183,21 @@ spec:
183183
```
184184
`File` - Indicates that the CSI volume driver supports volume ownership and permission change via fsGroup, and Kubernetes may use fsGroup to change permissions and ownership of the volume to match user requested fsGroup in the pod's SecurityPolicy regardless of fstype or access mode.
185185

186+
## Calico-node pods fail readiness health checks when oci-fss-utils is installed on node
187+
188+
If you are using Calico CNI, the following error is thrown by the Calico daemonset pods that are scheduled on the node which has oci-fss-utils package installed:
189+
```
190+
Readiness probe failed: 2023-10-12 08:51:08.172 [INFO][346] confd/health.go 180: Number of node(s) with BGP peering established = 0 calico/node is not ready: BIRD is not ready: BGP not established with 10.0.0.5,10.0.76.88,10.0.66.239
191+
```
192+
193+
### Solution:
194+
195+
Add the following env setting to the calico-node container in the calico-node daemonset manifest.
196+
```yaml
197+
- name: IP_AUTODETECTION_METHOD
198+
value: 'skip-interface=v-eth.*'
199+
```
200+
186201
[1]: https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm
187202
[2]: https://kubernetes.io/blog/2019/01/15/container-storage-interface-ga/
188203
[3]: https://kubernetes.io/docs/admin/authorization/rbac/

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,15 @@ 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.24.1
47-
github.com/oracle/oci-go-sdk/v65 v65.40.1
47+
github.com/oracle/oci-go-sdk/v65 v65.49.2
4848
github.com/pkg/errors v0.9.1
4949
github.com/prometheus/client_golang v1.14.0
5050
github.com/spf13/cobra v1.6.1 // indirect
5151
github.com/spf13/pflag v1.0.5
5252
github.com/spf13/viper v1.8.1
53-
github.com/stretchr/testify v1.8.1 // indirect
5453
go.uber.org/zap v1.24.0
5554
golang.org/x/net v0.7.0
56-
golang.org/x/sys v0.6.0 // indirect
55+
golang.org/x/sys v0.8.0 // indirect
5756
google.golang.org/grpc v1.52.3
5857
gopkg.in/natefinch/lumberjack.v2 v2.0.0
5958
gopkg.in/yaml.v2 v2.4.0
@@ -75,6 +74,7 @@ require (
7574
)
7675

7776
require (
77+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
7878
google.golang.org/protobuf v1.28.1
7979
k8s.io/apiextensions-apiserver v0.26.2
8080
)
@@ -160,7 +160,6 @@ require (
160160
golang.org/x/crypto v0.1.0 // indirect
161161
golang.org/x/mod v0.6.0 // indirect
162162
golang.org/x/oauth2 v0.2.0 // indirect
163-
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
164163
golang.org/x/term v0.5.0 // indirect
165164
golang.org/x/text v0.7.0 // indirect
166165
golang.org/x/time v0.3.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
365365
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
366366
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
367367
github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI=
368-
github.com/oracle/oci-go-sdk/v65 v65.40.1 h1:nukjC4GfrpOxOEoGvqg8y31/11VtaeSnejF7icyMKJg=
369-
github.com/oracle/oci-go-sdk/v65 v65.40.1/go.mod h1:MXMLMzHnnd9wlpgadPkdlkZ9YrwQmCOmbX5kjVEJodw=
368+
github.com/oracle/oci-go-sdk/v65 v65.49.2 h1:optOfjGIVmZZMT3a/8ri/CVV1loDG0ab1p2tEpNW5ro=
369+
github.com/oracle/oci-go-sdk/v65 v65.49.2/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0=
370370
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
371371
github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ=
372372
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
@@ -429,8 +429,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
429429
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
430430
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
431431
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
432-
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
433-
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
432+
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
433+
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
434434
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
435435
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
436436
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA=
@@ -682,8 +682,8 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc
682682
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
683683
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
684684
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
685-
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
686-
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
685+
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
686+
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
687687
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
688688
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
689689
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=

hack/test-canary.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
# A small script to run the CCM ginkgo 'Canary' e2e tests, and, generate the
1818
# defined canary test response file.
19-
#
20-
# https://confluence.oci.oraclecorp.com/display/BRISTOL/OKE+Canary+Test+Image+Contract
2119

2220
# Functions *******************************************************************
2321
#

hack/validate-canary.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717

1818
# A small script to validate the CCM 'Canary' test image works as expected.
19-
#
20-
# https://confluence.oci.oraclecorp.com/display/BRISTOL/OKE+Canary+Test+Image+Contract
2119

2220

2321
# Helper Functions ************************************************************

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ rules:
3434
- list
3535
- watch
3636
- patch
37+
- get
3738

3839
- apiGroups:
3940
- ""
@@ -130,6 +131,9 @@ rules:
130131
- serviceaccounts
131132
verbs:
132133
- create
134+
- list
135+
- get
136+
- watch
133137
- apiGroups:
134138
- ""
135139
resources:

0 commit comments

Comments
 (0)