@@ -39,7 +39,7 @@ func TestNewCustomResourceMetrics(t *testing.T) {
3939 // https://github.com/kubernetes/kube-state-metrics/issues/1886
4040 name : "cr metric with dynamic metric type" ,
4141 r : Resource {
42- GroupVersionKind : GroupVersionKind {
42+ GroupVersionKind : schema. GroupVersionKind {
4343 Group : "apps" ,
4444 Version : "v1" ,
4545 Kind : "Deployment" ,
@@ -83,7 +83,7 @@ func TestNewCustomResourceMetrics(t *testing.T) {
8383 Families : []compiledFamily {
8484 {
8585 Name : "kube_customresource_test_metrics" ,
86- Help : "metrics for testing for apps_v1_Deployment " ,
86+ Help : "metrics for testing for apps/v1, Kind=Deployment " ,
8787 Each : & compiledInfo {},
8888 Labels : map [string ]string {
8989 "customresource_group" : "apps" ,
@@ -101,7 +101,7 @@ func TestNewCustomResourceMetrics(t *testing.T) {
101101 {
102102 name : "cr metric with custom prefix" ,
103103 r : Resource {
104- GroupVersionKind : GroupVersionKind {
104+ GroupVersionKind : schema. GroupVersionKind {
105105 Group : "apps" ,
106106 Version : "v1" ,
107107 Kind : "Deployment" ,
@@ -146,7 +146,7 @@ func TestNewCustomResourceMetrics(t *testing.T) {
146146 Families : []compiledFamily {
147147 {
148148 Name : "apps_deployment_test_metrics" ,
149- Help : "metrics for testing for apps_v1_Deployment " ,
149+ Help : "metrics for testing for apps/v1, Kind=Deployment " ,
150150 Each : & compiledInfo {},
151151 Labels : map [string ]string {
152152 "customresource_group" : "apps" ,
@@ -164,7 +164,7 @@ func TestNewCustomResourceMetrics(t *testing.T) {
164164 {
165165 name : "cr metric with custom prefix - expect error" ,
166166 r : Resource {
167- GroupVersionKind : GroupVersionKind {
167+ GroupVersionKind : schema. GroupVersionKind {
168168 Group : "apps" ,
169169 Version : "v1" ,
170170 Kind : "Deployment" ,
@@ -208,7 +208,7 @@ func TestNewCustomResourceMetrics(t *testing.T) {
208208 Families : []compiledFamily {
209209 {
210210 Name : "apps_deployment_test_metrics" ,
211- Help : "metrics for testing for apps_v1_Deployment " ,
211+ Help : "metrics for testing for apps/v1, Kind=Deployment " ,
212212 Each : & compiledInfo {},
213213 Labels : map [string ]string {
214214 "customresource_group" : "apps" ,
0 commit comments