mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-29 09:40:49 +00:00
@@ -30,7 +30,7 @@ func NewCmdFix(fSys fs.FileSystem) *cobra.Command {
|
|||||||
Long: "",
|
Long: "",
|
||||||
Example: `
|
Example: `
|
||||||
# Fix the missing and deprecated fields in kustomization file
|
# Fix the missing and deprecated fields in kustomization file
|
||||||
kustomize fix
|
kustomize edit fix
|
||||||
|
|
||||||
`,
|
`,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
@@ -40,6 +40,7 @@ func NewCmdFix(fSys fs.FileSystem) *cobra.Command {
|
|||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RunFix runs `fix` command
|
||||||
func RunFix(fSys fs.FileSystem) error {
|
func RunFix(fSys fs.FileSystem) error {
|
||||||
mf, err := kustfile.NewKustomizationFile(fSys)
|
mf, err := kustfile.NewKustomizationFile(fSys)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user