Skip to content

Commit

Permalink
Remove pod.labels field
Browse files Browse the repository at this point in the history
The pod.labels field got deprecated in v1.0. Let's remove it for v1.1.

Ref: #1363

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent committed Dec 6, 2023
1 parent b42efe4 commit 662702a
Show file tree
Hide file tree
Showing 13 changed files with 1,571 additions and 1,753 deletions.
3 changes: 1 addition & 2 deletions api/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,8 @@ https://github.com/opencontainers/runtime-spec/blob/main/config.md#createcontain
| ----- | ---- | ----- | ----------- |
| namespace | [string](#string) | | Kubernetes namespace of the Pod. |
| name | [string](#string) | | Name of the Pod. |
| labels | [string](#string) | repeated | **Deprecated.** Cilium identity labels of the Pod. This field is deprecated. Use pod_labels instead. |
| 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. |
| pod_labels | [Pod.PodLabelsEntry](#tetragon-Pod-PodLabelsEntry) | repeated | Contains all the labels of the pod. |
| 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
46 changes: 0 additions & 46 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.

1,059 changes: 522 additions & 537 deletions api/v1/tetragon/tetragon.pb.go

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions api/v1/tetragon/tetragon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,10 @@ message Pod {
string namespace = 1;
// Name of the Pod.
string name = 2;
// Cilium identity labels of the Pod.
// This field is deprecated. Use pod_labels instead.
repeated string labels = 3 [deprecated = true];
// Container of the Pod from which the process that triggered the event
// originates.
Container container = 4;
// Contains all the labels of the pod. Note that the labels field contains
// Cilium identity labels, which is a subset of pod labels.
// Contains all the labels of the pod.
map<string, string> pod_labels = 5;
// Kubernetes workload of the Pod.
string workload = 6;
Expand Down
Loading

0 comments on commit 662702a

Please sign in to comment.