Skip to content

Commit

Permalink
crd: Added shortnames for Tetragon CRDs
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <phisch@cisco.com>
  • Loading branch information
PhilipSchmid committed Nov 1, 2024
1 parent 7dbb805 commit 8af7b2e
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 8 deletions.
2 changes: 2 additions & 0 deletions install/kubernetes/tetragon/crds-yaml/cilium.io_podinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: PodInfo
listKind: PodInfoList
plural: podinfo
shortNames:
- pi
singular: podinfo
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: TracingPolicy
listKind: TracingPolicyList
plural: tracingpolicies
shortNames:
- tp
singular: tracingpolicy
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: TracingPolicyNamespaced
listKind: TracingPolicyNamespacedList
plural: tracingpoliciesnamespaced
shortNames:
- tpn
singular: tracingpolicynamespaced
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: PodInfo
listKind: PodInfoList
plural: podinfo
shortNames:
- pi
singular: podinfo
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: TracingPolicy
listKind: TracingPolicyList
plural: tracingpolicies
shortNames:
- tp
singular: tracingpolicy
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: TracingPolicyNamespaced
listKind: TracingPolicyNamespacedList
plural: tracingpoliciesnamespaced
shortNames:
- tpn
singular: tracingpolicynamespaced
scope: Namespaced
versions:
Expand Down
4 changes: 2 additions & 2 deletions pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (
// +genclient:noStatus
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:singular="tracingpolicy",path="tracingpolicies",scope="Cluster",shortName={}
// +kubebuilder:resource:singular="tracingpolicy",path="tracingpolicies",scope="Cluster",shortName={tp}
type TracingPolicy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Expand All @@ -48,7 +48,7 @@ type TracingPolicy struct {
// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:singular="tracingpolicynamespaced",path="tracingpoliciesnamespaced",scope="Namespaced",shortName={}
// +kubebuilder:resource:singular="tracingpolicynamespaced",path="tracingpoliciesnamespaced",scope="Namespaced",shortName={tpn}
type TracingPolicyNamespaced struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/apis/cilium.io/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ type WorkloadObjectMeta struct {
// +genclient
// +kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:singular="podinfo",path="podinfo",scope="Namespaced",shortName={}
// +kubebuilder:resource:singular="podinfo",path="podinfo",scope="Namespaced",shortName={pi}

// PodInfo is the Scheme for the Podinfo API
type PodInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/apis/cilium.io/v1alpha1/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ package v1alpha1
// Used to determine if CRD needs to be updated in cluster
//
// Developers: Bump patch for each change in the CRD schema.
const CustomResourceDefinitionSchemaVersion = "1.3.5"
const CustomResourceDefinitionSchemaVersion = "1.3.6"

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

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

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

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

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

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

0 comments on commit 8af7b2e

Please sign in to comment.