func parseReleaseManifests(namespace string, b *bufio.Reader) []types.Artifact {
	var results []types.Artifact

	r := k8syaml.NewYAMLReader(b)
	for i := 0; ; i++ {
		doc, err := r.Read()
		if err == io.EOF {
			break
		}
		if err != nil {
			log.Entry(context.TODO()).Infof("error parsing object %d from string: %s", i, err.Error())
			continue
		}
		objNamespace, err := getObjectNamespaceIfDefined(doc, namespace)
		if err != nil {
			log.Entry(context.TODO()).Infof("error parsing object %d from string: %s", i, err.Error())
			continue
		}
		obj, err := parseRuntimeObject(objNamespace, doc)
		if err != nil {
			log.Entry(context.TODO()).Infof("error parsing object %d from string: %s", i, err.Error())
		} else {
			results = append(results, *obj)
			log.Entry(context.TODO()).Debugf("found deployed object %d: %+v", i, obj.Obj)
		}
	}

	return results
}
// parseReleaseManifests parses a set of Kubernetes manifests extracting a set of
// objects with their corresponding namespace.  If no namespace is specified,
// then assume `namespace`.
parseReleaseManifests parses a set of Kubernetes manifests extracting a set of
objects with their corresponding namespace.  If no namespace is specified,
then assume `namespace`.
// parseReleaseManifests parses a set of Kubernetes manifests extracting a set of // objects with their corresponding namespace . If no namespace is specified // then assume ` namespace ` .
func parseReleaseManifests(namespace string, b *bufio.Reader) []types.Artifact {
	var results []types.Artifact
	r := k8syaml.NewYAMLReader(b)
	for i := 0; ; i++ {
		doc, err := r.Read()
		if err == io.EOF {
			break
		}
		if err != nil {
			log.Entry(context.TODO()).Infof("error parsing object %d from string: %s", i, err.Error())
			continue
		}
		objNamespace, err := getObjectNamespaceIfDefined(doc, namespace)
		if err != nil {
			log.Entry(context.TODO()).Infof("error parsing object %d from string: %s", i, err.Error())
			continue
		}
		obj, err := parseRuntimeObject(objNamespace, doc)
		if err != nil {
			log.Entry(context.TODO()).Infof("error parsing object %d from string: %s", i, err.Error())
		} else {
			results = append(results, *obj)
			log.Entry(context.TODO()).Debugf("found deployed object %d: %+v", i, obj.Obj)
		}
	}
	return results
}
func parseReleaseManifests ( namespace string , b * bufio . Reader ) [ ] types . Artifact { var results [ ] types . Artifact r := k8syaml . NewYAMLReader ( b ) for i := 0 ; ; i ++ { doc , err := r . Read ( ) if err == io . EOF { break } if err != nil { log . Entry ( context . TODO ( ) ) . Infof ( " " , i , err . Error ( ) ) continue } objNamespace , err := getObjectNamespaceIfDefined ( doc , namespace ) if err != nil { log . Entry ( context . TODO ( ) ) . Infof ( " " , i , err . Error ( ) ) continue } obj , err := parseRuntimeObject ( objNamespace , doc ) if err != nil { log . Entry ( context . TODO ( ) ) . Infof ( " " , i , err . Error ( ) ) } else { results = append ( results , * obj ) log . Entry ( context . TODO ( ) ) . Debugf ( " " , i , obj . Obj ) } } return results }
parseReleaseManifests parses a set of Kubernetes manifests extracting a set of
objects with their corresponding namespace.
parseReleaseManifests parses a set of Kubernetes manifests extracting a set of objects with their corresponding namespace .