File tree Expand file tree Collapse file tree 10 files changed +10
-14
lines changed Expand file tree Collapse file tree 10 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ DOCKER_BUILD_ARGS = --load --platform="$(OS)/$(ARCH)"
30
30
31
31
.PHONY : $(BINARY )
32
32
$(BINARY ) :
33
- GOOS=$(OS ) GOARCH=$(ARCH ) $(CGOFLAG ) go build -o $(BINARY ) $(BUILDFLAGS ) github.com/gravitational/teleport/integrations/access/$(ACCESS_PLUGIN ) /cmd/teleport-$(ACCESS_PLUGIN )
33
+ GOOS=$(OS ) GOARCH=$(ARCH ) $(CGOFLAG ) go build -o $(BINARY ) -tags " kustomize_disable_go_plugin_support " $(BUILDFLAGS ) github.com/gravitational/teleport/integrations/access/$(ACCESS_PLUGIN ) /cmd/teleport-$(ACCESS_PLUGIN )
34
34
35
35
.PHONY : test
36
36
test : FLAGS ?= '-race'
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ RELEASE_MESSAGE = "Building with GOOS=$(OS) GOARCH=$(ARCH)."
44
44
45
45
.PHONY : build
46
46
build :
47
- GOOS=$(OS ) GOARCH=$(ARCH ) $(CGOFLAG ) go build -o $(BUILDDIR ) /teleport-event-handler $(BUILDFLAGS )
47
+ GOOS=$(OS ) GOARCH=$(ARCH ) $(CGOFLAG ) go build -tags " kustomize_disable_go_plugin_support " - o $(BUILDDIR ) /teleport-event-handler $(BUILDFLAGS )
48
48
49
49
# darwin-signed-build is a wrapper around the build target that ensures it is codesigned
50
50
include ../../darwin-signing.mk
Original file line number Diff line number Diff line change @@ -344,7 +344,4 @@ replace (
344
344
github.com/moby/spdystream => github.com/gravitational/spdystream v0.0.0-20230512133543-4e46862ca9bf
345
345
github.com/redis/go-redis/v9 => github.com/gravitational/redis/v9 v9.6.1-teleport.1
346
346
github.com/vulcand/predicate => github.com/gravitational/predicate v1.3.1
347
- // replace module sigs.k8s.io/kustomize/api until https://github.com/kubernetes-sigs/kustomize/issues/5524 is resolved,
348
- // otherwise we get significant increase in size of the "teleport" binary.
349
- sigs.k8s.io/kustomize/api => github.com/gravitational/kustomize/api v0.16.0-teleport.1
350
347
)
Original file line number Diff line number Diff line change @@ -1192,8 +1192,6 @@ github.com/gravitational/httprouter v1.3.1-0.20220408074523-c876c5e705a5 h1:qg8F
1192
1192
github.com/gravitational/httprouter v1.3.1-0.20220408074523-c876c5e705a5 /go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM =
1193
1193
github.com/gravitational/kingpin/v2 v2.1.11-0.20230515143221-4ec6b70ecd33 h1:VFER/+0TfRypJhc9XeuggTtEZzhhe75DSVqMv/avHEU =
1194
1194
github.com/gravitational/kingpin/v2 v2.1.11-0.20230515143221-4ec6b70ecd33 /go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE =
1195
- github.com/gravitational/kustomize/api v0.16.0-teleport.1 h1:d/aWgghHn/N6TlwGxjjbelUC7b0G0YRyUDf8XS1aScg =
1196
- github.com/gravitational/kustomize/api v0.16.0-teleport.1 /go.mod h1:E/0/egj7ED7xWEegMHlRagaZTiL6fxakmSR2pyiK2ZU =
1197
1195
github.com/gravitational/license v0.0.0-20240313232707-8312e719d624 h1:TjiJ98fWU5N28MBktP5vj1/xohin7cX/JBPPJ8iCiTE =
1198
1196
github.com/gravitational/license v0.0.0-20240313232707-8312e719d624 /go.mod h1:pERQ8qtFfvV0Pfw9jA5o1WH1snupQQ3SZ+n8CVdRJNs =
1199
1197
github.com/gravitational/predicate v1.3.1 h1:f1uGg2FF6z5wZbcafYpLZJ1gl+82I0MlSd0cQKDPQe0 =
@@ -2431,6 +2429,8 @@ sigs.k8s.io/controller-runtime v0.19.0 h1:nWVM7aq+Il2ABxwiCizrVDSlmDcshi9llbaFbC
2431
2429
sigs.k8s.io/controller-runtime v0.19.0 /go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4 =
2432
2430
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo =
2433
2431
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd /go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0 =
2432
+ sigs.k8s.io/kustomize/api v0.17.2 h1:E7/Fjk7V5fboiuijoZHgs4aHuexi5Y2loXlVOAVAG5g =
2433
+ sigs.k8s.io/kustomize/api v0.17.2 /go.mod h1:UWTz9Ct+MvoeQsHcJ5e+vziRRkwimm3HytpZgIYqye0 =
2434
2434
sigs.k8s.io/kustomize/kyaml v0.17.1 h1:TnxYQxFXzbmNG6gOINgGWQt09GghzgTP6mIurOgrLCQ =
2435
2435
sigs.k8s.io/kustomize/kyaml v0.17.1 /go.mod h1:9V0mCjIEYjlXuCdYsSXvyoy2BTsLESH7TlGV81S282U =
2436
2436
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4 =
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ ARG TARGETARCH
77
77
# CGO is required for github.com/gravitational/teleport/lib/system
78
78
RUN echo "Targeting $TARGETOS/$TARGETARCH with CC=$COMPILER_NAME" && \
79
79
CGO_ENABLED=1 CC=$COMPILER_NAME GOOS=$TARGETOS GOARCH=$TARGETARCH \
80
- go build -a -o /go/bin/teleport-operator github.com/gravitational/teleport/integrations/operator
80
+ go build -tags "kustomize_disable_go_plugin_support" - a -o /go/bin/teleport-operator github.com/gravitational/teleport/integrations/operator
81
81
82
82
# Create the image with the build operator on the $TARGETPLATFORM
83
83
# TARGETPLATFORM is provided by Docker/buildx
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ RUN case "$TARGETARCH" in \
96
96
esac; \
97
97
echo "Targeting $TARGETOS/$TARGETARCH with CC=$COMPILER_NAME" && \
98
98
CGO_ENABLED=1 CC=$COMPILER_NAME GOOS=$TARGETOS GOARCH=$TARGETARCH \
99
- go build -a -o /go/bin/teleport-operator github.com/gravitational/teleport/integrations/operator
99
+ go build -tags "kustomize_disable_go_plugin_support" - a -o /go/bin/teleport-operator github.com/gravitational/teleport/integrations/operator
100
100
101
101
# Create the image with the build operator on the $TARGETPLATFORM
102
102
# TARGETPLATFORM is provided by Docker/buildx
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ crdgen-test: ## Run crdgen tests.
154
154
155
155
.PHONY : build
156
156
build : generate fmt vet # # Build manager binary.
157
- go build -trimpath -o bin/manager main.go namespace.go config.go
157
+ go build -trimpath -tags " kustomize_disable_go_plugin_support " - o bin/manager main.go namespace.go config.go
158
158
159
159
.PHONY : run
160
160
run : manifests generate fmt vet # # Run a controller from your host.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ clean: tfclean
30
30
.PHONY : build
31
31
build : clean
32
32
# Turning off GOWORK to prevent missing package errors.
33
- GOWORK=off GOOS=$(OS) GOARCH=$(ARCH) $(CGOFLAG) go build -o $(BUILDDIR)/terraform-provider-teleport $(BUILDFLAGS)
33
+ GOWORK=off GOOS=$(OS) GOARCH=$(ARCH) $(CGOFLAG) go build -tags "kustomize_disable_go_plugin_support" - o $(BUILDDIR)/terraform-provider-teleport $(BUILDFLAGS)
34
34
35
35
build-darwin-universal : $(addprefix $(BUILDDIR ) /terraform-provider-teleport_,arm64 amd64)
36
36
lipo -create -output $(BUILDDIR ) /terraform-provider-teleport $^
Original file line number Diff line number Diff line change @@ -408,5 +408,4 @@ replace (
408
408
github.com/moby/spdystream => github.com/gravitational/spdystream v0.0.0-20230512133543-4e46862ca9bf
409
409
github.com/redis/go-redis/v9 => github.com/gravitational/redis/v9 v9.6.1-teleport.1
410
410
github.com/vulcand/predicate => github.com/gravitational/predicate v1.3.1
411
- sigs.k8s.io/kustomize/api => github.com/gravitational/kustomize/api v0.16.0-teleport.1
412
411
)
Original file line number Diff line number Diff line change @@ -1320,8 +1320,6 @@ github.com/gravitational/httprouter v1.3.1-0.20220408074523-c876c5e705a5 h1:qg8F
1320
1320
github.com/gravitational/httprouter v1.3.1-0.20220408074523-c876c5e705a5 /go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM =
1321
1321
github.com/gravitational/kingpin/v2 v2.1.11-0.20230515143221-4ec6b70ecd33 h1:VFER/+0TfRypJhc9XeuggTtEZzhhe75DSVqMv/avHEU =
1322
1322
github.com/gravitational/kingpin/v2 v2.1.11-0.20230515143221-4ec6b70ecd33 /go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE =
1323
- github.com/gravitational/kustomize/api v0.16.0-teleport.1 h1:d/aWgghHn/N6TlwGxjjbelUC7b0G0YRyUDf8XS1aScg =
1324
- github.com/gravitational/kustomize/api v0.16.0-teleport.1 /go.mod h1:E/0/egj7ED7xWEegMHlRagaZTiL6fxakmSR2pyiK2ZU =
1325
1323
github.com/gravitational/license v0.0.0-20240313232707-8312e719d624 h1:TjiJ98fWU5N28MBktP5vj1/xohin7cX/JBPPJ8iCiTE =
1326
1324
github.com/gravitational/license v0.0.0-20240313232707-8312e719d624 /go.mod h1:pERQ8qtFfvV0Pfw9jA5o1WH1snupQQ3SZ+n8CVdRJNs =
1327
1325
github.com/gravitational/predicate v1.3.1 h1:f1uGg2FF6z5wZbcafYpLZJ1gl+82I0MlSd0cQKDPQe0 =
@@ -2808,6 +2806,8 @@ sigs.k8s.io/controller-runtime v0.19.0 h1:nWVM7aq+Il2ABxwiCizrVDSlmDcshi9llbaFbC
2808
2806
sigs.k8s.io/controller-runtime v0.19.0 /go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4 =
2809
2807
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo =
2810
2808
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd /go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0 =
2809
+ sigs.k8s.io/kustomize/api v0.17.2 h1:E7/Fjk7V5fboiuijoZHgs4aHuexi5Y2loXlVOAVAG5g =
2810
+ sigs.k8s.io/kustomize/api v0.17.2 /go.mod h1:UWTz9Ct+MvoeQsHcJ5e+vziRRkwimm3HytpZgIYqye0 =
2811
2811
sigs.k8s.io/kustomize/kyaml v0.17.1 h1:TnxYQxFXzbmNG6gOINgGWQt09GghzgTP6mIurOgrLCQ =
2812
2812
sigs.k8s.io/kustomize/kyaml v0.17.1 /go.mod h1:9V0mCjIEYjlXuCdYsSXvyoy2BTsLESH7TlGV81S282U =
2813
2813
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4 =
You can’t perform that action at this time.
0 commit comments