File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ const (
1212)
1313
1414type (
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
You can’t perform that action at this time.
0 commit comments