func (gc graphContext) Dependency() *client.Dependency {
	return gc.dependency
}
Dependency returns Dependency for which child is the resource being created with this context
package scheduler
import (
	"container/list"
	"fmt"
	"log"
	"sort"
	"strings"
	"time"
	"github.com/Mirantis/k8s-AppController/pkg/client"
	"github.com/Mirantis/k8s-AppController/pkg/copier"
	"github.com/Mirantis/k8s-AppController/pkg/interfaces"
	"github.com/Mirantis/k8s-AppController/pkg/resources"
	"k8s.io/client-go/pkg/api"
	"k8s.io/client-go/pkg/api/unversioned"
	"k8s.io/client-go/pkg/labels"
)
type dependencyGraph struct {
	graph        map[string]*ScheduledResource
	scheduler    *scheduler
	graphOptions interfaces.DependencyGraphOptions
	finalizer    func()
}
type graphContext struct {
	args       map[string]string
	graph      *dependencyGraph
	scheduler  *scheduler
	flow       *client.Flow
	dependency *client.Dependency
	replica    string
}
var _ interfaces.GraphContext = &graphContext{}
func (gc graphContext) Scheduler() interfaces.Scheduler {
	return gc.scheduler
}
func (gc graphContext) GetArg(name string) string {
	switch name {
	case "AC_NAME":
		return gc.replica
	case "AC_FLOW_NAME":
		return gc.flow.Name
	default:
		val, ok := gc.args[name]
		if ok {
			return val
		}
		val, ok = gc.graph.Options().Args[name]
		if ok {
			return val
		}
		fp, ok := gc.flow.Parameters[name]
		if ok && fp.Default != nil {
			return *fp.Default
		}
		return ""
	}
}
func (gc graphContext) Graph() interfaces.DependencyGraph {
	return gc.graph
}