From c47c17b1fd7d2ef6cdb567494eecec442cb33ff5 Mon Sep 17 00:00:00 2001 From: Jougan-0 Date: Fri, 8 Nov 2024 00:59:00 +0530 Subject: [PATCH 1/2] fix go sum w/signoff Signed-off-by: Jougan-0 --- go.sum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.sum b/go.sum index f4b94cd3..0a244bb6 100644 --- a/go.sum +++ b/go.sum @@ -608,8 +608,8 @@ github.com/mattn/go-sqlite3 v1.14.17/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/meshery/kompose v1.0.1 h1:lg8B/pkLh6762jeFsQATD8UJZZwXZf/aviC3/dzw78A= github.com/meshery/kompose v1.0.1/go.mod h1:TWhWTEMbJBUzENf4JTEtBmZRFm/r8n0nS6v4/nSD2vA= -github.com/meshery/schemas v0.7.36 h1:KQOz/SODr+T6fDS2lDSrNo/Eu3LCaEUGIRauQtvXkjg= -github.com/meshery/schemas v0.7.36/go.mod h1:wOh519/EDxiYlC4aeGv74ru+t9h9VJ4P2JYIvSfdPWQ= +github.com/meshery/schemas v0.7.38 h1:vfoJXc+0K8HTqslIQ6/XFOgo1Y6+ABJsAIybXHcI55g= +github.com/meshery/schemas v0.7.38/go.mod h1:wOh519/EDxiYlC4aeGv74ru+t9h9VJ4P2JYIvSfdPWQ= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM= github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk= From 310f8e16d8cb59bdfaa18c2a88042321d1373e2e Mon Sep 17 00:00:00 2001 From: Alero Awani Date: Fri, 8 Nov 2024 18:14:18 +0100 Subject: [PATCH 2/2] 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