Skip to content

Commit

Permalink
Update UBI image, config and image versions of driver and module (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
rensyct authored Mar 7, 2022
1 parent 1b48808 commit 9994f6e
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY tests/ tests/
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:8.5-230.1645809059
FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:21504085e8d740e62b52573fe9a1a0d58a3e7dba589cac69734ad2fa81d66635

RUN microdnf install yum \
&& yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical \
Expand Down
8 changes: 4 additions & 4 deletions bundle/manifests/dell-csm-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ metadata:
"value": true
}
],
"image": "dellemc/csm-authorization-sidecar:v1.0.0"
"image": "dellemc/csm-authorization-sidecar:v1.2.0"
}
],
"configVersion": "v2.0.0",
"configVersion": "v2.2.0",
"enabled": false,
"name": "authorization"
}
Expand Down Expand Up @@ -207,8 +207,8 @@ spec:
- description: CSIDriverSpec is the specification for CSIDriver
displayName: CSI Driver Spec
path: driver.csiDriverSpec
- description: CSIDriverType is the CSI Driver type for Dell Technologies - e.g, powermax,
powerflex,...
- description: CSIDriverType is the CSI Driver type for Dell Technologies -
e.g, powermax, powerflex,...
displayName: CSI Driver Type
path: driver.csiDriverType
- description: DNSPolicy is the dnsPolicy of the daemonset for Node plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ spec:
- description: CSIDriverSpec is the specification for CSIDriver
displayName: CSI Driver Spec
path: driver.csiDriverSpec
- description: CSIDriverType is the CSI Driver type for Dell Technologies - e.g, powermax,
powerflex,...
- description: CSIDriverType is the CSI Driver type for Dell Technologies -
e.g, powermax, powerflex,...
displayName: CSI Driver Type
path: driver.csiDriverType
- description: DNSPolicy is the dnsPolicy of the daemonset for Node plugin
Expand Down
4 changes: 2 additions & 2 deletions config/samples/storage_v1_csm_observability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ spec:
- name: authorization
# enable: Enable/Disable csm-authorization
enabled: false
configVersion: v2.0.0
configVersion: v2.2.0
components:
- name: karavi-authorization-proxy
image: dellemc/csm-authorization-sidecar:v1.0.0
image: dellemc/csm-authorization-sidecar:v1.2.0
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
Expand Down
6 changes: 3 additions & 3 deletions config/samples/storage_v1_csm_powerscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
siDriverType: "powerscale"
k8sVersion: v1.23

# Config version for CSI PowerScale v2.0.0 driver
# Config version for CSI PowerScale v2.2.0 driver
configVersion: v2.2.0

# volumeNamePrefix: defines a string prepended to each volume created by the CSI driver.
Expand Down Expand Up @@ -146,9 +146,9 @@ spec:
- name: authorization
# enable: Enable/Disable csm-authorization
enabled: false
configVersion: v2.0.0
configVersion: v2.2.0
components:
- image: dellemc/csm-authorization-sidecar:v1.0.0
- image: dellemc/csm-authorization-sidecar:v1.2.0
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
Expand Down
2 changes: 1 addition & 1 deletion controllers/csm_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ func addModuleToCSM(csm *csmv1.ContainerStorageModule) {
{
Name: "authorization",
Enabled: true,
ConfigVersion: "v1.0.0",
ConfigVersion: "v1.2.0",
Components: []csmv1.ContainerTemplate{
{
Name: "karavi-authorization-proxy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ spec:
- name: socket-dir
mountPath: /var/run/csi
- name: snapshotter
#image: quay.io/k8scsi/csi-snapshotter:v1.0.0
image: k8s.gcr.io/sig-storage/csi-snapshotter:v4.2.1
imagePullPolicy: IfNotPresent
args:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: karavi-authorization-proxy
imagePullPolicy: IfNotPresent
image: dellemc/csm-authorization-sidecar:v1.0.0
image: dellemc/csm-authorization-sidecar:v1.2.0
env:
- name: PROXY_HOST
value: ""
Expand Down
4 changes: 1 addition & 3 deletions operatorconfig/moduleconfig/common/version-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Driver Type
powerscale:
# List of Driver versions and modules that supports the version
v2.0.0:
authorization: "v1.0.0"
v2.2.0:
authorization: "v1.0.0"
authorization: "v1.2.0"
2 changes: 1 addition & 1 deletion pkg/modules/authorization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func TestAuthorizationPreCheck(t *testing.T) {
drivertype := string(customResource.Spec.Driver.CSIDriverType)
tmpCR := customResource
auth := tmpCR.Spec.Modules[0]
auth.ConfigVersion = "v1.0.0"
auth.ConfigVersion = "v1.2.0"

karaviAuthconfig := getSecret(namespace, "karavi-authorization-config")
proxyAuthzTokens := getSecret(namespace, "proxy-authz-tokens")
Expand Down
2 changes: 1 addition & 1 deletion pkg/modules/testdata/cr_powerscale_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
enabled: true
components:
- name: karavi-authorization-proxy
image: dellemc/csm-authorization-sidecar:v1.0.0
image: dellemc/csm-authorization-sidecar:v1.2.0
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
Expand Down
4 changes: 2 additions & 2 deletions samples/storage_csm_powerscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ spec:
- name: authorization
# enable: Enable/Disable csm-authorization
enabled: false
configVersion: v1.0.0
configVersion: v1.2.0
components:
- name: karavi-authorization-proxy
image: dellemc/csm-authorization-sidecar:v1.0.0
image: dellemc/csm-authorization-sidecar:v1.2.0
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
Expand Down
3 changes: 1 addition & 2 deletions tests/config/driverconfig/powerscale/v2.2.0/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ spec:
- name: socket-dir
mountPath: /var/run/csi
- name: snapshotter
#image: quay.io/k8scsi/csi-snapshotter:v1.0.0
image: k8s.gcr.io/sig-storage/csi-snapshotter:v4.1.1
imagePullPolicy: IfNotPresent
args:
Expand All @@ -181,7 +180,7 @@ spec:
- name: socket-dir
mountPath: /var/run/csi
- name: driver
image: dellemc/csi-isilon:v2.0.0
image: dellemc/csi-isilon:v2.2.0
imagePullPolicy: IfNotPresent
command: [ "/csi-isilon" ]
args:
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/testfiles/storage_csm_powerscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ spec:
- name: authorization
# enable: Enable/Disable csm-authorization
enabled: false
configVersion: v1.0.0
configVersion: v1.2.0
components:
- name: karavi-authorization-proxy
image: dellemc/csm-authorization-sidecar:v1.0.0
image: dellemc/csm-authorization-sidecar:v1.2.0
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/testfiles/storage_csm_powerscale_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ spec:
- name: authorization
# enable: Enable/Disable csm-authorization
enabled: true
configVersion: v1.0.0
configVersion: v1.2.0
components:
- name: karavi-authorization-proxy
image: dellemc/csm-authorization-sidecar:v1.0.0
image: dellemc/csm-authorization-sidecar:v1.2.0
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
Expand Down

0 comments on commit 9994f6e

Please sign in to comment.