Skip to content

Commit fec81a2

Browse files
committed
Fix
Signed-off-by: Pavol Loffay <[email protected]>
1 parent afeab5a commit fec81a2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

config/rbac/role.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ rules:
3030
- ""
3131
resources:
3232
- namespaces
33+
- secrets
3334
verbs:
35+
- get
3436
- list
3537
- watch
3638
- apiGroups:

internal/webhook/podmutation/webhookhandler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
// +kubebuilder:webhook:path=/mutate-v1-pod,mutating=true,failurePolicy=ignore,groups="",resources=pods,verbs=create,versions=v1,name=mpod.kb.io,sideEffects=none,admissionReviewVersions=v1
33-
// +kubebuilder:rbac:groups="",resources=namespaces,verbs=list;watch
33+
// +kubebuilder:rbac:groups="",resources=namespaces;secrets,verbs=get;list;watch
3434
// +kubebuilder:rbac:groups=opentelemetry.io,resources=opentelemetrycollectors,verbs=get;list;watch
3535
// +kubebuilder:rbac:groups=opentelemetry.io,resources=instrumentations,verbs=get;list;watch
3636
// +kubebuilder:rbac:groups="apps",resources=replicasets,verbs=get;list;watch

tests/e2e-instrumentation/instrumentation-java-tls/01-assert.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ spec:
5252
- mountPath: /otel-auto-instrumentation-java
5353
name: opentelemetry-auto-instrumentation-java
5454
- mountPath: /otel-auto-instrumentation-secret-client-certs
55-
name: opentelemetry-auto-instrumentation-secret-client-certs
55+
name: otel-auto-secret-client-certs
5656
readOnly: true
5757
- mountPath: /otel-auto-instrumentation-configmap-ca
58-
name: opentelemetry-auto-instrumentation-configmap-ca
58+
name: otel-auto-configmap-ca
5959
readOnly: true
6060
initContainers:
6161
- name: opentelemetry-auto-instrumentation-java

0 commit comments

Comments
 (0)