Skip to content

Commit

Permalink
fix unknown github error
Browse files Browse the repository at this point in the history
Signed-off-by: Alero Awani <[email protected]>
  • Loading branch information
Alero-Awani committed Nov 8, 2024
1 parent faa5d9d commit 310f8e1
Showing 1 changed file with 12 additions and 0 deletions.
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 310f8e1

Please sign in to comment.