Skip to content

Commit

Permalink
chore: Remove further unused
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Aug 5, 2024
1 parent 2548615 commit ab06f81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
21 changes: 10 additions & 11 deletions internal/discovery/discovery_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
Copyright 2023 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Copyright 2023 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package discovery
Expand All @@ -26,7 +26,6 @@ func TestGVKMapsResolveGVK(t *testing.T) {
desc string
gvkmaps *CRDiscoverer
gvk schema.GroupVersionKind
got []groupVersionKindPlural
want []groupVersionKindPlural
}
testcases := []testcase{
Expand Down
4 changes: 0 additions & 4 deletions internal/store/networkpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ func TestNetworkPolicyStore(t *testing.T) {
startTime := 1501569018
metav1StartTime := metav1.Unix(int64(startTime), 0)

const metadata = `
# HELP kube_verticalpodautoscaler_labels Kubernetes labels converted to Prometheus labels.
# TYPE kube_verticalpodautoscaler_labels gauge
`
cases := []generateMetricsTestCase{
{
Obj: &networkingv1.NetworkPolicy{
Expand Down
11 changes: 0 additions & 11 deletions pkg/metrics_store/metrics_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ import (
"k8s.io/kube-state-metrics/v2/pkg/metric"
)

// Mock metricFamily instead of importing /pkg/metric to prevent cyclic
// dependency.
type metricFamily struct {
value []byte
}

// Implement FamilyByteSlicer interface.
func (f *metricFamily) ByteSlice() []byte {
return f.value
}

func TestObjectsSameNameDifferentNamespaces(t *testing.T) {
serviceIDs := []string{"a", "b"}

Expand Down

0 comments on commit ab06f81

Please sign in to comment.