Skip to content

Commit

Permalink
merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarwal0009 committed Aug 23, 2024
2 parents 66d69a5 + ad7a193 commit 5acef5d
Show file tree
Hide file tree
Showing 20 changed files with 754 additions and 55 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: "CodeQL"
on:
push:
branches:
- master
- release/*
- master
- release/*
pull_request:
branches:
- master
- release/*
- master
- release/*
types:
- opened
- reopened
Expand All @@ -32,20 +32,21 @@ jobs:
contents: read
security-events: write
steps:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: ./codeql/
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
5 changes: 4 additions & 1 deletion .pipelines/cni/cilium/cilium-overlay-load-test-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,13 @@ stages:
os: ${{ parameters.os }}
cni: cilium
dependsOn: cni_tests
datapath: true
dns: true
portforward: true
service: true
${{ if eq(parameters.dualstackVersion, '') }}:
datapath: true
${{ else }}:
dualstack: true
- job: failedE2ELogs
displayName: "Failure Logs"
dependsOn:
Expand Down
10 changes: 10 additions & 0 deletions cni/network/invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ func (ipamAddResult IPAMAddResult) PrettyString() string {
}
return pStr
}

// shallow copy options from one map to a new options map
func (ipamAddConfig IPAMAddConfig) shallowCopyIpamAddConfigOptions() map[string]interface{} {
res := map[string]interface{}{}
for k, v := range ipamAddConfig.options {
// only support primitive type
res[k] = v
}
return res
}
Loading

0 comments on commit 5acef5d

Please sign in to comment.