File tree 3 files changed +11
-7
lines changed
deploy/kubernetes/overlays/noauth-dev
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- # Copyright 2018 The Kubernetes Authors.
1
+ # Copyright 2021 The Kubernetes Authors.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -25,7 +25,8 @@ RUN clean-install udev
25
25
26
26
# Start from Kubernetes Debian base
27
27
FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3
28
- # Copy source code too?
28
+
29
+ # Copy source code too to correlate the binary and the breakpoints
29
30
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
30
31
ADD . .
31
32
@@ -35,4 +36,7 @@ COPY --from=builder /go/bin/dlv /go/bin/dlv
35
36
RUN clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
36
37
COPY --from=base /lib/udev/scsi_id /lib/udev_containerized/scsi_id
37
38
39
+ # PDCSI driver isn't copied to / because of delve not being able to correlate
40
+ # the binary and the source code, instead just run the binary where it was
41
+ # compiled, the overlay noauth-dev calls this binary
38
42
ENTRYPOINT ["/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver"]
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ WINDOWS_BASE_IMAGES=$(BASE_IMAGE_LTSC2019) $(BASE_IMAGE_1909) $(BASE_IMAGE_2004)
44
44
all : gce-pd-driver gce-pd-driver-windows
45
45
gce-pd-driver :
46
46
mkdir -p bin
47
- go build -mod=vendor -gcflags= " all=-N -l " -ldflags " -X main.version=$( STAGINGVERSION) " -o bin/${DRIVERBINARY} ./cmd/gce-pd-csi-driver/
47
+ go build -mod=vendor $( GCFLAGS ) -ldflags " -X main.version=$( STAGINGVERSION) " -o bin/${DRIVERBINARY} ./cmd/gce-pd-csi-driver/
48
48
49
49
gce-pd-driver-windows :
50
50
mkdir -p bin
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ patchesStrategicMerge:
10
10
- controller-overlay.yaml
11
11
namespace : gce-pd-csi-driver
12
12
# To change the dev image, add something like the following.
13
- images :
14
- - name : gke.gcr.io/gcp-compute-persistent-disk-csi-driver
15
- newName : gcr.io/mauriciopoppe-gke-dev/gcp-compute-persistent-disk-csi-driver
16
- newTag : latest
13
+ # images:
14
+ # - name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver
15
+ # newName: gcr.io/mauriciopoppe-gke-dev/gcp-compute-persistent-disk-csi-driver
16
+ # newTag: latest
You can’t perform that action at this time.
0 commit comments