Skip to content

Commit

Permalink
Merge pull request #53 from Revolyssup/meshkitchanges
Browse files Browse the repository at this point in the history
changes according to latest meshkit version
  • Loading branch information
leecalcote authored Oct 18, 2021
2 parents 0ebcaf6 + 7955aca commit cdd3dad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replace (

require (
github.com/layer5io/meshery-adapter-library v0.1.24
github.com/layer5io/meshkit v0.2.30
github.com/layer5io/meshkit v0.2.31
github.com/layer5io/service-mesh-performance v0.3.3
k8s.io/apimachinery v0.21.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ github.com/layer5io/meshery-adapter-library v0.1.24/go.mod h1:SLknhKksSoUtKzG2tv
github.com/layer5io/meshkit v0.2.24/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
github.com/layer5io/meshkit v0.2.30 h1:ubhnZaMxz3jfW0QX1S9LeBagq2RVnXxsnEyLaOzza8s=
github.com/layer5io/meshkit v0.2.30/go.mod h1:WyC18J2CRVwlphKjj0V/W36szAy0yJMNKu3PId19RPE=
github.com/layer5io/meshkit v0.2.31 h1:YOQ+XQzI34BDXmV+pHISChO7y7xcRK2L9KqlrhYx0Jk=
github.com/layer5io/meshkit v0.2.31/go.mod h1:WyC18J2CRVwlphKjj0V/W36szAy0yJMNKu3PId19RPE=
github.com/layer5io/service-mesh-performance v0.3.2-0.20210122142912-a94e0658b021/go.mod h1:W153amv8aHAeIWxO7b7d7Vibt9RhaEVh4Uh+RG+BumQ=
github.com/layer5io/service-mesh-performance v0.3.2/go.mod h1:W153amv8aHAeIWxO7b7d7Vibt9RhaEVh4Uh+RG+BumQ=
github.com/layer5io/service-mesh-performance v0.3.3 h1:KtouYXg64y+G0soPJwDeB0sM6PXolBpkV6Ke15aqwmk=
Expand Down
14 changes: 10 additions & 4 deletions nginx/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
repo = "https://helm.nginx.com/stable"
repo = "https://helm.nginx.com/stable"
chart = "nginx-service-mesh"
)

Expand Down Expand Up @@ -59,14 +59,20 @@ func (nginx *Nginx) applyHelmChart(del bool, version, namespace string) error {
return ErrApplyHelmChart(err)
}
}
var act mesherykube.HelmChartAction
if del {
act = mesherykube.UNINSTALL
} else {
act = mesherykube.INSTALL
}
err = kClient.ApplyHelmChart(mesherykube.ApplyHelmChartConfig{
ChartLocation: mesherykube.HelmChartLocation{
Repository: repo,
Chart: chart,
Version: chartVersion,
Chart: chart,
Version: chartVersion,
},
Namespace: namespace,
Delete: del,
Action: act,
CreateNamespace: true,
})
if err != nil {
Expand Down

0 comments on commit cdd3dad

Please sign in to comment.