From 2dc20cf1aada62d078b1f721e035db2aa2e35ca6 Mon Sep 17 00:00:00 2001 From: Subbarao Meduri Date: Tue, 2 Jan 2024 11:09:30 -0500 Subject: [PATCH] set GOFLAGS to empty string for RHTAP builds (#1300) Signed-off-by: Subbarao Meduri --- collectors/metrics/Containerfile.operator | 2 +- loaders/dashboards/Containerfile.operator | 2 +- operators/endpointmetrics/Containerfile.operator | 2 +- operators/multiclusterobservability/Containerfile.operator | 2 +- proxy/Containerfile.operator | 2 +- tools/simulator/alert-forward/Containerfile.operator | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/collectors/metrics/Containerfile.operator b/collectors/metrics/Containerfile.operator index 816eb371d..ba66e9aa2 100644 --- a/collectors/metrics/Containerfile.operator +++ b/collectors/metrics/Containerfile.operator @@ -8,7 +8,7 @@ COPY go.sum go.mod ./ COPY ./collectors/metrics ./collectors/metrics COPY ./operators/pkg ./operators/pkg COPY ./operators/multiclusterobservability/api ./operators/multiclusterobservability/api -RUN CGO_ENABLED=1 go build -a -installsuffix cgo -v -o metrics-collector ./collectors/metrics/cmd/metrics-collector/main.go +RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -v -o metrics-collector ./collectors/metrics/cmd/metrics-collector/main.go FROM registry.access.redhat.com/ubi8/ubi-minimal:latest diff --git a/loaders/dashboards/Containerfile.operator b/loaders/dashboards/Containerfile.operator index 1c774d30d..f8200e65d 100644 --- a/loaders/dashboards/Containerfile.operator +++ b/loaders/dashboards/Containerfile.operator @@ -7,7 +7,7 @@ WORKDIR /workspace COPY go.sum go.mod ./loaders/dashboards ./ COPY ./loaders/dashboards ./loaders/dashboards -RUN CGO_ENABLED=1 go build -a -installsuffix cgo -v -o main loaders/dashboards/cmd/main.go +RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -v -o main loaders/dashboards/cmd/main.go FROM registry.access.redhat.com/ubi8/ubi-minimal:latest diff --git a/operators/endpointmetrics/Containerfile.operator b/operators/endpointmetrics/Containerfile.operator index bf3174151..c64a06604 100644 --- a/operators/endpointmetrics/Containerfile.operator +++ b/operators/endpointmetrics/Containerfile.operator @@ -8,7 +8,7 @@ COPY ./operators/endpointmetrics ./operators/endpointmetrics COPY ./operators/multiclusterobservability/api ./operators/multiclusterobservability/api COPY ./operators/pkg ./operators/pkg -RUN CGO_ENABLED=1 go build -a -installsuffix cgo -o build/_output/bin/endpoint-monitoring-operator operators/endpointmetrics/main.go +RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -o build/_output/bin/endpoint-monitoring-operator operators/endpointmetrics/main.go FROM registry.access.redhat.com/ubi8/ubi-minimal:latest diff --git a/operators/multiclusterobservability/Containerfile.operator b/operators/multiclusterobservability/Containerfile.operator index 5cd6801a2..a6dafcc69 100644 --- a/operators/multiclusterobservability/Containerfile.operator +++ b/operators/multiclusterobservability/Containerfile.operator @@ -8,7 +8,7 @@ COPY go.sum go.mod ./ COPY ./operators/multiclusterobservability ./operators/multiclusterobservability COPY ./operators/pkg ./operators/pkg -RUN CGO_ENABLED=1 go build -a -installsuffix cgo -o bin/manager operators/multiclusterobservability/main.go +RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -o bin/manager operators/multiclusterobservability/main.go FROM registry.access.redhat.com/ubi8/ubi-minimal:latest diff --git a/proxy/Containerfile.operator b/proxy/Containerfile.operator index 8bf966d19..fa8b9e858 100644 --- a/proxy/Containerfile.operator +++ b/proxy/Containerfile.operator @@ -6,7 +6,7 @@ WORKDIR /workspace COPY go.sum go.mod ./ COPY ./proxy ./proxy -RUN CGO_ENABLED=1 go build -a -installsuffix cgo -v -o main proxy/cmd/main.go +RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -v -o main proxy/cmd/main.go FROM registry.access.redhat.com/ubi8/ubi-minimal:latest diff --git a/tools/simulator/alert-forward/Containerfile.operator b/tools/simulator/alert-forward/Containerfile.operator index a62af5ed6..f9285820b 100644 --- a/tools/simulator/alert-forward/Containerfile.operator +++ b/tools/simulator/alert-forward/Containerfile.operator @@ -7,7 +7,7 @@ WORKDIR /workspace COPY go.sum go.mod ./ COPY tools/simulator/alert-forward/main.go tools/simulator/alert-forward/main.go -RUN CGO_ENABLED=1 go build -a -installsuffix cgo -o bin/alert-forwarder tools/simulator/alert-forward/main.go +RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -o bin/alert-forwarder tools/simulator/alert-forward/main.go FROM registry.access.redhat.com/ubi8/ubi-minimal:latest