@@ -33,8 +33,6 @@ func TestNamespaceStore(t *testing.T) {
33
33
# TYPE kube_namespace_created gauge
34
34
# HELP kube_namespace_labels Kubernetes labels converted to Prometheus labels.
35
35
# TYPE kube_namespace_labels gauge
36
- # HELP kube_namespace_annotations Kubernetes annotations converted to Prometheus labels.
37
- # TYPE kube_namespace_annotations gauge
38
36
# HELP kube_namespace_status_phase kubernetes namespace status phase.
39
37
# TYPE kube_namespace_status_phase gauge
40
38
`
@@ -54,7 +52,6 @@ func TestNamespaceStore(t *testing.T) {
54
52
},
55
53
Want : `
56
54
kube_namespace_labels{namespace="nsActiveTest"} 1
57
- kube_namespace_annotations{namespace="nsActiveTest"} 1
58
55
kube_namespace_status_phase{namespace="nsActiveTest",phase="Active"} 1
59
56
kube_namespace_status_phase{namespace="nsActiveTest",phase="Terminating"} 0
60
57
` ,
@@ -73,7 +70,6 @@ func TestNamespaceStore(t *testing.T) {
73
70
},
74
71
Want : `
75
72
kube_namespace_labels{namespace="nsTerminateTest"} 1
76
- kube_namespace_annotations{namespace="nsTerminateTest"} 1
77
73
kube_namespace_status_phase{namespace="nsTerminateTest",phase="Active"} 0
78
74
kube_namespace_status_phase{namespace="nsTerminateTest",phase="Terminating"} 1
79
75
` ,
@@ -87,9 +83,6 @@ func TestNamespaceStore(t *testing.T) {
87
83
Labels : map [string ]string {
88
84
"app" : "example1" ,
89
85
},
90
- Annotations : map [string ]string {
91
- "app" : "example1" ,
92
- },
93
86
},
94
87
Spec : v1.NamespaceSpec {
95
88
Finalizers : []v1.FinalizerName {v1 .FinalizerKubernetes },
@@ -101,7 +94,6 @@ func TestNamespaceStore(t *testing.T) {
101
94
Want : `
102
95
kube_namespace_created{namespace="ns1"} 1.5e+09
103
96
kube_namespace_labels{label_app="example1",namespace="ns1"} 1
104
- kube_namespace_annotations{annotation_app="example1",namespace="ns1"} 1
105
97
kube_namespace_status_phase{namespace="ns1",phase="Active"} 1
106
98
kube_namespace_status_phase{namespace="ns1",phase="Terminating"} 0
107
99
` ,
@@ -114,10 +106,6 @@ func TestNamespaceStore(t *testing.T) {
114
106
"app" : "example2" ,
115
107
"l2" : "label2" ,
116
108
},
117
- Annotations : map [string ]string {
118
- "app" : "example2" ,
119
- "l2" : "label2" ,
120
- },
121
109
},
122
110
Spec : v1.NamespaceSpec {
123
111
Finalizers : []v1.FinalizerName {v1 .FinalizerKubernetes },
@@ -128,7 +116,6 @@ func TestNamespaceStore(t *testing.T) {
128
116
},
129
117
Want : `
130
118
kube_namespace_labels{label_app="example2",label_l2="label2",namespace="ns2"} 1
131
- kube_namespace_annotations{annotation_app="example2",annotation_l2="label2",namespace="ns2"} 1
132
119
kube_namespace_status_phase{namespace="ns2",phase="Active"} 1
133
120
kube_namespace_status_phase{namespace="ns2",phase="Terminating"} 0
134
121
` ,
0 commit comments