From d2b8fd866667ff5b70f92790b923bd8e204f8709 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 13 Oct 2023 22:25:35 +0000 Subject: [PATCH] fix(deps): update github.com/cilium/tetragon/pkg/k8s digest to 2ebcd9a Signed-off-by: renovate[bot] --- go.mod | 4 +-- go.sum | 8 +++--- .../v1alpha1/tracing_policy_types.go | 4 +++ .../pkg/k8s/apis/cilium.io/v1alpha1/types.go | 18 ++++++++++-- .../v1alpha1/zz_generated.deepcopy.go | 28 +++++++++++++++++++ .../v1alpha1/zz_generated.defaults.go | 20 +++++++++++++ .../pkg/k8s/client/clientset/versioned/doc.go | 7 ----- vendor/modules.txt | 6 ++-- 8 files changed, 76 insertions(+), 19 deletions(-) create mode 100644 vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.defaults.go delete mode 100644 vendor/github.com/cilium/tetragon/pkg/k8s/client/clientset/versioned/doc.go diff --git a/go.mod b/go.mod index ccdfcc8c8c..ffefb86d20 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/cilium/charts v0.0.0-20230929223035-2315d5f72a74 github.com/cilium/cilium v1.15.0-pre.1.0.20231006175630-73afc5fac2ad github.com/cilium/hubble v0.12.0 - github.com/cilium/tetragon/pkg/k8s v0.0.0-20231006135026-b3c6e53c5bc6 + github.com/cilium/tetragon/pkg/k8s v0.0.0-20231013170855-2ebcd9a562a0 github.com/cilium/workerpool v1.2.0 github.com/cloudflare/cfssl v1.6.4 github.com/go-openapi/strfmt v0.21.7 @@ -201,7 +201,7 @@ require ( golang.org/x/crypto v0.14.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.10.0 // indirect - golang.org/x/sync v0.3.0 // indirect + golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect diff --git a/go.sum b/go.sum index 47c99dfaf9..d020ae531e 100644 --- a/go.sum +++ b/go.sum @@ -110,8 +110,8 @@ github.com/cilium/hubble v0.12.0 h1:0Sc68tCa3jY1x4VqEWp63+r34/e5jmh4p3CWrf5afU8= github.com/cilium/hubble v0.12.0/go.mod h1:2mXoJZSczBewSVItWblNmCQaAjSr+NVnWTonwuVcrIk= github.com/cilium/proxy v0.0.0-20230928070035-6b9ff340bc40 h1:W4rmZzQl8Kf7ShlrJEotivf0sjetY73Y/eY8bIPtmyY= github.com/cilium/proxy v0.0.0-20230928070035-6b9ff340bc40/go.mod h1:p044XccCmONGIUbx3bJ7qvHXK0RcrdvIvbTGiu/RjUA= -github.com/cilium/tetragon/pkg/k8s v0.0.0-20231006135026-b3c6e53c5bc6 h1:NMe8vWrDu95ktq5554RbF3iqkShrj9l+ZAP+T3QvUHc= -github.com/cilium/tetragon/pkg/k8s v0.0.0-20231006135026-b3c6e53c5bc6/go.mod h1:OebWZCyuTZKOSqdxl1jcYEnLwn8eyncfksYdDXCe8Ks= +github.com/cilium/tetragon/pkg/k8s v0.0.0-20231013170855-2ebcd9a562a0 h1:gcH9LJ6ImB0yanYG3DoHBiOcWRLFPtN/i+o4uu0K4Kk= +github.com/cilium/tetragon/pkg/k8s v0.0.0-20231013170855-2ebcd9a562a0/go.mod h1:3e8vI8Sgm44MDo+mR9eWNm8JXYpWUnXznm2njgARtu0= github.com/cilium/workerpool v1.2.0 h1:Wc2iOPTvCgWKQXeq4L5tnx4QFEI+z5q1+bSpSS0cnAY= github.com/cilium/workerpool v1.2.0/go.mod h1:GOYJhwlnIjR+jWSDNBb5kw47G1H/XA9X4WOBpgr4pQU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= @@ -849,8 +849,8 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= diff --git a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go index b22742886c..0423ae4631 100644 --- a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go +++ b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go @@ -93,6 +93,10 @@ type TracingPolicySpec struct { // +kubebuilder:validation:Optional // A list of list specs. Lists []ListSpec `json:"lists,omitempty"` + + // +kubebuilder:validation:Optional + // A killer spec. + Killers []KillerSpec `json:"killers,omitempty"` } func (tp *TracingPolicy) TpName() string { diff --git a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/types.go b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/types.go index f9ce9ab521..c202953245 100644 --- a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/types.go +++ b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/types.go @@ -184,7 +184,7 @@ type ArgSelector struct { } type ActionSelector struct { - // +kubebuilder:validation:Enum=Post;FollowFD;UnfollowFD;Sigkill;CopyFD;Override;GetUrl;DnsLookup;NoPost;Signal;TrackSock;UntrackSock + // +kubebuilder:validation:Enum=Post;FollowFD;UnfollowFD;Sigkill;CopyFD;Override;GetUrl;DnsLookup;NoPost;Signal;TrackSock;UntrackSock;NotifyKiller // Action to execute. Action string `json:"action"` // +kubebuilder:validation:Optional @@ -209,9 +209,13 @@ type ActionSelector struct { // An arg index for the sock for trackSock and untrackSock actions ArgSock uint32 `json:"argSock"` // +kubebuilder:validation:Optional - // A time period within which repeated messages will not be posted. Can be specified in seconds (default or with - // 's' suffix), minutes ('m' suffix) or hours ('h' suffix). + // A time period within which repeated messages will not be posted. Can be + // specified in seconds (default or with 's' suffix), minutes ('m' suffix) + // or hours ('h' suffix). Only valid with the post action. RateLimit string `json:"rateLimit"` + // +kubebuilder:validation:Optional + // Enable stack trace export. Only valid with the post action. + StackTrace bool `json:"stackTrace"` } type TracepointSpec struct { @@ -250,6 +254,9 @@ type ListSpec struct { // +kubebuilder:validation:Optional // Pattern for 'generated' lists. Pattern *string `json:"pattern,omitempty"` + // +kubebuilder:validation:Optional + // List was validated + Validated bool `json:"validated"` } type PodInfoSpec struct { @@ -312,3 +319,8 @@ type PodInfoList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []PodInfo `json:"items"` } + +type KillerSpec struct { + // syscalls where killer is executed in + Syscalls []string `json:"syscalls"` +} diff --git a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.deepcopy.go b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.deepcopy.go index 4a397c1be5..6cc4449f79 100644 --- a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.deepcopy.go @@ -218,6 +218,27 @@ func (in *KProbeSpec) DeepCopy() *KProbeSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KillerSpec) DeepCopyInto(out *KillerSpec) { + *out = *in + if in.Syscalls != nil { + in, out := &in.Syscalls, &out.Syscalls + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KillerSpec. +func (in *KillerSpec) DeepCopy() *KillerSpec { + if in == nil { + return nil + } + out := new(KillerSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ListSpec) DeepCopyInto(out *ListSpec) { *out = *in @@ -607,6 +628,13 @@ func (in *TracingPolicySpec) DeepCopyInto(out *TracingPolicySpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Killers != nil { + in, out := &in.Killers, &out.Killers + *out = make([]KillerSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } diff --git a/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.defaults.go b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.defaults.go new file mode 100644 index 0000000000..e7625f0a8d --- /dev/null +++ b/vendor/github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1/zz_generated.defaults.go @@ -0,0 +1,20 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Tetragon + +// Code generated by defaulter-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/vendor/github.com/cilium/tetragon/pkg/k8s/client/clientset/versioned/doc.go b/vendor/github.com/cilium/tetragon/pkg/k8s/client/clientset/versioned/doc.go deleted file mode 100644 index 2da9695200..0000000000 --- a/vendor/github.com/cilium/tetragon/pkg/k8s/client/clientset/versioned/doc.go +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// Copyright Authors of Tetragon - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated clientset. -package versioned diff --git a/vendor/modules.txt b/vendor/modules.txt index 5301a16dd5..2009869ede 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -399,8 +399,8 @@ github.com/cilium/proxy/go/envoy/type/tracing/v3 github.com/cilium/proxy/go/envoy/type/v3 github.com/cilium/proxy/go/envoy/watchdog/v3 github.com/cilium/proxy/pkg/policy/api/kafka -# github.com/cilium/tetragon/pkg/k8s v0.0.0-20231006135026-b3c6e53c5bc6 -## explicit; go 1.21 +# github.com/cilium/tetragon/pkg/k8s v0.0.0-20231013170855-2ebcd9a562a0 +## explicit; go 1.21.1 github.com/cilium/tetragon/pkg/k8s/apis/cilium.io github.com/cilium/tetragon/pkg/k8s/apis/cilium.io/v1alpha1 github.com/cilium/tetragon/pkg/k8s/client/clientset/versioned @@ -1118,7 +1118,7 @@ golang.org/x/net/trace ## explicit; go 1.17 golang.org/x/oauth2 golang.org/x/oauth2/internal -# golang.org/x/sync v0.3.0 +# golang.org/x/sync v0.4.0 ## explicit; go 1.17 golang.org/x/sync/errgroup golang.org/x/sync/semaphore