- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RemoveBrackets (0.51 sec)
-
operator/pkg/util/path.go
return strconv.Atoi(v) } // RemoveBrackets removes the [] around pe and returns the resulting string. It returns false if pe is not surrounded // by []. func RemoveBrackets(pe string) (string, bool) { if !strings.HasPrefix(pe, "[") || !strings.HasSuffix(pe, "]") { return "", false } return pe[1 : len(pe)-1], true }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 12 17:12:54 UTC 2023 - 5.5K bytes - Viewed (0) -
operator/pkg/translate/translate.go
scope.Debugf("%s", o.HashNameKind()) } } om = objects.ToNameKindMap() } // After brackets are removed, the remaining "kind:name" is the same format as the keys in om. pe, _ = util.RemoveBrackets(pe) oo, ok := om[pe] if !ok { // skip to overlay the K8s settings if the corresponding resource doesn't exist. scope.Infof("resource Kind:name %s doesn't exist in the output manifest, skip overlay.", pe)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 19:43:09 UTC 2024 - 36.3K bytes - Viewed (0)