Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert shell script to Go #3413

Merged
merged 26 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
236ba26
Change to awk
Kalaiselvi84 Oct 4, 2023
4192499
excluded print and -F
Kalaiselvi84 Oct 5, 2023
59584f8
xargs variation
Kalaiselvi84 Oct 6, 2023
78e6ec5
Merge branch 'main' into sed-to-awk
Kalaiselvi84 Oct 6, 2023
e17aa7d
go-script to replace ref
Kalaiselvi84 Oct 11, 2023
d48fd7e
Part 1 - convert sh into go
Kalaiselvi84 Oct 17, 2023
fb19864
Go script
Kalaiselvi84 Oct 18, 2023
32865db
del exp-openapi
Kalaiselvi84 Oct 18, 2023
b410245
bin file in gitignore
Kalaiselvi84 Oct 18, 2023
a3e64a8
exclude bin file
Kalaiselvi84 Oct 18, 2023
0bb1f7b
Revert yaml files
Kalaiselvi84 Oct 19, 2023
fa74a28
code change for yaml file
Kalaiselvi84 Oct 19, 2023
8117f5e
Merge branch 'main' into sed-to-awk
Kalaiselvi84 Oct 19, 2023
da222d3
mv go-script to scripts dir
Kalaiselvi84 Oct 19, 2023
6b96c71
required changes
Kalaiselvi84 Oct 19, 2023
b678e7e
Merge branch 'main' into sed-to-awk
Kalaiselvi84 Oct 19, 2023
04794df
delete export-openapi.sh
Kalaiselvi84 Oct 19, 2023
5ef1384
delete binary file main
Kalaiselvi84 Oct 19, 2023
98c6e0c
kubectl proxy - log, sleep time, graceful termination
Kalaiselvi84 Oct 20, 2023
5f9f4db
gen-embedded-openapi target for go script, run make gen-install
Kalaiselvi84 Oct 20, 2023
ec09c3d
agones - go mod vendor
Kalaiselvi84 Oct 20, 2023
5e7ea72
tmp dir path change
Kalaiselvi84 Oct 20, 2023
597745d
fix modifyJSONFiles(), make gen-install
Kalaiselvi84 Oct 20, 2023
7f12569
revert go.mod, go.sum and vendor/modules.txt
Kalaiselvi84 Oct 20, 2023
cebc3e2
change path
Kalaiselvi84 Oct 20, 2023
720452e
Merge branch 'main' into sed-to-awk
Kalaiselvi84 Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ build/allocation
debug.test
obj
test/sdk/cpp/sdk/
build/scripts/k8s-export-openapi/main

5 changes: 3 additions & 2 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,9 @@ push-agones-sdk-linux-image-amd64: build-agones-sdk-image-amd64
docker push $(sidecar_linux_amd64_tag)

# Generate the Embedded CRD openapi
gen-embedded-openapi:
docker run --rm $(common_mounts) -w $(workdir_path)/build $(build_tag) ./export-openapi.sh
gen-embedded-openapi: ensure-build-image
docker run --rm $(common_mounts) --workdir=$(mount_path)/build/scripts/k8s-export-openapi $(DOCKER_RUN_ARGS) $(build_tag) \
go run -mod=mod ./main.go

# Generate the static install script
gen-install: $(ensure-build-image)
Expand Down
92 changes: 0 additions & 92 deletions build/export-openapi.sh

This file was deleted.

5 changes: 5 additions & 0 deletions build/scripts/k8s-export-openapi/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/agones/agones/build/scripts/k8s-export-openapi

go 1.20

require github.com/itchyny/json2yaml v0.1.4
2 changes: 2 additions & 0 deletions build/scripts/k8s-export-openapi/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/itchyny/json2yaml v0.1.4 h1:/pErVOXGG5iTyXHi/QKR4y3uzhLjGTEmmJIy97YT+k8=
github.com/itchyny/json2yaml v0.1.4/go.mod h1:6iudhBZdarpjLFRNj+clWLAkGft+9uCcjAZYXUH9eGI=
Loading