Skip to content

Commit 21f165e

Browse files
committed
feat(observability): pass K8S_MODE to the operator for SDK Environment prefix
K8S_MODE (from .Values.k8sMode: EKS | ROSA | K8S) drives the eks: vs k8s: prefix the operator injects into instrumented pods (k8s.cluster.name [+ cloud.platform=aws_eks on EKS]), mirroring the CloudWatch agent's KubernetesMode so Application Signals and ServiceEvents / Dynamic Instrumentation resolve a consistent aws.local.environment.
1 parent 3c49b8c commit 21f165e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

charts/amazon-cloudwatch-observability/templates/operator-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ spec:
4141
command:
4242
- /manager
4343
name: manager
44+
env:
45+
# K8S_MODE drives the eks: vs k8s: Environment prefix the operator injects into
46+
# instrumented pods (k8s.cluster.name [+ cloud.platform=aws_eks on EKS]), mirroring
47+
# the CloudWatch agent's KubernetesMode so AppSignals and ServiceEvents/Dynamic
48+
# Instrumentation resolve a consistent Environment.
49+
- name: K8S_MODE
50+
value: {{ .Values.k8sMode | quote }}
4451
ports:
4552
- containerPort: {{ .Values.manager.ports.containerPort }}
4653
name: webhook-server

0 commit comments

Comments
 (0)