Skip to content

Commit

Permalink
api: Add workload_kind field to Pod message
Browse files Browse the repository at this point in the history
Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
  • Loading branch information
michi-covalent committed Sep 20, 2023
1 parent 067b84a commit d54609e
Show file tree
Hide file tree
Showing 8 changed files with 1,020 additions and 966 deletions.
1 change: 1 addition & 0 deletions api/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ https://github.com/opencontainers/runtime-spec/blob/main/config.md#createcontain
| container | [Container](#tetragon-Container) | | Container of the Pod from which the process that triggered the event originates. |
| pod_labels | [Pod.PodLabelsEntry](#tetragon-Pod-PodLabelsEntry) | repeated | Contains all the labels of the pod. Note that the labels field contains Cilium identity labels, which is a subset of pod labels. |
| workload | [string](#string) | | Kubernetes workload of the Pod. |
| workload_kind | [string](#string) | | Kubernetes workload kind (e.g. &#34;Deployment&#34;, &#34;DaemonSet&#34;) of the Pod. |



Expand Down
25 changes: 19 additions & 6 deletions api/v1/tetragon/codegen/eventchecker/eventchecker.pb.go

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

965 changes: 488 additions & 477 deletions api/v1/tetragon/tetragon.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions api/v1/tetragon/tetragon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ message Pod {
map<string, string> pod_labels = 5;
// Kubernetes workload of the Pod.
string workload = 6;
// Kubernetes workload kind (e.g. "Deployment", "DaemonSet") of the Pod.
string workload_kind = 7;
}

message Capabilities {
Expand Down
1 change: 1 addition & 0 deletions docs/content/en/docs/reference/grpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ https://github.com/opencontainers/runtime-spec/blob/main/config.md#createcontain
| container | [Container](#tetragon-Container) | | Container of the Pod from which the process that triggered the event originates. |
| pod_labels | [Pod.PodLabelsEntry](#tetragon-Pod-PodLabelsEntry) | repeated | Contains all the labels of the pod. Note that the labels field contains Cilium identity labels, which is a subset of pod labels. |
| workload | [string](#string) | | Kubernetes workload of the Pod. |
| workload_kind | [string](#string) | | Kubernetes workload kind (e.g. &#34;Deployment&#34;, &#34;DaemonSet&#34;) of the Pod. |

<a name="tetragon-Pod-PodLabelsEntry"></a>

Expand Down

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

Loading

0 comments on commit d54609e

Please sign in to comment.