Skip to content

Commit

Permalink
Patch 1.6 (#532)
Browse files Browse the repository at this point in the history
* fixed ko in actions

* Bump google.golang.org/grpc from 1.49.0 to 1.53.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.49.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.49.0...v1.53.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* updated codegen

* Update vendor/google.golang.org/grpc/vet.sh

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update vendor/google.golang.org/grpc/regenerate.sh

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update vendor/google.golang.org/grpc/regenerate.sh

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* ran update codegen

* fixed go releaser

* added actions update

* updated codegen

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 7, 2023
1 parent bd8812c commit fac431d
Show file tree
Hide file tree
Showing 493 changed files with 24,662 additions and 11,038 deletions.
238 changes: 118 additions & 120 deletions .github/workflows/kind-e2e.yaml
Expand Up @@ -2,16 +2,15 @@ name: KinD e2e tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

concurrency:
group: kind-e2e-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:

e2e:
name: e2e tests
runs-on: ubuntu-latest
Expand All @@ -22,84 +21,84 @@ jobs:
timeout-minutes: 30

steps:
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Setup ko
uses: imjasonh/setup-ko@v0.4

- name: Check out code onto GOPATH
uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}

- name: Setup KinD Cluster with VMware sources.
working-directory: ./src/github.com/${{ github.repository }}
env:
KIND_VERSION: v0.12.0
run: |
set -x
curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64
chmod +x ./kind
sudo mv kind /usr/local/bin
# KinD configuration.
cat > kind.yaml <<EOF
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
- role: worker
EOF
# Create a cluster!
kind create cluster --config kind.yaml
# Build and Publish our test images to the docker daemon.
./test/upload-test-images.sh
# Build and Publish our containers to the docker daemon (including test assets)
export GO111MODULE=on
export GOFLAGS=-mod=vendor
ko apply -PRf config/
# webhook readiness probe can take some time to enter ready state
kubectl -n vmware-sources wait --timeout=3m --for=condition=Available deploy/vsphere-source-webhook
- name: Build vcsim image
working-directory: ./src/github.com/${{ github.repository }}
run: |
export GO111MODULE=on
echo "VCSIM_IMAGE=$(ko publish -B github.com/vmware/govmomi/vcsim)" >> $GITHUB_ENV
- name: Run E2E tests
working-directory: ./src/github.com/${{ github.repository }}
run: |
set -x
# For logstream to work.
export SYSTEM_NAMESPACE=vmware-sources
# Run the tests tagged as e2e on the KinD cluster.
go test -v -race -timeout=10m -tags=e2e github.com/${{ github.repository }}/test/e2e/...
- name: Debug
if: ${{ always() }}
run: |
kubectl get pods --all-namespaces
kubectl -n vmware-sources describe pods
kubectl -n vmware-sources get events
- name: Collect diagnostics
uses: chainguard-dev/actions/kind-diag@main
# Only upload logs on failure.
if: ${{ failure() }}
with:
cluster-resources: nodes
namespace-resources: pods,svc
artifact-name: logs
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Setup ko
uses: imjasonh/setup-ko@v0.6

- name: Check out code onto GOPATH
uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}

- name: Setup KinD Cluster with VMware sources.
working-directory: ./src/github.com/${{ github.repository }}
env:
KIND_VERSION: v0.12.0
run: |
set -x
curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64
chmod +x ./kind
sudo mv kind /usr/local/bin
# KinD configuration.
cat > kind.yaml <<EOF
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
- role: worker
EOF
# Create a cluster!
kind create cluster --config kind.yaml
# Build and Publish our test images to the docker daemon.
./test/upload-test-images.sh
# Build and Publish our containers to the docker daemon (including test assets)
export GO111MODULE=on
export GOFLAGS=-mod=vendor
ko apply -PRf config/
# webhook readiness probe can take some time to enter ready state
kubectl -n vmware-sources wait --timeout=3m --for=condition=Available deploy/vsphere-source-webhook
- name: Build vcsim image
working-directory: ./src/github.com/${{ github.repository }}
run: |
export GO111MODULE=on
echo "VCSIM_IMAGE=$(ko publish -B github.com/vmware/govmomi/vcsim)" >> $GITHUB_ENV
- name: Run E2E tests
working-directory: ./src/github.com/${{ github.repository }}
run: |
set -x
# For logstream to work.
export SYSTEM_NAMESPACE=vmware-sources
# Run the tests tagged as e2e on the KinD cluster.
go test -v -race -timeout=10m -tags=e2e github.com/${{ github.repository }}/test/e2e/...
- name: Debug
if: ${{ always() }}
run: |
kubectl get pods --all-namespaces
kubectl -n vmware-sources describe pods
kubectl -n vmware-sources get events
- name: Collect diagnostics
uses: chainguard-dev/actions/kind-diag@main
# Only upload logs on failure.
if: ${{ failure() }}
with:
cluster-resources: nodes
namespace-resources: pods,svc
artifact-name: logs

