-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added e2e tests for extensions
Signed-off-by: Ankit152 <[email protected]>
- Loading branch information
Showing
7 changed files
with
220 additions
and
5 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,16 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action) | ||
component: collector | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: support for creating a service for extensions when ports are specified. | ||
|
||
# One or more tracking issues related to the change | ||
issues: [3460] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
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
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,148 @@ | ||
apiVersion: v1 | ||
items: | ||
- apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jaeger-inmemory-collector | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- ports: | ||
- containerPort: 16686 | ||
name: jaeger | ||
protocol: TCP | ||
- containerPort: 8888 | ||
name: metrics | ||
protocol: TCP | ||
- containerPort: 4317 | ||
name: otlp-grpc | ||
protocol: TCP | ||
- containerPort: 4318 | ||
name: otlp-http | ||
protocol: TCP | ||
kind: List | ||
metadata: | ||
resourceVersion: "" | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: jaeger-inmemory-collector | ||
spec: | ||
ports: | ||
- name: jaeger | ||
port: 16686 | ||
protocol: TCP | ||
targetPort: 16686 | ||
- appProtocol: grpc | ||
name: otlp-grpc | ||
port: 4317 | ||
protocol: TCP | ||
targetPort: 4317 | ||
- appProtocol: http | ||
name: otlp-http | ||
port: 4318 | ||
protocol: TCP | ||
targetPort: 4318 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
service.beta.openshift.io/serving-cert-secret-name: jaeger-inmemory-collector-headless-tls | ||
labels: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/managed-by: opentelemetry-operator | ||
app.kubernetes.io/name: jaeger-inmemory-collector | ||
app.kubernetes.io/part-of: opentelemetry | ||
app.kubernetes.io/version: latest | ||
operator.opentelemetry.io/collector-headless-service: Exists | ||
operator.opentelemetry.io/collector-service-type: headless | ||
name: jaeger-inmemory-collector-headless | ||
ownerReferences: | ||
- apiVersion: opentelemetry.io/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: OpenTelemetryCollector | ||
name: jaeger-inmemory | ||
spec: | ||
clusterIP: None | ||
clusterIPs: | ||
- None | ||
internalTrafficPolicy: Cluster | ||
ipFamilies: | ||
- IPv4 | ||
ipFamilyPolicy: SingleStack | ||
ports: | ||
- name: jaeger | ||
port: 16686 | ||
protocol: TCP | ||
targetPort: 16686 | ||
- appProtocol: grpc | ||
name: otlp-grpc | ||
port: 4317 | ||
protocol: TCP | ||
targetPort: 4317 | ||
- appProtocol: http | ||
name: otlp-http | ||
port: 4318 | ||
protocol: TCP | ||
targetPort: 4318 | ||
selector: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/managed-by: opentelemetry-operator | ||
app.kubernetes.io/part-of: opentelemetry | ||
sessionAffinity: None | ||
type: ClusterIP | ||
status: | ||
loadBalancer: {} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/managed-by: opentelemetry-operator | ||
app.kubernetes.io/name: jaeger-inmemory-collector-monitoring | ||
app.kubernetes.io/part-of: opentelemetry | ||
app.kubernetes.io/version: latest | ||
operator.opentelemetry.io/collector-monitoring-service: Exists | ||
operator.opentelemetry.io/collector-service-type: monitoring | ||
name: jaeger-inmemory-collector-monitoring | ||
spec: | ||
ports: | ||
- name: monitoring | ||
port: 8888 | ||
protocol: TCP | ||
targetPort: 8888 | ||
selector: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/managed-by: opentelemetry-operator | ||
app.kubernetes.io/part-of: opentelemetry | ||
sessionAffinity: None | ||
type: ClusterIP | ||
status: | ||
loadBalancer: {} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: "jaeger-inmemory-collector-extension" | ||
labels: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/managed-by: opentelemetry-operator | ||
app.kubernetes.io/part-of: opentelemetry | ||
app.kubernetes.io/version: latest | ||
operator.opentelemetry.io/collector-service-type: extension | ||
spec: | ||
selector: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/managed-by: opentelemetry-operator | ||
app.kubernetes.io/part-of: opentelemetry | ||
ports: | ||
- name: "jaeger-query" | ||
port: 16686 | ||
targetPort: 16686 | ||
status: | ||
loadBalancer: {} |
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,30 @@ | ||
apiVersion: opentelemetry.io/v1beta1 | ||
kind: OpenTelemetryCollector | ||
metadata: | ||
name: jaeger-inmemory | ||
spec: | ||
image: jaegertracing/jaeger-snapshot:latest | ||
config: | ||
service: | ||
extensions: [jaeger_storage, jaeger_query] | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
exporters: [jaeger_storage_exporter] | ||
extensions: | ||
jaeger_query: | ||
storage: | ||
traces: memstore | ||
jaeger_storage: | ||
backends: | ||
memstore: | ||
memory: | ||
max_traces: 100000 | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
exporters: | ||
jaeger_storage_exporter: | ||
trace_storage: memstore |
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,14 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
creationTimestamp: null | ||
name: extension-test | ||
spec: | ||
steps: | ||
- name: step-00 | ||
try: | ||
- apply: | ||
file: 00-install.yaml | ||
- assert: | ||
file: 00-assert.yaml |