Skip to content

Commit

Permalink
cilium, api: extend openapi to dump clock source status
Browse files Browse the repository at this point in the history
Dump info on whether we use ktime or jiffies in BPF datapath.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
borkmann committed Nov 17, 2020
1 parent 3ce28c0 commit d170ce8
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 0 deletions.
108 changes: 108 additions & 0 deletions api/v1/models/clock_source.go

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

25 changes: 25 additions & 0 deletions api/v1/models/status_response.go

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

21 changes: 21 additions & 0 deletions api/v1/models/zz_generated.deepcopy.go

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

19 changes: 19 additions & 0 deletions api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,9 @@ definitions:
host-routing:
description: Status of host routing
"$ref": "#/definitions/HostRouting"
clock-source:
description: Status of clock source
"$ref": "#/definitions/ClockSource"
stale:
description: List of stale information in the status
type: object
Expand Down Expand Up @@ -2500,6 +2503,22 @@ definitions:
snat-exclusion-cidr:
description: Any packet sent to IP addr belonging to CIDR will not be SNAT'd
type: string
ClockSource:
description: |-
Status of BPF clock source
+k8s:deepcopy-gen=true
type: object
properties:
mode:
description: Datapath clock source
type: string
enum:
- ktime
- jiffies
hertz:
description: Kernel Hz
type: integer
HostRouting:
description: |-
Status of host routing
Expand Down
44 changes: 44 additions & 0 deletions api/v1/server/embedded_spec.go

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

0 comments on commit d170ce8

Please sign in to comment.