mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +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)
|
||||
}
|
||||
|
||||
// FormatLabels convert label map into plain string
|
||||
// FormatLabels converts label map into plain string
|
||||
func FormatLabels(labelMap map[string]string) string {
|
||||
l := Set(labelMap).String()
|
||||
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
|
||||
// the 'exists' operator is inferred
|
||||
func (p *Parser) parseKeyAndInferOperator() (string, selection.Operator, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user