Skip to content

Commit

Permalink
Merge branch 'main' into sanfern-dev-root-progs
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh Fernandes <santhosh.fernandes@gmail.com>
  • Loading branch information
sanfern committed Jun 16, 2023
2 parents 9963150 + 916e7ca commit 1617359
Show file tree
Hide file tree
Showing 12 changed files with 223 additions and 62 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Setup Go 1.18.6
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
with:
go-version: '1.18.6'

Expand All @@ -38,7 +38,7 @@ jobs:
echo "GOPATH=$gopath" >> $env:GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Format
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Setup Go 1.18.6
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
with:
go-version: '1.18.6'

Expand All @@ -37,7 +37,7 @@ jobs:
sudo apt-get install gcc libc-dev bash perl curl make
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Format
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Initialize CodeQL
uses: github/codeql-action/init@29b1f65c5e92e24fe6b6647da1eaabe529cec70f
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@29b1f65c5e92e24fe6b6647da1eaabe529cec70f
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a
4 changes: 2 additions & 2 deletions .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
persist-credentials: false

Expand Down Expand Up @@ -73,6 +73,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard so it will be visible
# at https://github.com/l3af-project/l3afd/security/code-scanning.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@29b1f65c5e92e24fe6b6647da1eaabe529cec70f
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a
with:
sarif_file: results.sarif
60 changes: 51 additions & 9 deletions docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 47 additions & 7 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,17 @@
"description": "Program stop command",
"type": "string"
},
"cmd_update": {
"description": "Program update config command",
"type": "string"
},
"config_args": {
"description": "Map of arguments to config command",
"$ref": "#/definitions/models.L3afDNFArgs"
"allOf": [
{
"$ref": "#/definitions/models.L3afDNFArgs"
}
]
},
"config_file_path": {
"description": "Config file location",
Expand All @@ -203,7 +211,11 @@
},
"map_args": {
"description": "Config BPF Map of arguments",
"$ref": "#/definitions/models.L3afDNFArgs"
"allOf": [
{
"$ref": "#/definitions/models.L3afDNFArgs"
}
]
},
"map_name": {
"description": "BPF map to store next program fd",
Expand Down Expand Up @@ -242,15 +254,35 @@
},
"start_args": {
"description": "Map of arguments to start command",
"$ref": "#/definitions/models.L3afDNFArgs"
"allOf": [
{
"$ref": "#/definitions/models.L3afDNFArgs"
}
]
},
"status_args": {
"description": "Map of arguments to status command",
"$ref": "#/definitions/models.L3afDNFArgs"
"allOf": [
{
"$ref": "#/definitions/models.L3afDNFArgs"
}
]
},
"stop_args": {
"description": "Map of arguments to stop command",
"$ref": "#/definitions/models.L3afDNFArgs"
"allOf": [
{
"$ref": "#/definitions/models.L3afDNFArgs"
}
]
},
"update_args": {
"description": "Map of arguments to update command",
"allOf": [
{
"$ref": "#/definitions/models.L3afDNFArgs"
}
]
},
"user_program_daemon": {
"description": "User program daemon or not",
Expand Down Expand Up @@ -319,7 +351,11 @@
"properties": {
"bpf_programs": {
"description": "List of eBPF program names to remove",
"$ref": "#/definitions/models.BPFProgramNames"
"allOf": [
{
"$ref": "#/definitions/models.BPFProgramNames"
}
]
},
"host_name": {
"description": "Host name or pod name",
Expand All @@ -336,7 +372,11 @@
"properties": {
"bpf_programs": {
"description": "List of bpf programs",
"$ref": "#/definitions/models.BPFPrograms"
"allOf": [
{
"$ref": "#/definitions/models.BPFPrograms"
}
]
},
"host_name": {
"description": "Host name or pod name",
Expand Down
28 changes: 21 additions & 7 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ definitions:
cmd_stop:
description: Program stop command
type: string
cmd_update:
description: Program update config command
type: string
config_args:
$ref: '#/definitions/models.L3afDNFArgs'
allOf:
- $ref: '#/definitions/models.L3afDNFArgs'
description: Map of arguments to config command
config_file_path:
description: Config file location
Expand All @@ -42,7 +46,8 @@ definitions:
description: User program is plugin or not
type: boolean
map_args:
$ref: '#/definitions/models.L3afDNFArgs'
allOf:
- $ref: '#/definitions/models.L3afDNFArgs'
description: Config BPF Map of arguments
map_name:
description: BPF map to store next program fd
Expand Down Expand Up @@ -71,14 +76,21 @@ definitions:
description: Sequence position in the chain
type: integer
start_args:
$ref: '#/definitions/models.L3afDNFArgs'
allOf:
- $ref: '#/definitions/models.L3afDNFArgs'
description: Map of arguments to start command
status_args:
$ref: '#/definitions/models.L3afDNFArgs'
allOf:
- $ref: '#/definitions/models.L3afDNFArgs'
description: Map of arguments to status command
stop_args:
$ref: '#/definitions/models.L3afDNFArgs'
allOf:
- $ref: '#/definitions/models.L3afDNFArgs'
description: Map of arguments to stop command
update_args:
allOf:
- $ref: '#/definitions/models.L3afDNFArgs'
description: Map of arguments to update command
user_program_daemon:
description: User program daemon or not
type: boolean
Expand Down Expand Up @@ -125,7 +137,8 @@ definitions:
models.L3afBPFProgramNames:
properties:
bpf_programs:
$ref: '#/definitions/models.BPFProgramNames'
allOf:
- $ref: '#/definitions/models.BPFProgramNames'
description: List of eBPF program names to remove
host_name:
description: Host name or pod name
Expand All @@ -137,7 +150,8 @@ definitions:
models.L3afBPFPrograms:
properties:
bpf_programs:
$ref: '#/definitions/models.BPFPrograms'
allOf:
- $ref: '#/definitions/models.BPFPrograms'
description: List of bpf programs
host_name:
description: Host name or pod name
Expand Down
Loading

0 comments on commit 1617359

Please sign in to comment.