-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: joyceliu <[email protected]>
- Loading branch information
joyceliu
committed
Jan 22, 2025
1 parent
3e56b09
commit 15fd53b
Showing
6,999 changed files
with
19,342 additions
and
2,034,508 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
bin | ||
example | ||
exp | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.dll | ||
*.so | ||
*.dylib | ||
*.tmp | ||
.DS_Store | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# IntelliJ | ||
.idea/ | ||
*.iml | ||
|
||
# Vscode files | ||
.vscode | ||
|
||
# rbac and manager config for example provider | ||
manager_image_patch.yaml-e | ||
manager_pull_policy.yaml-e | ||
|
||
# Sample config files auto-generated by kubebuilder | ||
config/samples | ||
|
||
# test results | ||
_artifacts | ||
|
||
# Used during parts of the build process. Files _should_ get cleaned up automatically. | ||
# This is also a good location for any temporary manfiests used during development | ||
tmp | ||
|
||
# Used by current object | ||
/_output/ | ||
dist/ |
File renamed without changes.
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,74 @@ | ||
name: GolangCILint | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize, reopened] | ||
|
||
# Remove all permissions from GITHUB_TOKEN except metadata. | ||
permissions: {} | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'kubesphere/kubekey' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23.3 | ||
|
||
- name: Sync mod | ||
run: make generate-modules | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.63.3 | ||
|
||
verify: | ||
name: verify | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'kubesphere/kubekey' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23.3 | ||
|
||
- name: Sync mod | ||
run: make generate-modules | ||
|
||
- name: Verify | ||
run: ALL_VERIFY_CHECKS="goimports releaser" make verify | ||
|
||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'kubesphere/kubekey' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23.3 | ||
|
||
- name: Sync mod | ||
run: make generate-modules | ||
|
||
- name: Test | ||
run: make test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,53 @@ | ||
name: BuildReleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v4*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'kubesphere/kubekey' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Prepare | ||
id: prepare | ||
run: | | ||
LDFLAGS=$(bash hack/version.sh) | ||
VERSION=latest | ||
if [[ $GITHUB_REF == refs/tags/* ]]; then | ||
VERSION=${GITHUB_REF#refs/tags/} | ||
fi | ||
echo "ldflags=${LDFLAGS}" >> "$GITHUB_OUTPUT" | ||
echo "version=${VERSION}" >> "$GITHUB_OUTPUT" | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.23.3 | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: v2.5.1 | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LDFLAGS: ${{ steps.prepare.outputs.ldflags }} | ||
|
||
- name: Upload Extra File | ||
run: | | ||
TAG=${{ steps.prepare.outputs.version }} | ||
if [[ $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
REGISTRY=docker.io/kubesphere TAG=$tag make generate | ||
else | ||
REGISTRY=docker.io/kubespheredev TAG=$tag make generate | ||
fi | ||
gh release upload "$TAG" config/capkk/infrastructure-components.yaml --clobber | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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.