-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add prometheus to helm chart Signed-off-by: scott weiss <sdw35@cornell.edu> * Merge branch 'master' into add-prometheus-to-helmchart Signed-off-by: scott weiss <sdw35@cornell.edu> * use defaults in flag parse Signed-off-by: scott weiss <sdw35@cornell.edu> * set from env Signed-off-by: scott weiss <sdw35@cornell.edu> * fix dependency in makefile Signed-off-by: scott weiss <sdw35@cornell.edu> * fix init Signed-off-by: scott weiss <sdw35@cornell.edu> * include HELM_HOME in cb file * Merge branch 'add-prometheus-to-helmchart' of github.com:solo-io/glooshot into add-prometheus-to-helmchart * revert helm init
- Loading branch information
1 parent
2c373db
commit f55f1b2
Showing
14 changed files
with
160 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changelog: | ||
- type: NEW_FEATURE | ||
description: add prometheus to the helm chart | ||
issueLink: https://github.com/solo-io/glooshot/issues/37 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Generated | ||
values.yaml | ||
Chart.yaml | ||
requirements.yaml | ||
requirements.lock | ||
charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package generate | ||
|
||
type Dependency struct { | ||
Name string `json:"name"` | ||
Version string `json:"version"` | ||
Repository string `json:"repository"` | ||
Condition string `json:"condition,omitempty"` | ||
} | ||
|
||
type DependencyList struct { | ||
Dependencies []Dependency `json:"dependencies"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
dependencies: | ||
- name: supergloo | ||
repository: https://storage.googleapis.com/supergloo-helm | ||
condition: supergloo.enabled | ||
- name: prometheus | ||
repository: https://kubernetes-charts.storage.googleapis.com/ | ||
version: 8.4.1 | ||
condition: prometheus.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package run | ||
|
||
import ( | ||
"time" | ||
|
||
v1 "github.com/solo-io/glooshot/pkg/api/v1" | ||
"github.com/solo-io/glooshot/pkg/cli/flagutils" | ||
"github.com/solo-io/solo-kit/pkg/api/v1/resources/core" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
func Cmd(opts *RunExperimentOptions) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "run", | ||
Aliases: []string{"r"}, | ||
Short: "run an experiment and wait for the result", | ||
} | ||
|
||
flagutils.AddMetadataFlags(cmd.PersistentFlags(), &opts.Metadata) | ||
|
||
return cmd | ||
} | ||
|
||
type RunExperimentOptions struct { | ||
Metadata core.Metadata | ||
Faults | ||
} | ||
|
||
func experimentFromOpts(opts RunExperimentOptions) (*v1.Experiment, error) { | ||
var ( | ||
failureConditions []*v1.FailureCondition | ||
faults []*v1.ExperimentSpec_InjectedFault | ||
duration *time.Duration | ||
) | ||
return &v1.Experiment{ | ||
Metadata: opts.Metadata, | ||
Spec: &v1.ExperimentSpec{ | ||
Faults: faults, | ||
FailureConditions: failureConditions, | ||
Duration: duration, | ||
TargetMesh: targetMesh, | ||
}, | ||
}, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package flagutils | ||
|
||
import ( | ||
"github.com/solo-io/solo-kit/pkg/api/v1/resources/core" | ||
"github.com/spf13/pflag" | ||
) | ||
|
||
func AddMetadataFlags(set *pflag.FlagSet, in *core.Metadata) { | ||
set.StringVar(&in.Name, "name", "", "name for the resource") | ||
set.StringVar(&in.Namespace, "namespace", "supergloo-system", "namespace for the resource") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters