-
Notifications
You must be signed in to change notification settings - Fork 898
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 native-sidecar-status
- Loading branch information
Showing
30 changed files
with
1,137 additions
and
740 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
with: | ||
python-version: 3.x | ||
- name: Set up Go | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
go-version: '1.22' | ||
- name: build | ||
|
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 |
---|---|---|
|
@@ -19,15 +19,6 @@ permissions: | |
contents: read | ||
|
||
jobs: | ||
event_file: | ||
name: 'Event File' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} | ||
lint-go: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
|
@@ -36,7 +27,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Checkout code | ||
|
@@ -51,7 +42,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
id: go | ||
|
@@ -72,31 +63,6 @@ jobs: | |
- name: Compile all packages | ||
run: make controller plugin | ||
|
||
- name: Test | ||
run: make test-unit | ||
|
||
- name: Upload Unit Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Unit Test Results | ||
path: | | ||
junit.xml | ||
- name: Generate code coverage artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: code-coverage | ||
path: coverage.out | ||
|
||
- name: Upload code coverage information to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
file: coverage.out | ||
fail_ci_if_error: false | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
codegen: | ||
name: Verify Codegen | ||
runs-on: ubuntu-latest | ||
|
@@ -106,7 +72,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Golang | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
# k8s codegen generates files into GOPATH location instead of the GitHub git checkout location | ||
|
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 |
---|---|---|
|
@@ -69,7 +69,7 @@ jobs: | |
if: ${{ github.ref_type != 'tag'}} | ||
|
||
- name: Setup Golang | ||
uses: actions/[email protected].1 # v3.5.0 | ||
uses: actions/[email protected].2 # v3.5.0 | ||
with: | ||
go-version: ${{ inputs.go-version }} | ||
|
||
|
@@ -78,8 +78,8 @@ jobs: | |
with: | ||
cosign-release: 'v2.2.0' | ||
|
||
- uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3.1.0 | ||
- uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0 | ||
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | ||
- uses: docker/setup-buildx-action@aa33708b10e362ff993539393ff100fa93ed6a27 # v3.5.0 | ||
|
||
- name: Setup tags for container image as a CSV type | ||
run: | | ||
|
@@ -106,31 +106,31 @@ jobs: | |
echo 'EOF' >> $GITHUB_ENV | ||
- name: Login to Quay.io | ||
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0 | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.quay_username }} | ||
password: ${{ secrets.quay_password }} | ||
if: ${{ inputs.quay_image_name && inputs.push }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0 | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ secrets.ghcr_username }} | ||
password: ${{ secrets.ghcr_password }} | ||
if: ${{ inputs.ghcr_image_name && inputs.push }} | ||
|
||
- name: Login to dockerhub Container Registry | ||
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0 | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
username: ${{ secrets.docker_username }} | ||
password: ${{ secrets.docker_password }} | ||
if: ${{ inputs.docker_image_name && inputs.push }} | ||
|
||
- name: Build and push container image | ||
id: image | ||
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c #v6.3.0 | ||
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 #v6.5.0 | ||
with: | ||
context: . | ||
platforms: ${{ inputs.platforms }} | ||
|
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 |
---|---|---|
|
@@ -90,15 +90,15 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Golang | ||
uses: actions/[email protected].1 # v4.0.1 | ||
uses: actions/[email protected].2 # v4.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3.1.0 | ||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0 | ||
uses: docker/setup-buildx-action@aa33708b10e362ff993539393ff100fa93ed6a27 # v3.5.0 | ||
|
||
- name: Generate release artifacts | ||
run: | | ||
|
@@ -107,7 +107,7 @@ jobs: | |
make manifests IMAGE_TAG=${{ github.ref_name }} | ||
- name: Draft release | ||
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v0.1.15 | ||
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v0.1.15 | ||
with: | ||
tag_name: ${{ github.event.inputs.tag }} | ||
draft: true | ||
|
@@ -163,7 +163,7 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Golang | ||
uses: actions/[email protected].1 # v4.0.0 | ||
uses: actions/[email protected].2 # v4.0.0 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
|
@@ -212,7 +212,7 @@ jobs: | |
/tmp/sbom.tar.gz | ||
- name: Upload SBOM and signature assets | ||
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v0.1.15 | ||
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v0.1.15 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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.