forked from kubernetes/cloud-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reflect.StructField requires atleast go 1.17 or above Signed-off-by: Niclas Schad <[email protected]> add exponential backoff for volume readiness (RPC: CreateVolume) (#7) Signed-off-by: Niclas Schad <[email protected]>
- Loading branch information
1 parent
a295477
commit 74f0380
Showing
8 changed files
with
127 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date | ||
ignore: | ||
SNYK-GOLANG-GITHUBCOMEMICKLEIGORESTFUL-2435653: | ||
- '*': | ||
reason: We do not use CORS | ||
expires: 2022-06-12T09:26:24.310Z | ||
created: 2022-05-13T09:26:24.313Z | ||
version: v1.25.0 | ||
patch: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# syntax=docker/dockerfile:1.3-labs | ||
ARG GO_VERSION=1.17 | ||
|
||
FROM golang:${GO_VERSION} AS base | ||
ENV GO111MODULE=on | ||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
ENV GOARCH=amd64 | ||
|
||
WORKDIR /src | ||
COPY go.* . | ||
|
||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
go mod download | ||
|
||
FROM base AS build | ||
|
||
RUN --mount=target=. \ | ||
--mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
go build -ldflags="-w -s" -o /app/main cmd/cinder-csi-plugin/main.go | ||
|
||
FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3 | ||
|
||
LABEL name="cinder-csi-plugin" \ | ||
license="Apache Version 2.0" \ | ||
maintainers="Kubernetes Authors" \ | ||
description="Cinder CSI Plugin" \ | ||
architecture=amd64 \ | ||
distribution-scope="public" \ | ||
summary="Cinder CSI Plugin" \ | ||
help="none" | ||
|
||
RUN clean-install ca-certificates e2fsprogs mount xfsprogs udev | ||
|
||
COPY --from=build /app/main /bin/controller | ||
ENTRYPOINT ["/bin/controller"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters