Skip to content

Commit 007ffbd

Browse files
committed
Manifests update, compatibility matrix update and use of leases for oci-ccm
1 parent 56ad332 commit 007ffbd

File tree

10 files changed

+30
-11
lines changed

10 files changed

+30
-11
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ cloud-provider specific code out of the Kubernetes codebase.
3030
| v1.19.12 | v1.19 | v1.21 |
3131
| v1.22.0 | v1.22 | - |
3232
| v1.23.0 | v1.23 | - |
33+
| v1.24.0 | v1.24 | - |
3334

3435

3536

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

+12
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ rules:
9191
verbs:
9292
- create
9393

94+
- apiGroups:
95+
- "coordination.k8s.io"
96+
resources:
97+
- leases
98+
verbs:
99+
- get
100+
- create
101+
- update
102+
- delete
103+
- patch
104+
- watch
105+
94106
- apiGroups:
95107
- ""
96108
resources:

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ spec:
2222
serviceAccountName: cloud-controller-manager
2323
hostNetwork: true
2424
nodeSelector:
25-
node-role.kubernetes.io/master: ""
25+
node-role.kubernetes.io/control-plane: ""
2626
tolerations:
2727
- key: node.cloudprovider.kubernetes.io/uninitialized
2828
value: "true"
2929
effect: NoSchedule
30+
- key: node-role.kubernetes.io/control-plane
31+
operator: Exists
32+
effect: NoSchedule
3033
- key: node-role.kubernetes.io/master
3134
operator: Exists
3235
effect: NoSchedule
@@ -44,7 +47,7 @@ spec:
4447
args:
4548
- --cloud-config=/etc/oci/cloud-provider.yaml
4649
- --cloud-provider=oci
47-
- --leader-elect-resource-lock=configmaps
50+
- --leader-elect-resource-lock=configmapsleases
4851
- --v=2
4952
volumeMounts:
5053
- name: cfg

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ spec:
1919
role: csi-oci
2020
spec:
2121
nodeSelector:
22-
node-role.kubernetes.io/master: ""
22+
node-role.kubernetes.io/control-plane: ""
2323
containers:
2424
- name: csi-volume-provisioner
25-
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
25+
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.2.1
2626
args:
2727
- --csi-address=/var/run/shared-tmpfs/csi.sock
2828
- --volume-name-prefix=csi
@@ -37,7 +37,7 @@ spec:
3737
- mountPath: /var/run/shared-tmpfs
3838
name: shared-tmpfs
3939
- name: csi-attacher
40-
image: k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
40+
image: k8s.gcr.io/sig-storage/csi-attacher:v3.5.0
4141
args:
4242
- --csi-address=/var/run/shared-tmpfs/csi.sock
4343
- --timeout=120s
@@ -50,7 +50,7 @@ spec:
5050
- mountPath: /var/run/shared-tmpfs
5151
name: shared-tmpfs
5252
- name: csi-resizer
53-
image: k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
53+
image: k8s.gcr.io/sig-storage/csi-resizer:v1.5.0
5454
args:
5555
- --csi-address=/var/run/shared-tmpfs/csi.sock
5656
- --leader-election

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ spec:
144144
args:
145145
- --csi-address=/csi/csi.sock
146146
- --kubelet-registration-path=/var/lib/kubelet/plugins/blockvolume.csi.oraclecloud.com/csi.sock
147-
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
147+
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.1
148148
securityContext:
149149
privileged: true
150150
lifecycle:

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ spec:
1919
spec:
2020
serviceAccountName: oci-flexvolume-driver
2121
nodeSelector:
22-
node-role.kubernetes.io/master: ""
22+
node-role.kubernetes.io/control-plane: ""
2323
tolerations:
2424
- key: node.cloudprovider.kubernetes.io/uninitialized
2525
value: "true"
2626
effect: NoSchedule
27+
- key: node-role.kubernetes.io/control-plane
28+
operator: Exists
29+
effect: NoSchedule
2730
- key: node-role.kubernetes.io/master
2831
operator: Exists
2932
effect: NoSchedule

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

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ rules:
2828
- apiGroups: [""]
2929
resources: ["endpoints"]
3030
verbs: ["get", "watch", "create", "update"]
31+
- apiGroups: ["coordination.k8s.io"]
32+
resources: ["leases"]
33+
verbs: ["get", "watch", "create", "update", "patch", "delete"]
3134
---
3235
kind: ClusterRoleBinding
3336
apiVersion: rbac.authorization.k8s.io/v1

pkg/cloudprovider/providers/oci/load_balancer_spec.go

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const (
4242
NLBHealthCheckIntervalMax = 1800000
4343
)
4444

45-
// TODO : Read this value from the oci-go-sdk project - JIRA : OKE-21772
4645
const ProtocolTypeMixed = "TCP_AND_UDP"
4746

4847
const (

pkg/csi/driver/controller.go

-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ func (d *ControllerDriver) ControllerUnpublishVolume(ctx context.Context, req *c
555555
if err != nil {
556556
if apierrors.IsNotFound(err) {
557557
log.Infof("Node with nodeID %s is not found, volume is likely already detached", req.NodeId)
558-
// https://jira.oci.oraclecorp.com/browse/OKE-13873 : Cleanup of dangling volumeAttachments is deferred.
559558
csiMetricDimension = util.GetMetricDimensionForComponent(util.Success, util.CSIStorageType)
560559
dimensionsMap[metrics.ComponentDimension] = csiMetricDimension
561560
metrics.SendMetricData(d.metricPusher, metrics.PVDetach, time.Since(startTime).Seconds(), dimensionsMap)

pkg/flexvolume/block/driver.go

-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ func (d OCIFlexvolumeDriver) Detach(logger *zap.SugaredLogger, pvOrVolumeName, n
348348
compartmentID, err := util.LookupNodeCompartment(d.K, nodeName)
349349
if err != nil {
350350
if apierrors.IsNotFound(err) {
351-
// https://jira.oci.oraclecorp.com/browse/OKE-14168 : Volume detachment is deferred
352351
logger.Info("Node is not found, volume is likely already detached.")
353352
fvdMetricDimension = util.GetMetricDimensionForComponent(util.Success, util.FVDStorageType)
354353
dimensionsMap[metrics.ComponentDimension] = fvdMetricDimension

0 commit comments

Comments
 (0)