Skip to content

Commit ab5e19b

Browse files
committed
rename label selector
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 713f8c3 commit ab5e19b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kubernetes/selector/selector.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ const (
1212
)
1313

1414
type (
15-
KubernetesSelector struct {
15+
LabelSelector struct {
1616
metav1.LabelSelector `json:",inline"`
1717
selector *string
1818
}
1919
)
2020

2121
// IsEmpty checks if the selector is empty/defined or not
22-
func (selector *KubernetesSelector) IsEmpty() bool {
22+
func (selector *LabelSelector) IsEmpty() bool {
2323
if selector == nil || (len(selector.MatchLabels) == 0 && len(selector.MatchExpressions) == 0) {
2424
return true
2525
}
@@ -28,7 +28,7 @@ func (selector *KubernetesSelector) IsEmpty() bool {
2828
}
2929

3030
// Compile compiles the label selector struct to a string
31-
func (selector *KubernetesSelector) Compile() (string, error) {
31+
func (selector *LabelSelector) Compile() (string, error) {
3232
// no selector
3333
if selector.IsEmpty() {
3434
return "", nil

0 commit comments

Comments
 (0)