Skip to content

Commit

Permalink
fix typo and dependency problem
Browse files Browse the repository at this point in the history
Signed-off-by: 守辰 <[email protected]>
  • Loading branch information
furykerry committed Feb 8, 2025
1 parent 58fd993 commit f9ea54d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ jobs:
git status
- name: Publish Unit Test Coverage
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
file: cover.out
- name: Check diff
run: '[[ -z $(git status -s) ]] || (printf "Existing modified/untracked files.\nPlease run \"make generate manifests\" and push again.\n"; exit 1)'
6 changes: 3 additions & 3 deletions .github/workflows/e2e-1.28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,15 @@ jobs:
clonesetAndInplace:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Kind Cluster
uses: helm/[email protected]
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
with:
node_image: ${{ env.KIND_IMAGE }}
cluster_name: ${{ env.KIND_CLUSTER_NAME }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-1.30.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ jobs:
clonesetAndInplace:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Kind Cluster
uses: helm/[email protected]
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
node_image: ${{ env.KIND_IMAGE }}
cluster_name: ${{ env.KIND_CLUSTER_NAME }}
Expand Down
26 changes: 13 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/runc v1.2.0-rc.1 // indirect
github.com/opencontainers/runc v1.2.0-rc.3 // indirect
github.com/opencontainers/selinux v1.11.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand Down Expand Up @@ -150,28 +150,28 @@ replace (
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.30.9
k8s.io/apimachinery => k8s.io/apimachinery v0.30.9
k8s.io/apiserver => k8s.io/apiserver v0.30.9
k8s.io/cli-runtime => k8s.io/cli-runtime v0.30.9
k8s.io/client-go => k8s.io/client-go v0.30.9
k8s.io/cloud-provider => k8s.io/cloud-provider v0.30.9
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.30.9
k8s.io/code-generator => k8s.io/code-generator v0.30.9
k8s.io/component-base => k8s.io/component-base v0.30.9
k8s.io/component-helpers => k8s.io/component-helpers v0.30.9
k8s.io/controller-manager => k8s.io/controller-manager v0.30.9
k8s.io/cri-api => k8s.io/cri-api v0.30.9
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.30.9
k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.30.9
k8s.io/endpointslice => k8s.io/endpointslice v0.30.9
k8s.io/kms => k8s.io/kms v0.30.9
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.30.9
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.30.9
k8s.io/kube-proxy => k8s.io/kube-proxy v0.30.9
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.30.9
k8s.io/kubectl => k8s.io/kubectl v0.30.9
k8s.io/kubelet => k8s.io/kubelet v0.30.9
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.30.9
k8s.io/metrics => k8s.io/metrics v0.30.9
k8s.io/mount-utils => k8s.io/mount-utils v0.30.9
k8s.io/cli-runtime => k8s.io/cli-runtime v0.30.9
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.30.9
k8s.io/endpointslice => k8s.io/endpointslice v0.30.9
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.30.9
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.30.9
k8s.io/kube-proxy => k8s.io/kube-proxy v0.30.9
k8s.io/kubectl => k8s.io/kubectl v0.30.9
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.30.9
k8s.io/metrics => k8s.io/metrics v0.30.9
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.30.9
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.30.9
)
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.30.9
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.30.9
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ github.com/onsi/gomega v1.33.0 h1:snPCflnZrpMsy94p4lXVEkHo12lmPnc3vY5XBbreexE=
github.com/onsi/gomega v1.33.0/go.mod h1:+925n5YtiFsLzzafLUHzVMBpvvRAzrydIBiSIxjX3wY=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/runc v1.2.0-rc.1 h1:SMjop2pxxYRTfKdsigna/8xRoaoCfIQfD2cVuOb64/o=
github.com/opencontainers/runc v1.2.0-rc.1/go.mod h1:m9JwxfHzXz5YTTXBQr7EY9KTuazFAGPyMQx2nRR3vTw=
github.com/opencontainers/runc v1.2.0-rc.3 h1:5vQhejBp4S5w1DwFZ7L3CSOQX9cmcc8JKFy/mOBTJlo=
github.com/opencontainers/runc v1.2.0-rc.3/go.mod h1:HADgqJU4nqAmOpe+uYBTJ4ZRvjks3ptCjKXp1pHqmCc=
github.com/opencontainers/selinux v1.11.0 h1:+5Zbo97w3Lbmb3PeqQtpmTkMwsW5nRI3YaLpt7tQ7oU=
github.com/opencontainers/selinux v1.11.0/go.mod h1:E5dMC3VPuVvVHDYmi78qvhJp8+M586T4DlDRYpFkyec=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestPodEventHandler(t *testing.T) {
key, _ := createQ.Get()
nsn, _ := key.(reconcile.Request)
if nsn.Namespace != createPod.Namespace && nsn.Name != injectWorkloadSpread.Name {
t.Errorf("matche WorkloadSpread %s/%s failed", createPod.Namespace, injectWorkloadSpread.Name)
t.Errorf("matching WorkloadSpread %s/%s failed", createPod.Namespace, injectWorkloadSpread.Name)
}

// update
Expand Down Expand Up @@ -201,7 +201,7 @@ func TestPodEventHandler(t *testing.T) {
key, _ = updateQ.Get()
nsn, _ = key.(reconcile.Request)
if nsn.Namespace != newPod.Namespace && nsn.Name != injectWorkloadSpread.Name {
t.Errorf("matche WorkloadSpread %s/%s failed", newPod.Namespace, injectWorkloadSpread.Name)
t.Errorf("matching WorkloadSpread %s/%s failed", newPod.Namespace, injectWorkloadSpread.Name)
}

// delete
Expand All @@ -224,7 +224,7 @@ func TestPodEventHandler(t *testing.T) {
key, _ = deleteQ.Get()
nsn, _ = key.(reconcile.Request)
if nsn.Namespace != deletePod.Namespace && nsn.Name != injectWorkloadSpread.Name {
t.Errorf("matche WorkloadSpread %s/%s failed", deletePod.Namespace, injectWorkloadSpread.Name)
t.Errorf("matching WorkloadSpread %s/%s failed", deletePod.Namespace, injectWorkloadSpread.Name)
}
}

Expand Down

0 comments on commit f9ea54d

Please sign in to comment.