diff --git a/pkg/instrumentation/annotation_test.go b/pkg/instrumentation/annotation_test.go index 511a71adea..cbdd594264 100644 --- a/pkg/instrumentation/annotation_test.go +++ b/pkg/instrumentation/annotation_test.go @@ -86,6 +86,25 @@ func TestEffectiveAnnotationValue(t *testing.T) { }, }, + { + "pod-has-concrete-instance-from-a-specified-namespace", + "some-instance-from-pod", + corev1.Pod{ + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + annotationInjectJava: "specified-namespace/some-instance-from-pod", + }, + }, + }, + corev1.Namespace{ + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + annotationInjectJava: "some-instance", + }, + }, + }, + }, + { "pod-has-explicit-false", "false", diff --git a/tests/e2e-instrumentation/instrumentation-java-other-ns/03-assert.yaml b/tests/e2e-instrumentation/instrumentation-java-other-ns/03-assert.yaml index 99252fdf9c..c3ad288ed1 100644 --- a/tests/e2e-instrumentation/instrumentation-java-other-ns/03-assert.yaml +++ b/tests/e2e-instrumentation/instrumentation-java-other-ns/03-assert.yaml @@ -1,6 +1,7 @@ apiVersion: v1 kind: Pod metadata: + namespace: my-other-ns annotations: sidecar.opentelemetry.io/inject: "true" instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" @@ -50,3 +51,9 @@ spec: drop: ["ALL"] status: phase: Running +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java + namespace: my-other-ns \ No newline at end of file diff --git a/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/01-cleanup-other-ns.yaml b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/01-cleanup-other-ns.yaml new file mode 100644 index 0000000000..ee6bc7f70e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/01-cleanup-other-ns.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: v1 + kind: Namespace + name: my-other-ns diff --git a/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/02-install-collector.yaml b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/02-install-collector.yaml new file mode 100644 index 0000000000..b03a72e60e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/02-install-collector.yaml @@ -0,0 +1,32 @@ +apiVersion: opentelemetry.io/v1alpha1 +kind: OpenTelemetryCollector +metadata: + name: sidecar +spec: + mode: sidecar + config: | + receivers: + otlp: + protocols: + grpc: + http: + processors: + + exporters: + logging: + + service: + pipelines: + traces: + receivers: [otlp] + processors: [] + exporters: [logging] +--- +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +commands: + # Annotate the namespace to allow the application to run using an specific group and user in OpenShift + # https://docs.openshift.com/dedicated/authentication/managing-security-context-constraints.html + # This annotation has no effect in Kubernetes + - command: kubectl annotate namespace ${NAMESPACE} openshift.io/sa.scc.uid-range=1000/1000 --overwrite + - command: kubectl annotate namespace ${NAMESPACE} openshift.io/sa.scc.supplemental-groups=2000/1000 --overwrite diff --git a/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/02-install-instrumentation.yaml b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/02-install-instrumentation.yaml new file mode 100644 index 0000000000..1cc0dfd271 --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/02-install-instrumentation.yaml @@ -0,0 +1,41 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: my-other-ns +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java + namespace: my-other-ns +spec: + env: + - name: OTEL_TRACES_EXPORTER + value: otlp + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://localhost:4317 + - name: OTEL_EXPORTER_OTLP_TIMEOUT + value: "20" + - name: OTEL_TRACES_SAMPLER + value: parentbased_traceidratio + - name: OTEL_TRACES_SAMPLER_ARG + value: "0.85" + - name: SPLUNK_TRACE_RESPONSE_HEADER_ENABLED + value: "true" + exporter: + endpoint: http://localhost:4317 + propagators: + - jaeger + - b3 + sampler: + type: parentbased_traceidratio + argument: "0.25" + java: + env: + - name: OTEL_JAVAAGENT_DEBUG + value: "true" + - name: OTEL_INSTRUMENTATION_JDBC_ENABLED + value: "false" + - name: SPLUNK_PROFILER_ENABLED + value: "false" diff --git a/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/03-assert.yaml b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/03-assert.yaml new file mode 100644 index 0000000000..88557a859b --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/03-assert.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +kind: Pod +metadata: + annotations: + sidecar.opentelemetry.io/inject: "true" + instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" + labels: + app: my-pod-with-sidecar +spec: + containers: + - name: myapp + env: + - name: OTEL_JAVAAGENT_DEBUG + value: "true" + - name: OTEL_INSTRUMENTATION_JDBC_ENABLED + value: "false" + - name: SPLUNK_PROFILER_ENABLED + value: "false" + - name: JAVA_TOOL_OPTIONS + value: " -javaagent:/otel-auto-instrumentation/javaagent.jar" + - name: OTEL_TRACES_EXPORTER + value: otlp + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://localhost:4317 + - name: OTEL_EXPORTER_OTLP_TIMEOUT + value: "20" + - name: OTEL_TRACES_SAMPLER + value: parentbased_traceidratio + - name: OTEL_TRACES_SAMPLER_ARG + value: "0.85" + - name: SPLUNK_TRACE_RESPONSE_HEADER_ENABLED + value: "true" + - name: OTEL_SERVICE_NAME + value: my-deployment-with-sidecar + - name: OTEL_RESOURCE_ATTRIBUTES_POD_NAME + - name: OTEL_RESOURCE_ATTRIBUTES_NODE_NAME + - name: OTEL_PROPAGATORS + value: jaeger,b3 + - name: OTEL_RESOURCE_ATTRIBUTES + volumeMounts: + - mountPath: /var/run/secrets/kubernetes.io/serviceaccount + - mountPath: /otel-auto-instrumentation + name: opentelemetry-auto-instrumentation + - name: otc-container + initContainers: + - name: opentelemetry-auto-instrumentation +status: + phase: Running +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java + namespace: my-other-ns diff --git a/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/03-install-app.yaml b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/03-install-app.yaml new file mode 100644 index 0000000000..7674e6e61d --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/03-install-app.yaml @@ -0,0 +1,28 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-deployment-with-sidecar +spec: + selector: + matchLabels: + app: my-pod-with-sidecar + replicas: 1 + template: + metadata: + labels: + app: my-pod-with-sidecar + annotations: + sidecar.opentelemetry.io/inject: "true" + instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" + spec: + securityContext: + runAsUser: 1000 + runAsGroup: 3000 + fsGroup: 2000 + containers: + - name: myapp + image: ghcr.io/pavolloffay/spring-petclinic:latest + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] diff --git a/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/04-cleanup-other-ns.yaml b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/04-cleanup-other-ns.yaml new file mode 100644 index 0000000000..ee6bc7f70e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.a-operator.ns.a-instrumentation.ns.b/04-cleanup-other-ns.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: v1 + kind: Namespace + name: my-other-ns diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/01-cleanup-other-ns.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/01-cleanup-other-ns.yaml new file mode 100644 index 0000000000..ee6bc7f70e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/01-cleanup-other-ns.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: v1 + kind: Namespace + name: my-other-ns diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/02-install-collector.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/02-install-collector.yaml new file mode 100644 index 0000000000..b03a72e60e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/02-install-collector.yaml @@ -0,0 +1,32 @@ +apiVersion: opentelemetry.io/v1alpha1 +kind: OpenTelemetryCollector +metadata: + name: sidecar +spec: + mode: sidecar + config: | + receivers: + otlp: + protocols: + grpc: + http: + processors: + + exporters: + logging: + + service: + pipelines: + traces: + receivers: [otlp] + processors: [] + exporters: [logging] +--- +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +commands: + # Annotate the namespace to allow the application to run using an specific group and user in OpenShift + # https://docs.openshift.com/dedicated/authentication/managing-security-context-constraints.html + # This annotation has no effect in Kubernetes + - command: kubectl annotate namespace ${NAMESPACE} openshift.io/sa.scc.uid-range=1000/1000 --overwrite + - command: kubectl annotate namespace ${NAMESPACE} openshift.io/sa.scc.supplemental-groups=2000/1000 --overwrite diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/02-install-instrumentation.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/02-install-instrumentation.yaml new file mode 100644 index 0000000000..44777735ef --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/02-install-instrumentation.yaml @@ -0,0 +1,35 @@ +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java +spec: + env: + - name: OTEL_TRACES_EXPORTER + value: otlp + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://localhost:4317 + - name: OTEL_EXPORTER_OTLP_TIMEOUT + value: "20" + - name: OTEL_TRACES_SAMPLER + value: parentbased_traceidratio + - name: OTEL_TRACES_SAMPLER_ARG + value: "0.85" + - name: SPLUNK_TRACE_RESPONSE_HEADER_ENABLED + value: "true" + exporter: + endpoint: http://localhost:4317 + propagators: + - jaeger + - b3 + sampler: + type: parentbased_traceidratio + argument: "0.25" + java: + env: + - name: OTEL_JAVAAGENT_DEBUG + value: "true" + - name: OTEL_INSTRUMENTATION_JDBC_ENABLED + value: "false" + - name: SPLUNK_PROFILER_ENABLED + value: "false" diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/03-assert.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/03-assert.yaml new file mode 100644 index 0000000000..56a62ce90f --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/03-assert.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +kind: Pod +metadata: + namespace: my-other-ns + annotations: + sidecar.opentelemetry.io/inject: "true" + instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" + labels: + app: my-pod-with-sidecar +spec: + containers: + - name: myapp + env: + - name: OTEL_JAVAAGENT_DEBUG + value: "true" + - name: OTEL_INSTRUMENTATION_JDBC_ENABLED + value: "false" + - name: SPLUNK_PROFILER_ENABLED + value: "false" + - name: JAVA_TOOL_OPTIONS + value: " -javaagent:/otel-auto-instrumentation/javaagent.jar" + - name: OTEL_TRACES_EXPORTER + value: otlp + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://localhost:4317 + - name: OTEL_EXPORTER_OTLP_TIMEOUT + value: "20" + - name: OTEL_TRACES_SAMPLER + value: parentbased_traceidratio + - name: OTEL_TRACES_SAMPLER_ARG + value: "0.85" + - name: SPLUNK_TRACE_RESPONSE_HEADER_ENABLED + value: "true" + - name: OTEL_SERVICE_NAME + value: my-deployment-with-sidecar + - name: OTEL_RESOURCE_ATTRIBUTES_POD_NAME + - name: OTEL_RESOURCE_ATTRIBUTES_NODE_NAME + - name: OTEL_PROPAGATORS + value: jaeger,b3 + - name: OTEL_RESOURCE_ATTRIBUTES + volumeMounts: + - mountPath: /var/run/secrets/kubernetes.io/serviceaccount + - mountPath: /otel-auto-instrumentation + name: opentelemetry-auto-instrumentation + - name: otc-container + initContainers: + - name: opentelemetry-auto-instrumentation +status: + phase: Running +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/03-install-app.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/03-install-app.yaml new file mode 100644 index 0000000000..b6db6d6156 --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/03-install-app.yaml @@ -0,0 +1,31 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: my-other-ns +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-deployment-with-sidecar +# namespace: my-other-ns +spec: + selector: + matchLabels: + app: my-pod-with-sidecar + replicas: 1 + template: + metadata: + labels: + app: my-pod-with-sidecar + annotations: + sidecar.opentelemetry.io/inject: "true" + instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" + spec: + securityContext: + runAsUser: 1000 + runAsGroup: 3000 + fsGroup: 2000 + containers: + - name: myapp + image: ghcr.io/pavolloffay/spring-petclinic:latest diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/04-cleanup-other-ns.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/04-cleanup-other-ns.yaml new file mode 100644 index 0000000000..ee6bc7f70e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.a/04-cleanup-other-ns.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: v1 + kind: Namespace + name: my-other-ns diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/01-cleanup-other-ns.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/01-cleanup-other-ns.yaml new file mode 100644 index 0000000000..ee6bc7f70e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/01-cleanup-other-ns.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: v1 + kind: Namespace + name: my-other-ns diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/02-install-collector.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/02-install-collector.yaml new file mode 100644 index 0000000000..b03a72e60e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/02-install-collector.yaml @@ -0,0 +1,32 @@ +apiVersion: opentelemetry.io/v1alpha1 +kind: OpenTelemetryCollector +metadata: + name: sidecar +spec: + mode: sidecar + config: | + receivers: + otlp: + protocols: + grpc: + http: + processors: + + exporters: + logging: + + service: + pipelines: + traces: + receivers: [otlp] + processors: [] + exporters: [logging] +--- +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +commands: + # Annotate the namespace to allow the application to run using an specific group and user in OpenShift + # https://docs.openshift.com/dedicated/authentication/managing-security-context-constraints.html + # This annotation has no effect in Kubernetes + - command: kubectl annotate namespace ${NAMESPACE} openshift.io/sa.scc.uid-range=1000/1000 --overwrite + - command: kubectl annotate namespace ${NAMESPACE} openshift.io/sa.scc.supplemental-groups=2000/1000 --overwrite diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/02-install-instrumentation.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/02-install-instrumentation.yaml new file mode 100644 index 0000000000..1cc0dfd271 --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/02-install-instrumentation.yaml @@ -0,0 +1,41 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: my-other-ns +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java + namespace: my-other-ns +spec: + env: + - name: OTEL_TRACES_EXPORTER + value: otlp + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://localhost:4317 + - name: OTEL_EXPORTER_OTLP_TIMEOUT + value: "20" + - name: OTEL_TRACES_SAMPLER + value: parentbased_traceidratio + - name: OTEL_TRACES_SAMPLER_ARG + value: "0.85" + - name: SPLUNK_TRACE_RESPONSE_HEADER_ENABLED + value: "true" + exporter: + endpoint: http://localhost:4317 + propagators: + - jaeger + - b3 + sampler: + type: parentbased_traceidratio + argument: "0.25" + java: + env: + - name: OTEL_JAVAAGENT_DEBUG + value: "true" + - name: OTEL_INSTRUMENTATION_JDBC_ENABLED + value: "false" + - name: SPLUNK_PROFILER_ENABLED + value: "false" diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/03-assert.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/03-assert.yaml new file mode 100644 index 0000000000..c3ad288ed1 --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/03-assert.yaml @@ -0,0 +1,59 @@ +apiVersion: v1 +kind: Pod +metadata: + namespace: my-other-ns + annotations: + sidecar.opentelemetry.io/inject: "true" + instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" + labels: + app: my-pod-with-sidecar +spec: + containers: + - name: myapp + env: + - name: OTEL_JAVAAGENT_DEBUG + value: "true" + - name: OTEL_INSTRUMENTATION_JDBC_ENABLED + value: "false" + - name: SPLUNK_PROFILER_ENABLED + value: "false" + - name: JAVA_TOOL_OPTIONS + value: " -javaagent:/otel-auto-instrumentation-java/javaagent.jar" + - name: OTEL_TRACES_EXPORTER + value: otlp + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://localhost:4317 + - name: OTEL_EXPORTER_OTLP_TIMEOUT + value: "20" + - name: OTEL_TRACES_SAMPLER + value: parentbased_traceidratio + - name: OTEL_TRACES_SAMPLER_ARG + value: "0.85" + - name: SPLUNK_TRACE_RESPONSE_HEADER_ENABLED + value: "true" + - name: OTEL_SERVICE_NAME + value: my-deployment-with-sidecar + - name: OTEL_RESOURCE_ATTRIBUTES_POD_NAME + - name: OTEL_RESOURCE_ATTRIBUTES_NODE_NAME + - name: OTEL_PROPAGATORS + value: jaeger,b3 + - name: OTEL_RESOURCE_ATTRIBUTES + volumeMounts: + - mountPath: /var/run/secrets/kubernetes.io/serviceaccount + - mountPath: /otel-auto-instrumentation-java + name: opentelemetry-auto-instrumentation-java + - name: otc-container + initContainers: + - name: opentelemetry-auto-instrumentation-java + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] +status: + phase: Running +--- +apiVersion: opentelemetry.io/v1alpha1 +kind: Instrumentation +metadata: + name: java + namespace: my-other-ns \ No newline at end of file diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/03-install-app.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/03-install-app.yaml new file mode 100644 index 0000000000..6ddb661f06 --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/03-install-app.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-deployment-with-sidecar +# namespace: my-other-ns +spec: + selector: + matchLabels: + app: my-pod-with-sidecar + replicas: 1 + template: + metadata: + labels: + app: my-pod-with-sidecar + annotations: + sidecar.opentelemetry.io/inject: "true" + instrumentation.opentelemetry.io/inject-java: "my-other-ns/java" + spec: + securityContext: + runAsUser: 1000 + runAsGroup: 3000 + fsGroup: 2000 + containers: + - name: myapp + image: ghcr.io/pavolloffay/spring-petclinic:latest diff --git a/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/04-cleanup-other-ns.yaml b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/04-cleanup-other-ns.yaml new file mode 100644 index 0000000000..ee6bc7f70e --- /dev/null +++ b/tests/e2e/instrumentation-application.ns.b-operator.ns.a-instrumentation.ns.b/04-cleanup-other-ns.yaml @@ -0,0 +1,6 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +delete: +- apiVersion: v1 + kind: Namespace + name: my-other-ns