mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Fix on comments
Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
parent
0a839c6c3b
commit
25f8545b9d
@ -79,7 +79,7 @@ func (ls Set) AsSelectorPreValidated() Selector {
|
|||||||
return SelectorFromValidatedSet(ls)
|
return SelectorFromValidatedSet(ls)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FormatLabels convert label map into plain string
|
// FormatLabels converts label map into plain string
|
||||||
func FormatLabels(labelMap map[string]string) string {
|
func FormatLabels(labelMap map[string]string) string {
|
||||||
l := Set(labelMap).String()
|
l := Set(labelMap).String()
|
||||||
if l == "" {
|
if l == "" {
|
||||||
|
@ -673,7 +673,7 @@ func (p *Parser) parseRequirement() (*Requirement, error) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// parseKeyAndInferOperator parse literals.
|
// parseKeyAndInferOperator parses literals.
|
||||||
// in case of no operator '!, in, notin, ==, =, !=' are found
|
// in case of no operator '!, in, notin, ==, =, !=' are found
|
||||||
// the 'exists' operator is inferred
|
// the 'exists' operator is inferred
|
||||||
func (p *Parser) parseKeyAndInferOperator() (string, selection.Operator, error) {
|
func (p *Parser) parseKeyAndInferOperator() (string, selection.Operator, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user