Skip to content

Commit

Permalink
controlPlaneLoadBalancer
Browse files Browse the repository at this point in the history
Signed-off-by: joyceliu <[email protected]>
  • Loading branch information
joyceliu committed Jan 22, 2025
1 parent 3e56b09 commit 15fd53b
Show file tree
Hide file tree
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.
38 changes: 35 additions & 3 deletions .dockerignore
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.
1 change: 0 additions & 1 deletion .github/workflows/build-multiarch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3


- name: Build and push Docker images
run: |
tag=${{ steps.prepare.outputs.version }}
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/golangci-lint.yaml
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
74 changes: 0 additions & 74 deletions .github/workflows/golangci-lint.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/goreleaser.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/releaser.yaml
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 }}
42 changes: 0 additions & 42 deletions .github/workflows/sync-vendor.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
# Test binary, build with `go test -c`
*.test

# E2E test templates
test/e2e/data/infrastructure-kubekey/v1beta1/cluster-template*.yaml

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# IntelliJ
.idea/
*.iml
Expand Down
Loading

0 comments on commit 15fd53b

Please sign in to comment.