From 310f8e16d8cb59bdfaa18c2a88042321d1373e2e Mon Sep 17 00:00:00 2001 From: Alero Awani Date: Fri, 8 Nov 2024 18:14:18 +0100 Subject: [PATCH] fix unknown github error Signed-off-by: Alero Awani --- models/meshmodel/core/v1beta1/host.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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