-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d44c46
commit b64f19d
Showing
26 changed files
with
231 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
build-scripts/components/helm/patches/v3.14.4/0002-enable-cgo.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 88e5f3826d2b8343609824d0224c313f8c929853 Mon Sep 17 00:00:00 2001 | ||
From: louiseschmidtgen <[email protected]> | ||
Date: Fri, 10 Jan 2025 12:41:56 +0100 | ||
Subject: [PATCH] enable cgo | ||
|
||
--- | ||
diff --git a/Makefile b/Makefile | ||
index c8ced67..0a32341 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -24,7 +24,7 @@ TESTS := . | ||
TESTFLAGS := | ||
LDFLAGS := -w -s | ||
GOFLAGS := | ||
-CGO_ENABLED ?= 0 | ||
+CGO_ENABLED := 1 | ||
|
||
# Rebuild the binary if any of these files change | ||
SRC := $(shell find . -type f -name '*.go' -print) go.mod go.sum |
24 changes: 24 additions & 0 deletions
24
...ts/components/helm/patches/v3.16.3/0001-disable-warnings-for-kubeconfig-permissions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From d08d2604a9f0f925b93b87d74ee0a2c26c785467 Mon Sep 17 00:00:00 2001 | ||
From: Angelos Kolaitis <[email protected]> | ||
Date: Thu, 14 Jul 2022 18:18:09 +0300 | ||
Subject: [PATCH] disable warnings for kubeconfig permissions | ||
|
||
--- | ||
cmd/helm/root.go | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/cmd/helm/root.go b/cmd/helm/root.go | ||
index ef92fea9..512f823f 100644 | ||
--- a/cmd/helm/root.go | ||
+++ b/cmd/helm/root.go | ||
@@ -206,7 +206,7 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string | ||
loadPlugins(cmd, out) | ||
|
||
// Check permissions on critical files | ||
- checkPerms() | ||
+ // checkPerms() | ||
|
||
// Check for expired repositories | ||
checkForExpiredRepos(settings.RepositoryConfig) | ||
-- | ||
2.25.1 |
19 changes: 19 additions & 0 deletions
19
build-scripts/components/helm/patches/v3.16.3/0002-enable-cgo.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 88e5f3826d2b8343609824d0224c313f8c929853 Mon Sep 17 00:00:00 2001 | ||
From: louiseschmidtgen <[email protected]> | ||
Date: Fri, 10 Jan 2025 12:41:56 +0100 | ||
Subject: [PATCH] enable cgo | ||
|
||
--- | ||
diff --git a/Makefile b/Makefile | ||
index c8ced67..0a32341 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -24,7 +24,7 @@ TESTS := . | ||
TESTFLAGS := | ||
LDFLAGS := -w -s | ||
GOFLAGS := | ||
-CGO_ENABLED ?= 0 | ||
+CGO_ENABLED := 1 | ||
|
||
# Rebuild the binary if any of these files change | ||
SRC := $(shell find . -type f -name '*.go' -print) go.mod go.sum |
24 changes: 24 additions & 0 deletions
24
...pts/components/helm/patches/v3.9.1/0001-disable-warnings-for-kubeconfig-permissions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From d08d2604a9f0f925b93b87d74ee0a2c26c785467 Mon Sep 17 00:00:00 2001 | ||
From: Angelos Kolaitis <[email protected]> | ||
Date: Thu, 14 Jul 2022 18:18:09 +0300 | ||
Subject: [PATCH] disable warnings for kubeconfig permissions | ||
|
||
--- | ||
cmd/helm/root.go | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/cmd/helm/root.go b/cmd/helm/root.go | ||
index ef92fea9..512f823f 100644 | ||
--- a/cmd/helm/root.go | ||
+++ b/cmd/helm/root.go | ||
@@ -206,7 +206,7 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string | ||
loadPlugins(cmd, out) | ||
|
||
// Check permissions on critical files | ||
- checkPerms() | ||
+ // checkPerms() | ||
|
||
// Check for expired repositories | ||
checkForExpiredRepos(settings.RepositoryConfig) | ||
-- | ||
2.25.1 |
33 changes: 33 additions & 0 deletions
33
build-scripts/components/helm/patches/v3.9.1/0002-enable-cgo.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 76f154cf345ffc7f2b4b9c0e623551c744249d60 Mon Sep 17 00:00:00 2001 | ||
From: Angelos Kolaitis <[email protected]> | ||
Date: Fri, 27 Oct 2023 17:01:33 +0000 | ||
Subject: [PATCH] enable cgo | ||
|
||
--- | ||
Makefile | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 0a7b326..39cee3f 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -77,7 +77,7 @@ all: build | ||
build: $(BINDIR)/$(BINNAME) | ||
|
||
$(BINDIR)/$(BINNAME): $(SRC) | ||
- GO111MODULE=on CGO_ENABLED=0 go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/helm | ||
+ GO111MODULE=on CGO_ENABLED=1 go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/helm | ||
|
||
# ------------------------------------------------------------------------------ | ||
# install | ||
@@ -165,7 +165,7 @@ $(GOIMPORTS): | ||
.PHONY: build-cross | ||
build-cross: LDFLAGS += -extldflags "-static" | ||
build-cross: $(GOX) | ||
- GOFLAGS="-trimpath" GO111MODULE=on CGO_ENABLED=0 $(GOX) -parallel=3 -output="_dist/{{.OS}}-{{.Arch}}/$(BINNAME)" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm | ||
+ GOFLAGS="-trimpath" GO111MODULE=on CGO_ENABLED=1 $(GOX) -parallel=3 -output="_dist/{{.OS}}-{{.Arch}}/$(BINNAME)" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm | ||
|
||
.PHONY: dist | ||
dist: | ||
-- | ||
2.25.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
|
||
INSTALL="${1}/bin" | ||
mkdir -p "${INSTALL}" | ||
INSTALL="${1}" | ||
mkdir -p "${INSTALL}/bin" "${INSTALL}/usr/lib" | ||
|
||
make static -j | ||
export GOEXPERIMENT=opensslcrypto | ||
make dynamic -j | ||
|
||
cp bin/static/dqlite "${INSTALL}/dqlite" | ||
cp bin/static/k8s-dqlite "${INSTALL}/k8s-dqlite" | ||
cp bin/dynamic/dqlite "${INSTALL}/bin/dqlite" | ||
cp bin/dynamic/k8s-dqlite "${INSTALL}/bin/k8s-dqlite" | ||
cp bin/dynamic/lib/*so* "${INSTALL}/usr/lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# For FIPS-enabled hosts, i.e. when /proc/sys/crypto/fips_enabled is 1, | ||
# the following configuration is required to use the fips enabled crypto | ||
# libraries from the host. | ||
# | ||
# The paths below are for FIPS enabled Ubuntu 20.04, make sure to adjust | ||
# accordingly for other distributions. | ||
|
||
# Uncomment and specify the binary path and config file for openssl. | ||
# OPENSSL_EXECUTABLE="/usr/bin/openssl" | ||
# OPENSSL_CONF="/etc/ssl/openssl.cnf" | ||
|
||
# Uncomment and prepend the FIPS libcrypto location to the LD_LIBRARY_PATH | ||
# LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" | ||
|
||
# Set GOFIPS=1 so that Go binaries use the FIPS-enabled libcrypto | ||
GOFIPS=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.