mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
deprecate stringprefixer and dateprefixer
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
// Copyright 2019 The Kubernetes Authors.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Deprecated: StringPrefixer will be removed with kustomize/api v1.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"sigs.k8s.io/kustomize/api/builtins"
|
||||
"sigs.k8s.io/kustomize/api/resmap"
|
||||
@@ -55,5 +59,9 @@ func (p *plugin) Config(h *resmap.PluginHelpers, c []byte) error {
|
||||
}
|
||||
|
||||
func (p *plugin) Transform(m resmap.ResMap) error {
|
||||
_, err := fmt.Fprintln(os.Stderr, "Deprecated: StringPrefixer will be removed with kustomize/api v1.")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return p.t.Transform(m)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user