@@ -1839,6 +1839,9 @@ func TestBuildTargetAllocator(t *testing.T) {
18391839 Name : "test" ,
18401840 Namespace : "test" ,
18411841 Labels : nil ,
1842+ Annotations : map [string ]string {
1843+ "test" : "test" ,
1844+ },
18421845 },
18431846 Spec : v1alpha1.TargetAllocatorSpec {
18441847 FilterStrategy : v1beta1 .TargetAllocatorFilterStrategyRelabelConfig ,
@@ -1885,7 +1888,9 @@ func TestBuildTargetAllocator(t *testing.T) {
18851888 "app.kubernetes.io/part-of" : "opentelemetry" ,
18861889 "app.kubernetes.io/version" : "latest" ,
18871890 },
1888- Annotations : nil ,
1891+ Annotations : map [string ]string {
1892+ "test" : "test" ,
1893+ },
18891894 },
18901895 Data : map [string ]string {
18911896 "targetallocator.yaml" : `allocation_strategy: consistent-hashing
@@ -1929,7 +1934,10 @@ prometheus_cr:
19291934 "app.kubernetes.io/part-of" : "opentelemetry" ,
19301935 "app.kubernetes.io/version" : "latest" ,
19311936 },
1932- Annotations : nil ,
1937+ Annotations : map [string ]string {
1938+ "opentelemetry-targetallocator-config/hash" : "f80c054419fe2f9030368557da143e200c70772d1d5f1be50ed55ae960b4b17d" ,
1939+ "test" : "test" ,
1940+ },
19331941 },
19341942 Spec : appsv1.DeploymentSpec {
19351943 Selector : & metav1.LabelSelector {
@@ -1947,6 +1955,7 @@ prometheus_cr:
19471955 },
19481956 Annotations : map [string ]string {
19491957 "opentelemetry-targetallocator-config/hash" : "f80c054419fe2f9030368557da143e200c70772d1d5f1be50ed55ae960b4b17d" ,
1958+ "test" : "test" ,
19501959 },
19511960 },
19521961 Spec : corev1.PodSpec {
@@ -2034,6 +2043,9 @@ prometheus_cr:
20342043 "app.kubernetes.io/part-of" : "opentelemetry" ,
20352044 "app.kubernetes.io/version" : "latest" ,
20362045 },
2046+ Annotations : map [string ]string {
2047+ "test" : "test" ,
2048+ },
20372049 },
20382050 },
20392051 & corev1.Service {
@@ -2079,6 +2091,7 @@ prometheus_cr:
20792091 },
20802092 Annotations : map [string ]string {
20812093 "opentelemetry-targetallocator-config/hash" : "f80c054419fe2f9030368557da143e200c70772d1d5f1be50ed55ae960b4b17d" ,
2094+ "test" : "test" ,
20822095 },
20832096 },
20842097 Spec : policyV1.PodDisruptionBudgetSpec {
@@ -2210,7 +2223,9 @@ prometheus_cr:
22102223 "app.kubernetes.io/part-of" : "opentelemetry" ,
22112224 "app.kubernetes.io/version" : "latest" ,
22122225 },
2213- Annotations : nil ,
2226+ Annotations : map [string ]string {
2227+ "opentelemetry-targetallocator-config/hash" : "f80c054419fe2f9030368557da143e200c70772d1d5f1be50ed55ae960b4b17d" ,
2228+ },
22142229 },
22152230 Spec : appsv1.DeploymentSpec {
22162231 Selector : & metav1.LabelSelector {
@@ -2541,7 +2556,9 @@ prometheus_cr:
25412556 "app.kubernetes.io/part-of" : "opentelemetry" ,
25422557 "app.kubernetes.io/version" : "latest" ,
25432558 },
2544- Annotations : nil ,
2559+ Annotations : map [string ]string {
2560+ "opentelemetry-targetallocator-config/hash" : "286a5a4e7ec6d2ce652a4ce23e135c10053b4c87fd080242daa5bf21dcd5a337" ,
2561+ },
25452562 },
25462563 Spec : appsv1.DeploymentSpec {
25472564 Selector : & metav1.LabelSelector {
@@ -2846,7 +2863,9 @@ prometheus_cr:
28462863 "app.kubernetes.io/part-of" : "opentelemetry" ,
28472864 "app.kubernetes.io/version" : "latest" ,
28482865 },
2849- Annotations : nil ,
2866+ Annotations : map [string ]string {
2867+ "opentelemetry-targetallocator-config/hash" : "3e2818ab54d866289de7837779e86e9c95803c43c0c4b58b25123e809ae9b771" ,
2868+ },
28502869 },
28512870 Spec : appsv1.DeploymentSpec {
28522871 Selector : & metav1.LabelSelector {
0 commit comments