-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
2,549 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text=auto | ||
pkg/crds/client linguist-generated=true | ||
zz_generated*.go linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../crds/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.12.0 | ||
name: linkrules.kelemetry.kubewharf.io | ||
spec: | ||
group: kelemetry.kubewharf.io | ||
names: | ||
kind: LinkRule | ||
listKind: LinkRuleList | ||
plural: linkrules | ||
singular: linkrule | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: "LinkRule instructs Kelemetry to display multiple objects (the | ||
\"source\" and the \"target\") in the same trace by looking up the \"target\" | ||
when the span of the \"source\" object gets created. \n LinkRule is bidirectional. | ||
Once the link is recorded, searching \"source\" or \"target\" would both | ||
display the other trace in the link as long as the link is not filtered | ||
out by tfconfig." | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
link: | ||
description: Link specifies how the two objects are linked together. | ||
properties: | ||
class: | ||
description: "If Class is non empty, a pseudospan named the given | ||
value is inserted in the hierarchy between the target and source | ||
objects. \n Multiple links with the same nonempty Class share the | ||
same pseudospan." | ||
type: string | ||
targetRole: | ||
default: Child | ||
description: "TargetRole selects the display position of the target | ||
object. \n One of the target objects will be arbitrarily selected | ||
if there are multiple links with preferTargetParent=true." | ||
type: string | ||
required: | ||
- targetRole | ||
type: object | ||
metadata: | ||
type: object | ||
sourceFilter: | ||
description: SourceFilter determines whether a source object matches this | ||
rule. | ||
properties: | ||
resources: | ||
description: Resources are the possible resource types that a child | ||
object may belong to. | ||
items: | ||
description: GroupResource specifies a Group and a Resource, but | ||
does not force a version. This is useful for identifying concepts | ||
during lookup stages without having partially valid types | ||
properties: | ||
group: | ||
type: string | ||
resource: | ||
type: string | ||
required: | ||
- group | ||
- resource | ||
type: object | ||
type: array | ||
selector: | ||
description: Selector selects matching child objects by label. | ||
properties: | ||
matchExpressions: | ||
description: matchExpressions is a list of label selector requirements. | ||
The requirements are ANDed. | ||
items: | ||
description: A label selector requirement is a selector that | ||
contains values, a key, and an operator that relates the key | ||
and values. | ||
properties: | ||
key: | ||
description: key is the label key that the selector applies | ||
to. | ||
type: string | ||
operator: | ||
description: operator represents a key's relationship to | ||
a set of values. Valid operators are In, NotIn, Exists | ||
and DoesNotExist. | ||
type: string | ||
values: | ||
description: values is an array of string values. If the | ||
operator is In or NotIn, the values array must be non-empty. | ||
If the operator is Exists or DoesNotExist, the values | ||
array must be empty. This array is replaced during a strategic | ||
merge patch. | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- key | ||
- operator | ||
type: object | ||
type: array | ||
matchLabels: | ||
additionalProperties: | ||
type: string | ||
description: matchLabels is a map of {key,value} pairs. A single | ||
{key,value} in the matchLabels map is equivalent to an element | ||
of matchExpressions, whose key field is "key", the operator | ||
is "In", and the values array contains only "value". The requirements | ||
are ANDed. | ||
type: object | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
type: object | ||
targetTemplate: | ||
description: TargetTemplate indicates how to find the target object from | ||
a matched source object. | ||
properties: | ||
clusterTemplate: | ||
description: "ClusterTemplate is a Go text template string to compute | ||
the cluster name of the target object. \n The context of the template | ||
is the child object that matched the rule. \n If empty or unspecified, | ||
uses the cluster of the child object." | ||
type: string | ||
group: | ||
type: string | ||
nameTemplate: | ||
description: "NameTemplate is a Go text template string to compute | ||
the target object name. \n The context of the template is the child | ||
object that matched the rule." | ||
type: string | ||
namespaceTemplate: | ||
description: "NamespaceTemplate is a Go text template string to compute | ||
the target object name. \n If the namespace is empty, the target | ||
object is expected to be cluster-scoped." | ||
type: string | ||
resource: | ||
type: string | ||
version: | ||
type: string | ||
required: | ||
- group | ||
- nameTemplate | ||
- namespaceTemplate | ||
- resource | ||
- version | ||
type: object | ||
required: | ||
- link | ||
- sourceFilter | ||
- targetTemplate | ||
type: object | ||
served: true | ||
storage: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: kelemetry.kubewharf.io/v1alpha1 | ||
kind: LinkRule | ||
metadata: | ||
name: helm-release | ||
sourceFilter: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/managed-by: Helm | ||
targetTemplate: | ||
group: "" | ||
version: v1 | ||
resource: secrets | ||
namespaceTemplate: '{{.metadata.annotations["meta.helm.sh/release-namespace"]}}' | ||
nameTemplate: '{{.metadata.annotations["meta.helm.sh/release-name"]}}' | ||
link: | ||
targetRole: Parent | ||
class: templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.