Skip to content

Commit 79d357b

Browse files
committed
remove warning for using prefix/suffix in conjunction with a Namespace
1 parent 3e4ec3a commit 79d357b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pkg/transformers/prefixsuffixname.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package transformers
1919
import (
2020
"errors"
2121
"fmt"
22-
"log"
2322

2423
"sigs.k8s.io/kustomize/pkg/gvk"
2524
"sigs.k8s.io/kustomize/pkg/resmap"
@@ -43,12 +42,6 @@ var prefixSuffixFieldSpecsToSkip = []config.FieldSpec{
4342
},
4443
}
4544

46-
// deprecateNamePrefixSuffixFieldSpec will be moved into
47-
// prefixSuffixFieldSpecsToSkip in next release
48-
var deprecateNamePrefixSuffixFieldSpec = config.FieldSpec{
49-
Gvk: gvk.Gvk{Kind: "Namespace"},
50-
}
51-
5245
// NewNamePrefixSuffixTransformer makes a namePrefixSuffixTransformer.
5346
func NewNamePrefixSuffixTransformer(
5447
np, ns string, fieldSpecs []config.FieldSpec) (Transformer, error) {
@@ -86,11 +79,6 @@ func (o *namePrefixSuffixTransformer) Transform(m resmap.ResMap) error {
8679
}
8780

8881
for id := range mf {
89-
if id.Gvk().IsSelected(&deprecateNamePrefixSuffixFieldSpec.Gvk) {
90-
log.Println(
91-
"Adding prefix and suffix to Namespace " +
92-
"resource will be deprecated in next release.")
93-
}
9482
objMap := mf[id].Map()
9583
for _, path := range o.fieldSpecsToUse {
9684
if !id.Gvk().IsSelected(&path.Gvk) {

0 commit comments

Comments
 (0)