Skip to content

Commit

Permalink
trust-manager: set GODEBUG in go.mod (#37293)
Browse files Browse the repository at this point in the history
* trust-manager: set GODEBUG in go.mod
* also add a test to confirm that the symbol showed up in `go version
-m`

Follow up of #37219

Signed-off-by: Nghia Tran <[email protected]>
  • Loading branch information
tcnghia authored Dec 17, 2024
1 parent b4cf89b commit 5f36141
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions trust-manager.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: trust-manager
version: 0.14.0
epoch: 2
epoch: 3
description: trust-manager is an operator for distributing trust bundles across a Kubernetes cluster.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -46,14 +46,12 @@ pipeline:
# and https://kubernetes.slack.com/archives/CDEQJ0Q8M/p1734105432142589
#
# We should revert this change when upstream fixes their cert bundle.
export GODEBUG="x509negativeserial=1"
echo "godebug x509negativeserial=1" >> go.mod
go build -o ./bin/trust-manager ./cmd/trust-manager
go build -ldflags="-w" -o ./bin/trust-manager ./cmd/trust-manager
mkdir -p ${{targets.destdir}}/usr/bin
install -Dm755 ./bin/trust-manager ${{targets.destdir}}/usr/bin/trust-manager
- uses: strip

update:
enabled: true
github:
Expand All @@ -63,7 +61,13 @@ update:
tag-filter: v

test:
environment:
contents:
packages:
- go
pipeline:
# AUTOGENERATED
- runs: |
trust-manager --help
- runs: |
go version -m /usr/bin/trust-manager | grep GODEBUG=x509negativeserial=1

0 comments on commit 5f36141

Please sign in to comment.