plugins:
name: kn plugins
Expand All @@ -110,42 +109,41 @@ jobs:
timeout-minutes: 10

steps:
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Setup ko
uses: imjasonh/setup-ko@v0.4

- name: Check out code
uses: actions/checkout@v3

- name: Setup KinD Cluster
env:
KIND_VERSION: v0.11.1
run: |
set -x
curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64
chmod +x ./kind
sudo mv kind /usr/local/bin
# Create cluster with defaults
kind create cluster
- name: Deploy vcsim
run: |
ko apply -PRf test/config
kubectl wait --timeout=1m --for=condition=Available deploy/vcsim
kubectl port-forward deploy/vcsim 8989:8989 &
- name: Build plugins
run: |
go build -o kn-vsphere ./plugins/vsphere/cmd/vsphere
- name: Test plugin
run: |
./kn-vsphere auth create --name vsphere-credentials --username user --password pass --verify-url 127.0.0.1:8989 --verify-insecure=true
kubectl get secret vsphere-credentials # assert exists
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Setup ko
uses: imjasonh/setup-ko@v0.6

- name: Check out code
uses: actions/checkout@v3

- name: Setup KinD Cluster
env:
KIND_VERSION: v0.11.1
run: |
set -x
curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64
chmod +x ./kind
sudo mv kind /usr/local/bin
# Create cluster with defaults
kind create cluster
- name: Deploy vcsim
run: |
ko apply -PRf test/config
kubectl wait --timeout=1m --for=condition=Available deploy/vcsim
kubectl port-forward deploy/vcsim 8989:8989 &
- name: Build plugins
run: |
go build -o kn-vsphere ./plugins/vsphere/cmd/vsphere
- name: Test plugin
run: |
./kn-vsphere auth create --name vsphere-credentials --username user --password pass --verify-url 127.0.0.1:8989 --verify-insecure=true
kubectl get secret vsphere-credentials # assert exists
4 changes: 2 additions & 2 deletions .github/workflows/knative-go-build.yaml
Expand Up @@ -7,8 +7,8 @@ name: Build

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

jobs:
build:
uses: knative/actions/.github/workflows/go-build.yaml@main
uses: knative/actions/.github/workflows/reusable-go-build.yaml@main
6 changes: 3 additions & 3 deletions .github/workflows/knative-go-test.yaml
Expand Up @@ -7,11 +7,11 @@ name: Test

on:
push:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

pull_request:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

jobs:
test:
uses: knative/actions/.github/workflows/go-test.yaml@main
uses: knative/actions/.github/workflows/reusable-go-test.yaml@main
6 changes: 3 additions & 3 deletions .github/workflows/knative-security.yaml
Expand Up @@ -3,14 +3,14 @@

# This file is automagically synced here from github.com/knative-sandbox/knobots

name: 'Security'
name: "Security"

on:
push:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

pull_request:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

jobs:
analyze:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/knative-stale.yaml
Expand Up @@ -2,13 +2,12 @@
# SPDX-License-Identifier: Apache-2.0

# This file is automagically synced here from github.com/knative-sandbox/knobots
name: 'Close stale'
name: "Close stale"

on:
schedule:
- cron: '0 1 * * *'
- cron: "0 1 * * *"

jobs:

stale:
uses: knative/actions/.github/workflows/stale.yaml@main
uses: knative/actions/.github/workflows/reusable-stale.yaml@main
5 changes: 2 additions & 3 deletions .github/workflows/knative-style.yaml
Expand Up @@ -7,9 +7,8 @@ name: Code Style

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

jobs:

style:
uses: knative/actions/.github/workflows/style.yaml@main
uses: knative/actions/.github/workflows/reusable-style.yaml@main
4 changes: 2 additions & 2 deletions .github/workflows/knative-verify.yaml
Expand Up @@ -19,8 +19,8 @@ name: Verify

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches: ["main", "release-*"]

jobs:
verify:
uses: knative/actions/.github/workflows/verify-codegen.yaml@main
uses: knative/actions/.github/workflows/reusable-verify-codegen.yaml@main

0 comments on commit fac431d

Please sign in to comment.