File tree 4 files changed +16
-11
lines changed
tests/e2e-targetallocator
targetallocator-kubernetessd
targetallocator-prometheuscr
4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ automountServiceAccountToken: true
7
7
apiVersion : rbac.authorization.k8s.io/v1
8
8
kind : ClusterRole
9
9
metadata :
10
- name : pod-view
10
+ name : targetallocator-features
11
11
rules :
12
12
- apiGroups : [""]
13
13
resources : [ "pods", "namespaces" ]
19
19
apiVersion : kuttl.dev/v1beta1
20
20
kind : TestStep
21
21
commands :
22
- - command : kubectl -n $NAMESPACE create clusterrolebinding default-view-$NAMESPACE --clusterrole=pod-view --serviceaccount=$NAMESPACE:ta
22
+ - command : kubectl -n $NAMESPACE create clusterrolebinding default-view-$NAMESPACE --clusterrole=targetallocator-features --serviceaccount=$NAMESPACE:ta
23
23
# Annotate the namespace to allow the application to run using an specific group and user in OpenShift
24
24
# https://docs.openshift.com/dedicated/authentication/managing-security-context-constraints.html
25
25
# This annotation has no effect in Kubernetes
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ automountServiceAccountToken: true
13
13
apiVersion : rbac.authorization.k8s.io/v1
14
14
kind : ClusterRole
15
15
metadata :
16
- name : ta
16
+ name : targetallocator-kubernetessd
17
17
rules :
18
18
- apiGroups : [""]
19
19
resources :
58
58
apiVersion : rbac.authorization.k8s.io/v1
59
59
kind : ClusterRole
60
60
metadata :
61
- name : collector
61
+ name : collector-kubernetessd
62
62
rules :
63
63
- apiGroups : [""]
64
64
resources :
84
84
apiVersion : kuttl.dev/v1beta1
85
85
kind : TestStep
86
86
commands :
87
- - command : kubectl create clusterrolebinding ta-$NAMESPACE --clusterrole=ta --serviceaccount=$NAMESPACE:ta
88
- - command : kubectl create clusterrolebinding collector-$NAMESPACE --clusterrole=collector --serviceaccount=$NAMESPACE:collector
87
+ - command : kubectl create clusterrolebinding ta-$NAMESPACE --clusterrole=targetallocator-kubernetessd --serviceaccount=$NAMESPACE:ta
88
+ - command : kubectl create clusterrolebinding collector-$NAMESPACE --clusterrole=collector-kubernetessd --serviceaccount=$NAMESPACE:collector
89
89
---
90
90
apiVersion : opentelemetry.io/v1alpha1
91
91
kind : OpenTelemetryCollector
Original file line number Diff line number Diff line change 13
13
args :
14
14
- /bin/sh
15
15
- -c
16
- - curl -s http://prometheus-kubernetessd-collector:9090/metrics | grep "kubelet_running_pods{"
16
+ - |
17
+ for i in $(seq 30); do
18
+ if curl -m 1 -s http://prometheus-kubernetessd-collector:9090/metrics | grep "kubelet_running_pods"; then exit 0; fi
19
+ sleep 5
20
+ done
21
+ exit 1
17
22
---
18
23
apiVersion : batch/v1
19
24
kind : Job
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ automountServiceAccountToken: true
13
13
apiVersion : rbac.authorization.k8s.io/v1
14
14
kind : ClusterRole
15
15
metadata :
16
- name : ta
16
+ name : targetallocator-prometheuscr
17
17
rules :
18
18
- apiGroups : [""]
19
19
resources :
65
65
apiVersion : rbac.authorization.k8s.io/v1
66
66
kind : ClusterRole
67
67
metadata :
68
- name : collector
68
+ name : collector-prometheuscr
69
69
rules :
70
70
- apiGroups : [""]
71
71
resources :
92
92
apiVersion : kuttl.dev/v1beta1
93
93
kind : TestStep
94
94
commands :
95
- - command : kubectl create clusterrolebinding ta-$NAMESPACE --clusterrole=ta --serviceaccount=$NAMESPACE:ta
96
- - command : kubectl create clusterrolebinding collector-$NAMESPACE --clusterrole=collector --serviceaccount=$NAMESPACE:collector
95
+ - command : kubectl create clusterrolebinding ta-$NAMESPACE --clusterrole=targetallocator-prometheuscr --serviceaccount=$NAMESPACE:ta
96
+ - command : kubectl create clusterrolebinding collector-$NAMESPACE --clusterrole=collector-prometheuscr --serviceaccount=$NAMESPACE:collector
97
97
---
98
98
apiVersion : opentelemetry.io/v1alpha1
99
99
kind : OpenTelemetryCollector
You can’t perform that action at this time.
0 commit comments