File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ init:
2626
2727build : # # Build project and put the output binary in out/bin/
2828 mkdir -p out/bin
29- CGO_ENABLED=0 GO111MODULE=on $(GOCMD ) build -a -mod=readonly -tags ' netgo osusergo static_build' -ldflags=" -X 'main.version=v$( VERSION) ' -X 'purestorage/fa-openmetrics-exporter/internal/rest-client.version =$( VERSION) '" -o out/bin/$(BINARY_NAME ) cmd/fa-om-exporter/main.go
29+ CGO_ENABLED=0 GO111MODULE=on $(GOCMD ) build -a -mod=readonly -tags ' netgo osusergo static_build' -ldflags=" -X 'main.version=v$( VERSION) ' -X 'purestorage/fa-openmetrics-exporter/internal/rest-client.UserAgentVersion =$( VERSION) '" -o out/bin/$(BINARY_NAME ) cmd/fa-om-exporter/main.go
3030
3131build-with-vendor : # # Build project using the vendor directory and put the output binary in out/bin/
3232 mkdir -p out/bin
33- CGO_ENABLED=0 GO111MODULE=on $(GOCMD ) build -a -mod=vendor -tags ' netgo osusergo static_build' -ldflags=" -X 'main.version=v$( VERSION) ' -X 'purestorage/fa-openmetrics-exporter/internal/rest-client.version =$( VERSION) '" -o out/bin/$(BINARY_NAME ) cmd/fa-om-exporter/main.go
33+ CGO_ENABLED=0 GO111MODULE=on $(GOCMD ) build -a -mod=vendor -tags ' netgo osusergo static_build' -ldflags=" -X 'main.version=v$( VERSION) ' -X 'purestorage/fa-openmetrics-exporter/internal/rest-client.UserAgentVersion =$( VERSION) '" -o out/bin/$(BINARY_NAME ) cmd/fa-om-exporter/main.go
3434
3535clean : # # Remove build related file
3636 rm -fr ./bin
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN go mod download && go mod verify
99
1010COPY . .
1111
12- RUN CGO_ENABLED=1 go build -mod=readonly -a -tags 'netgo osusergo static_build' -ldflags="-X 'main.version=v$VERSION' -X 'purestorage/fa-openmetrics-exporter/internal/rest-client.version =$VERSION'" -v -o /usr/local/bin/pure-fa-om-exporter cmd/fa-om-exporter/main.go
12+ RUN CGO_ENABLED=1 go build -mod=readonly -a -tags 'netgo osusergo static_build' -ldflags="-X 'main.version=v$VERSION' -X 'purestorage/fa-openmetrics-exporter/internal/rest-client.UserAgentVersion =$VERSION'" -v -o /usr/local/bin/pure-fa-om-exporter cmd/fa-om-exporter/main.go
1313
1414
1515# alpine is used here as it seems to be the minimal image that passes quay.io vulnerability scan
Original file line number Diff line number Diff line change 77 "github.com/go-resty/resty/v2"
88)
99
10- var version string = "development"
10+ var UserAgentVersion string = "development"
1111
12- var FARestUserAgent string = "Pure_FA_OpenMetrics_exporter/" + version
12+ var FARestUserAgent string = "Pure_FA_OpenMetrics_exporter/" + UserAgentVersion
1313
1414type Client interface {
1515 GetAlerts (filter string ) * AlertsList
You can’t perform that action at this time.
0 commit comments