Skip to content

Commit 82a3a5b

Browse files
authored
Merge pull request #3850 from Ankitasw/remove-equals-from-tag
Remove Equals() from v1beta2 Tags API
2 parents 874fcd3 + 0000616 commit 82a3a5b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

api/v1beta2/tags.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"fmt"
2121
"regexp"
2222

23-
"github.com/google/go-cmp/cmp"
2423
"k8s.io/apimachinery/pkg/types"
2524
"k8s.io/apimachinery/pkg/util/validation/field"
2625

@@ -30,12 +29,6 @@ import (
3029
// Tags defines a map of tags.
3130
type Tags map[string]string
3231

33-
// Equals returns true if the tags are equal.
34-
// This func is deprecated and should not be used.
35-
func (t Tags) Equals(other Tags) bool {
36-
return cmp.Equal(t, other)
37-
}
38-
3932
// HasOwned returns true if the tags contains a tag that marks the resource as owned by the cluster from the perspective of this management tooling.
4033
func (t Tags) HasOwned(cluster string) bool {
4134
value, ok := t[ClusterTagKey(cluster)]

0 commit comments

Comments
 (0)