Maintain resources in order loaded.

This commit is contained in:
Jeffrey Regan
2019-06-03 11:22:53 -07:00
parent af57fc3ece
commit 4162dbc2d8
39 changed files with 1074 additions and 617 deletions

View File

@@ -18,6 +18,7 @@ limitations under the License.
package resource
import (
"reflect"
"strings"
"sigs.k8s.io/kustomize/pkg/ifc"
@@ -34,6 +35,10 @@ type Resource struct {
refBy []resid.ResId
}
func (r *Resource) KunstructEqual(o *Resource) bool {
return reflect.DeepEqual(r.Kunstructured, o.Kunstructured)
}
// String returns resource as JSON.
func (r *Resource) String() string {
bs, err := r.MarshalJSON()