update PruneString for resources

This commit is contained in:
Jingfang Liu
2019-04-18 10:39:22 -07:00
parent 867201a075
commit 748c88c276
4 changed files with 10 additions and 16 deletions

View File

@@ -205,13 +205,3 @@ func (n ResId) prefixList() []string {
func (n ResId) suffixList() []string {
return strings.Split(n.suffix, ":")
}
// PruneString returns a string which can be used
// as a key in a Prune ConfigMap
func (n ResId) PruneString() string {
name := n.prefix + n.name + n.suffix
return n.gvKind.Group +
"_" + n.gvKind.Kind +
"_" + n.namespace +
"_" + name
}