remove adding hash for configmap/secret read from resource yaml files

This commit is contained in:
Jingfang Liu
2018-07-18 10:37:02 -07:00
parent 94dab9ddc4
commit 9645f397ef
9 changed files with 36 additions and 27 deletions

View File

@@ -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.