|
|
@ -112,24 +112,16 @@ data:
|
|
|
|
name: value
|
|
|
|
name: value
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
func rsFixture() *ReleaseServer {
|
|
|
|
|
|
|
|
clientset := fake.NewSimpleClientset()
|
|
|
|
|
|
|
|
return &ReleaseServer{
|
|
|
|
|
|
|
|
ReleaseModule: &LocalReleaseModule{
|
|
|
|
|
|
|
|
clientset: clientset,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
env: MockEnvironment(),
|
|
|
|
|
|
|
|
clientset: clientset,
|
|
|
|
|
|
|
|
Log: func(_ string, _ ...interface{}) {},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type chartOptions struct {
|
|
|
|
type chartOptions struct {
|
|
|
|
*chart.Chart
|
|
|
|
*chart.Chart
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type chartOption func(*chartOptions)
|
|
|
|
type chartOption func(*chartOptions)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func rsFixture() *ReleaseServer {
|
|
|
|
|
|
|
|
return NewReleaseServer(MockEnvironment(), fake.NewSimpleClientset(), false)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func buildChart(opts ...chartOption) *chart.Chart {
|
|
|
|
func buildChart(opts ...chartOption) *chart.Chart {
|
|
|
|
c := &chartOptions{
|
|
|
|
c := &chartOptions{
|
|
|
|
Chart: &chart.Chart{
|
|
|
|
Chart: &chart.Chart{
|
|
|
|