mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 01:46:23 +00:00
remove adding hash for configmap/secret read from resource yaml files
This commit is contained in:
@@ -62,8 +62,14 @@ func (r *Resource) Behavior() GenerationBehavior {
|
||||
}
|
||||
|
||||
// SetBehavior changes the resource to the new behavior
|
||||
func (r *Resource) SetBehavior(b GenerationBehavior) {
|
||||
func (r *Resource) SetBehavior(b GenerationBehavior) *Resource {
|
||||
r.b = b
|
||||
return r
|
||||
}
|
||||
|
||||
// IsGenerated checks if the resource is generated from a generator
|
||||
func (r *Resource) IsGenerated() bool {
|
||||
return r.b != BehaviorUnspecified
|
||||
}
|
||||
|
||||
// Id returns the ResId for the resource.
|
||||
|
||||
Reference in New Issue
Block a user