-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-workload-charts
- Loading branch information
Showing
233 changed files
with
7,793 additions
and
4,690 deletions.
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
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
- uses: helm/[email protected] | ||
- uses: helm/[email protected] | ||
with: | ||
node_image: kindest/node:v1.29.0 | ||
node_image: kindest/node:v1.30.2 | ||
- run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
release: | ||
|
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
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 |
---|---|---|
|
@@ -23,24 +23,31 @@ jobs: | |
name: Lint and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: azure/[email protected] | ||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.12.1 | ||
- uses: helm/[email protected] | ||
- id: list-changed | ||
- name: Set up Chart Testing CLI | ||
uses: helm/[email protected] | ||
- name: Change Detection | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --config=.ct.yml --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --config=.ct.yml --target-branch ${{ github.event.repository.default_branch }} | ||
- if: steps.list-changed.outputs.changed == 'true' | ||
- name: Lint Chart | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --config=.ct.yml --target-branch ${{ github.event.repository.default_branch }} --check-version-increment=false | ||
- name: Set up Kind | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/[email protected] | ||
with: | ||
node_image: kindest/node:v1.29.0 | ||
- if: steps.list-changed.outputs.changed == 'true' | ||
node_image: kindest/node:v1.30.2 | ||
- name: Install Chart | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} |
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 |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5.0.1 | ||
- uses: actions/setup-go@v5.2.0 | ||
with: | ||
go-version-file: modules/api/go.mod | ||
check-latest: true | ||
|
@@ -81,7 +81,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5.0.1 | ||
- uses: actions/setup-go@v5.2.0 | ||
with: | ||
go-version-file: modules/api/go.mod | ||
check-latest: true | ||
|
@@ -99,7 +99,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5.0.1 | ||
- uses: actions/setup-go@v5.2.0 | ||
with: | ||
go-version-file: modules/api/go.mod | ||
check-latest: true | ||
|
@@ -116,14 +116,71 @@ jobs: | |
fetch-depth: 0 | ||
- run: make image | ||
|
||
publish: | ||
name: Build and push API container | ||
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' # not a fork and not dependabot | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
packages: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Docket meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
ghcr.io/kubernetes/dashboard-api | ||
docker.io/kubernetesui/dashboard-api | ||
tags: | | ||
type=sha | ||
type=ref,event=pr | ||
type=ref,event=branch | ||
type=semver,pattern={{version}},value=${{ needs.prepare.outputs.new_release_version }} | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
- name: set up Docker Buildx | ||
uses: docker/[email protected] | ||
with: | ||
config: .github/buildkitd.toml | ||
- name: Login to Docker | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_RELEASE_USER }} | ||
password: ${{ secrets.DOCKER_RELEASE_PASS }} | ||
- name: Login to GHCR | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push | ||
id: push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: modules | ||
file: modules/api/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64 | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
build-args: | | ||
VERSION=${{ steps.meta.outputs.version || 'latest' }} | ||
unit-tests: | ||
name: Unit tests with coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5.0.1 | ||
- uses: actions/setup-go@v5.2.0 | ||
with: | ||
go-version-file: modules/go.work | ||
check-latest: true | ||
|
@@ -133,7 +190,7 @@ jobs: | |
- working-directory: modules/web | ||
run: yarn | ||
- run: PATH=$PATH:$GOPATH/bin make coverage | ||
- uses: codecov/codecov-action@v4.5.0 | ||
- uses: codecov/codecov-action@v5.1.1 | ||
with: | ||
directory: ./.tmp | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -148,8 +205,8 @@ jobs: | |
# fetch-depth: 0 | ||
# - uses: helm/[email protected] | ||
# with: | ||
# node_image: kindest/node:v1.29.2 | ||
# - uses: actions/setup-go@v5.0.1 | ||
# node_image: kindest/node:v1.30.2 | ||
# - uses: actions/setup-go@v5.2.0 | ||
# with: | ||
# go-version-file: modules/api/go.mod | ||
# check-latest: true | ||
|
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
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
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 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.