diff --git a/models/meshmodel/core/v1beta1/host.go b/models/meshmodel/core/v1beta1/host.go index fe7d1c61..d21fa365 100644 --- a/models/meshmodel/core/v1beta1/host.go +++ b/models/meshmodel/core/v1beta1/host.go @@ -50,6 +50,8 @@ func NewDependencyHandler(connectionKind string) (DependencyHandler, error) { return Kubernetes{}, nil case "artifacthub": return ArtifactHub{}, nil + case "github": + return GitHub{}, nil } return nil, ErrUnknownKind(fmt.Errorf("unknown kind %s", connectionKind)) } @@ -115,3 +117,13 @@ func (k Kubernetes) HandleDependents(_ component.ComponentDefinition, _ *kuberne func (k Kubernetes) String() string { return "kubernetes" } + +type GitHub struct{} + +func(gh GitHub) HandleDependents(_ component.ComponentDefinition, _ *kubernetes.Client, _, _ bool) (summary string, err error) { + return summary, err +} + +func(gh GitHub) String() string { + return "github" +} \ No newline at end of file