feat: OpenTelemetry module integration (#9062)
* OpenTelemetry module integration * e2e test * e2e test fix * default OpentelemetryConfig * e2e values * mount otel module for otel test only * propagate IS_CHROOT * propagate IS_CHROOT e2e test * code doc * comments * golint * opentelemetry doc * zipkin * zipkin * typo * update e2e test OpenTelemetry value * use opentelemetry value * revert merge conflict * fix * format * review comments * clean
This commit is contained in:
parent
c075793ae5
commit
c8cb9167d3
23 changed files with 1131 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
|
||||
export NAMESPACE=$1
|
||||
export NAMESPACE_OVERLAY=$2
|
||||
export IS_CHROOT=$3
|
||||
|
||||
echo "deploying NGINX Ingress controller in namespace $NAMESPACE"
|
||||
|
||||
|
|
@ -46,6 +47,16 @@ metadata:
|
|||
|
||||
EOF
|
||||
|
||||
OTEL_MODULE=$(cat <<EOF
|
||||
opentelemetry:
|
||||
enabled: true
|
||||
EOF
|
||||
)
|
||||
|
||||
if [[ "$NAMESPACE_OVERLAY" != "enable-opentelemetry" ]]; then
|
||||
OTEL_MODULE=""
|
||||
fi
|
||||
|
||||
# Use the namespace overlay if it was requested
|
||||
if [[ ! -z "$NAMESPACE_OVERLAY" && -d "$DIR/namespace-overlays/$NAMESPACE_OVERLAY" ]]; then
|
||||
echo "Namespace overlay $NAMESPACE_OVERLAY is being used for namespace $NAMESPACE"
|
||||
|
|
@ -59,7 +70,7 @@ fullnameOverride: nginx-ingress
|
|||
controller:
|
||||
image:
|
||||
repository: ingress-controller/controller
|
||||
chroot: true
|
||||
chroot: ${IS_CHROOT}
|
||||
tag: 1.0.0-dev
|
||||
digest:
|
||||
digestChroot:
|
||||
|
|
@ -100,6 +111,8 @@ controller:
|
|||
hostPath:
|
||||
path: /tmp/coredump
|
||||
|
||||
${OTEL_MODULE}
|
||||
|
||||
rbac:
|
||||
create: true
|
||||
scope: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue