func (c ContainerImageMap) GetRegistry() string {
	if c.Registry == "" {
		return c.Registry
	}
	return fmt.Sprintf("%s%s", c.BasePath, c.Registry)
}
GetRegistry returns the full registry path (with base path).
package resource
import (
	"fmt"
	"github.com/Jeffail/gabs"
	"sort"
	"strings"
	"github.com/fluxcd/flux/pkg/image"
	"github.com/fluxcd/flux/pkg/resource"
)
const (
	ReleaseContainerName = "chart-image"
	ImageBasePath = "spec.values."
	ImageRegistryPrefix = "registry.fluxcd.io/"
	ImageRepositoryPrefix = "repository.fluxcd.io/"
	ImageTagPrefix = "tag.fluxcd.io/"
)
type ContainerImageMap struct {
	BasePath   string
	Registry   string
	Repository string
	Tag        string
}
func (c ContainerImageMap) RepositoryOnly() bool {
	return c.Repository != "" && c.Registry == "" && c.Tag == ""
}
func (c ContainerImageMap) RepositoryTag() bool {
	return c.Repository != "" && c.Tag != "" && c.Registry == ""
}
func (c ContainerImageMap) RegistryRepository() bool {
	return c.Registry != "" && c.Repository != "" && c.Tag == ""
}
func (c ContainerImageMap) AllDefined() bool {
	return c.Registry != "" && c.Repository != "" && c.Tag != ""
}