func OperationScopedAppDeployment()

in internal/utils/controller/appdeployment_job.go [119:130]


func OperationScopedAppDeployment(appName, opId string) string {
	if len(appName) > MaxAppNameLength {
		appName = appName[:MaxAppNameLength]
	}
	if len(opId) > MaxOpIdLength {
		opId = opId[:MaxOpIdLength]
	}
	if opId == "" {
		return appName
	}
	return opId + "-" + appName
}