Skip to content

Commit

Permalink
PSS-23414: Update IPAM for TLS v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jayesh-srivastava committed Feb 14, 2024
1 parent 7b0b17c commit 16ce3e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ RUN --mount=type=cache,target=/root/.local/share/golang \
go mod download

# Copy the sources
COPY main.go main.go
COPY api/ api/
COPY ipam/ ipam/
COPY controllers/ controllers/
COPY . .

# Build
ARG ARCH
Expand All @@ -56,9 +53,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/root/.local/share/golang \
if [ ${CRYPTO_LIB} ];\
then \
GOARCH=${ARCH} go-build-fips.sh -a -o manager . ;\
GOARCH=${ARCH} go-build-fips.sh -a -o manager github.com/metal3-io/ip-address-manager ;\
else \
GOARCH=${ARCH} go-build-static.sh -a -o manager . ;\
GOARCH=${ARCH} go-build-static.sh -a -o manager github.com/metal3-io/ip-address-manager ;\
fi

RUN if [ "${CRYPTO_LIB}" ]; then assert-static.sh manager; fi
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SHELL:=/usr/bin/env bash
.DEFAULT_GOAL:=help
# Fips Flags
FIPS_ENABLE ?= ""
BUILDER_GOLANG_VERSION ?= 1.21
BUILDER_GOLANG_VERSION ?= 1.21.6
BUILD_ARGS = --build-arg CRYPTO_LIB=${FIPS_ENABLE} --build-arg BUILDER_GOLANG_VERSION=${BUILDER_GOLANG_VERSION}

RELEASE_LOC := release
Expand Down

0 comments on commit 16ce3e0

Please sign in to comment.