Skip to content

Commit 3c818dc

Browse files
authored
Merge pull request #1021 from mattcary/passwd
Remove passwd- file to make CIS benchmark happy
2 parents 9b50710 + 7694652 commit 3c818dc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ RUN ln -fs /bin/rm /usr/sbin/rm \
3636
&& clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
3737
COPY --from=mad-hack /lib/udev/scsi_id /lib/udev_containerized/scsi_id
3838

39+
# The CIS benchmark does not like having the backup passwd file accessible.
40+
RUN rm -f /etc/passwd-
41+
3942
ENTRYPOINT ["/gce-pd-csi-driver"]

test/run-k8s-integration.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ readonly boskos_resource_type="${GCE_PD_BOSKOS_RESOURCE_TYPE:-gce-project}"
1515
readonly do_driver_build="${GCE_PD_DO_DRIVER_BUILD:-true}"
1616
readonly deployment_strategy=${DEPLOYMENT_STRATEGY:-gce}
1717
readonly gke_cluster_version=${GKE_CLUSTER_VERSION:-latest}
18-
readonly kube_version=${GCE_PD_KUBE_VERSION:-master}
19-
readonly test_version=${TEST_VERSION:-master}
18+
# The release-1.3 branch is only meant to be used up to cluster version 1.21.
19+
readonly kube_version=${GCE_PD_KUBE_VERSION:-1.21.14}
20+
readonly test_version=${TEST_VERSION:-1.21.14}
2021
readonly gce_zone=${GCE_CLUSTER_ZONE:-us-central1-b}
2122
readonly gce_region=${GCE_CLUSTER_REGION:-}
2223
readonly image_type=${IMAGE_TYPE:-cos}

0 commit comments

Comments
 (0)