mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 01:46:23 +00:00
24 lines
498 B
Go
24 lines
498 B
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package build
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
)
|
|
|
|
const (
|
|
flagAllowResourceIdChangesName = "allow_id_changes"
|
|
flagAllowResourceIdChangesHelp = `enable changes to a resourceId`
|
|
)
|
|
|
|
var (
|
|
flagAllowResourceIdChangesValue = false
|
|
)
|
|
|
|
func addFlagAllowResourceIdChanges(set *pflag.FlagSet) {
|
|
set.BoolVar(
|
|
&flagAllowResourceIdChangesValue, flagAllowResourceIdChangesName,
|
|
false, flagAllowResourceIdChangesHelp)
|
|
}
|