Skip to content

Commit 779ea3d

Browse files
authored
Update the process to build api-docs, generate CRD manifests and code (#2046)
* Update .gitignore Signed-off-by: Yi Chen <[email protected]> * Update .dockerignore Signed-off-by: Yi Chen <[email protected]> * Update Makefile Signed-off-by: Yi Chen <[email protected]> * Update the process to generate api docs Signed-off-by: Yi Chen <[email protected]> * Update the workflow to generate api docs Signed-off-by: Yi Chen <[email protected]> * Use controller-gen to generate CRD and deep copy related methods Signed-off-by: Yi Chen <[email protected]> * Update helm chart CRDs Signed-off-by: Yi Chen <[email protected]> * Update workflow for building spark operator Signed-off-by: Yi Chen <[email protected]> * Update README.md Signed-off-by: Yi Chen <[email protected]> --------- Signed-off-by: Yi Chen <[email protected]>
1 parent 8894a4f commit 779ea3d

29 files changed

+45869
-17314
lines changed

.dockerignore

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,31 @@
1-
vendor
1+
.github/
2+
.idea/
3+
.vscode/
4+
bin/
5+
charts/
6+
docs/
7+
config/
8+
examples/
9+
hack/
10+
manifest/
11+
spark-docker/
12+
sparkctl/
13+
test/
14+
vendor/
15+
.dockerignore
16+
.DS_Store
17+
.gitignore
18+
.gitlab-ci.yaml
19+
.golangci.yaml
20+
.pre-commit-config.yaml
21+
ADOPTERS.md
22+
CODE_OF_CONDUCT.md
23+
codecov.ymal
24+
CONTRIBUTING.md
25+
cover.out
26+
Dockerfile
27+
LICENSE
28+
OWNERS
29+
PROJECT
30+
README.md
31+
test.sh

.github/workflows/main.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
with:
1919
fetch-depth: "0"
2020

21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version-file: go.mod
25+
2126
- name: The API documentation hasn't changed
2227
run: |
2328
make build-api-docs
@@ -42,7 +47,7 @@ jobs:
4247

4348
- name: build sparkctl
4449
run: |
45-
make all
50+
make build-sparkctl
4651
4752
build-spark-operator:
4853
runs-on: ubuntu-latest
@@ -57,18 +62,17 @@ jobs:
5762
with:
5863
go-version-file: "go.mod"
5964

60-
- name: Run gofmt check
61-
run: make fmt-check
65+
- name: Run go fmt check
66+
run: make go-fmt
6267

63-
- name: Run static analysis
64-
run: make static-analysis
68+
- name: Run go vet
69+
run: make go-vet
6570

6671
- name: Run unit tests
6772
run: make unit-test
6873

6974
- name: Build Spark-Operator Docker Image
70-
run: |
71-
docker build -t docker.io/kubeflow/spark-operator:latest .
75+
run: make docker-build IMAGE_TAG=latest
7276

7377
- name: Check changes in resources used in docker file
7478
run: |

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
.vscode/
1+
bin/
22
vendor/
3-
spark-operator
4-
.idea/
5-
**/*.iml
3+
cover.out
64
sparkctl/sparkctl
7-
spark-on-k8s-operator
85
sparkctl/sparkctl-linux-amd64
96
sparkctl/sparkctl-darwin-amd64
7+
**/*.iml
8+
9+
# Various IDEs
10+
.idea/
11+
.vscode/

0 commit comments

Comments
 (0)