mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 10:00:56 +00:00
added IsEmpty() method
This commit is contained in:
@@ -68,6 +68,10 @@ func (r *Resource) GetString(p string) (string, error) {
|
||||
return r.kunStr.GetString(p)
|
||||
}
|
||||
|
||||
func (r *Resource) IsEmpty() bool {
|
||||
return len(r.kunStr.Map()) == 0
|
||||
}
|
||||
|
||||
func (r *Resource) Map() map[string]interface{} {
|
||||
return r.kunStr.Map()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user