From 103fce07d7a7e62cf5b0bdfa5438eea870a4423e Mon Sep 17 00:00:00 2001 From: sukhil-suresh Date: Wed, 22 Nov 2023 17:59:15 -0500 Subject: [PATCH] Build fipsonly kando --- .goreleaser.yml | 4 +++- cmd/kando/fipsonly.go | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 cmd/kando/fipsonly.go diff --git a/.goreleaser.yml b/.goreleaser.yml index 55b182b56e..180b1cd013 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,9 +24,11 @@ builds: - amd64 - id: kando binary: kando - main: cmd/kando/main.go + main: ./cmd/kando ldflags: *ldflags env: *env + tags: + - fipsonly goos: &goos - linux goarch: *goarch diff --git a/cmd/kando/fipsonly.go b/cmd/kando/fipsonly.go new file mode 100644 index 0000000000..e8a8258f2d --- /dev/null +++ b/cmd/kando/fipsonly.go @@ -0,0 +1,19 @@ +// Copyright 2019 The Kanister Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//go:build fipsonly + +package main + +import _ "crypto/tls/fipsonly" // Required for enabling fips only mode