func (ar *AppRef) MakeScaleSecretName() string {
	return names.GenerateResourceName(ar.Name + "-scale")
}
MakeScaleSecretName returns the name of the kube secret holding the number
of desired instances for referenced application
package models
import (
	"github.com/epinio/epinio/internal/names"
)
const (
	EpinioStageIDLabel      = "epinio.suse.org/stage-id"
	EpinioStageBlobUIDLabel = "epinio.suse.org/blob-uid"
	ApplicationCreated = "created"
	ApplicationStaging = "staging"
	ApplicationRunning = "running"
	ApplicationError   = "error"
)
type ApplicationStatus string
type GitRef struct {
	Revision string `json:"revision" yaml:"revision,omitempty"`
	URL      string `json:"url"      yaml:"url"`
}
type App struct {
	Meta          AppRef                   `json:"meta"`
	Configuration ApplicationUpdateRequest `json:"configuration"`
	Workload      *AppDeployment           `json:"deployment,omitempty"`
	Status        ApplicationStatus        `json:"status"`
	StatusMessage string                   `json:"statusmessage"`
}
type AppDeployment struct {
	Active          bool   `json:"active,omitempty"`  
	CreatedAt       string `json:"createdAt,omitempty"`
	Restarts        int32  `json:"restarts"`
	MemoryBytes     int64  `json:"memoryBytes"`
	MilliCPUs       int64  `json:"millicpus"`
	DesiredReplicas int32  `json:"desiredreplicas"`
	ReadyReplicas   int32  `json:"readyreplicas"`
	Username        string `json:"username,omitempty"`  
	StageID         string `json:"stage_id,omitempty"`  
	Status          string `json:"status,omitempty"`    
	Route           string `json:"route,omitempty"`     
}
func NewApp(name string, org string) *App {
	return &App{
		Meta: AppRef{
			Name: name,
			Org:  org,
		},
	}
}
func (a *App) AppRef() AppRef {
	return a.Meta
}
type AppList []App
func (al AppList) Len() int {
	return len(al)
}
func (al AppList) Swap(i, j int) {
	al[i], al[j] = al[j], al[i]
}
func (al AppList) Less(i, j int) bool {
	return al[i].Meta.Name < al[j].Meta.Name
}
type AppRef struct {
	Name string `json:"name"`
	Org  string `json:"namespace"`  
}
func NewAppRef(name string, org string) AppRef {
	return AppRef{Name: name, Org: org}
}
func (ar *AppRef) App() *App {
	return NewApp(ar.Name, ar.Org)
}
func (ar *AppRef) MakeEnvSecretName() string {
	return names.GenerateResourceName(ar.Name + "-env")
}
func (ar *AppRef) MakeServiceSecretName() string {
	return names.GenerateResourceName(ar.Name + "-svc")
}