Add String method to KustomizationDocument to avoid printing the

content of kustomization.yaml
This commit is contained in:
Haiyan Meng
2019-11-26 14:46:33 -08:00
parent 84b75afae4
commit 31c5e89b1f

View File

@@ -43,6 +43,12 @@ type KustomizationDocument struct {
type set map[string]struct{}
func (doc *KustomizationDocument) String() string {
return fmt.Sprintf("%s %s %s %v %v %v %v %v", doc.RepositoryURL, doc.FilePath,
doc.DefaultBranch, doc.CreationTime, doc.IsSame,
doc.Kinds, doc.Identifiers, doc.Values)
}
// Implements the CrawlerDocument interface.
func (doc *KustomizationDocument) GetResources() ([]*Document, error) {
isResource := true