func (instance *ComponentInstance) GetDeployName() string {
	return instance.Metadata.Key.GetDeployName()
}
GetDeployName returns a string that could be used as name for deployment inside the cluster
package resolve
import (
	"fmt"
	"strconv"
	"time"
	"github.com/Aptomi/aptomi/pkg/errors"
	"github.com/Aptomi/aptomi/pkg/lang"
	"github.com/Aptomi/aptomi/pkg/runtime"
	"github.com/Aptomi/aptomi/pkg/util"
)
var TypeComponentInstance = &runtime.TypeInfo{
	Kind:        "component-instance",
	Storable:    true,
	Versioned:   false,
	Constructor: func() runtime.Object { return &ComponentInstance{} },
}
type ComponentInstanceMetadata struct {
	Key *ComponentInstanceKey
}
const AllowIngres = "allow_ingress"
type ComponentInstance struct {
	runtime.TypeKind `yaml:",inline"`
	Metadata *ComponentInstanceMetadata
	Error error
	ClaimKeys map[string]int
	IsCode bool
	CalculatedLabels *lang.LabelSet
	CalculatedDiscovery util.NestedParameterMap
	CalculatedCodeParams util.NestedParameterMap
	DataForPlugins map[string]string
	EdgesOut map[string]bool
	CreatedAt time.Time
	UpdatedAt time.Time
	EndpointsUpToDate bool
	Endpoints map[string]string
}
func newComponentInstance(cik *ComponentInstanceKey) *ComponentInstance {
	return &ComponentInstance{
		TypeKind:             TypeComponentInstance.GetTypeKind(),
		Metadata:             &ComponentInstanceMetadata{Key: cik},
		ClaimKeys:            make(map[string]int),
		CalculatedLabels:     lang.NewLabelSet(make(map[string]string)),
		CalculatedDiscovery:  util.NestedParameterMap{},
		CalculatedCodeParams: util.NestedParameterMap{},
		EdgesOut:             make(map[string]bool),
		DataForPlugins:       make(map[string]string),
		Endpoints:            make(map[string]string),
	}
}
func (instance *ComponentInstance) GetKey() string {
	return instance.Metadata.Key.GetKey()
}