Skip to content

Commit

Permalink
Merge branch 'master' into updateIntrospec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jougan-0 authored Nov 25, 2024
2 parents d2dfe34 + 9c570ce commit c4dea9f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
12 changes: 12 additions & 0 deletions models/meshmodel/core/v1beta1/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down Expand Up @@ -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"
}

0 comments on commit c4dea9f

Please sign in to comment.