mirror of https://github.com/helm/helm
parent
6531f093fe
commit
a9694a1dcc
@ -0,0 +1,20 @@
|
||||
package rules
|
||||
|
||||
type (
|
||||
templateOptions struct {
|
||||
releaseName string
|
||||
}
|
||||
|
||||
TemplateOption func(o *templateOptions)
|
||||
)
|
||||
|
||||
var defaultTemplateOptions = &templateOptions{
|
||||
releaseName: "test-release",
|
||||
}
|
||||
|
||||
// WithReleaseName specify release name for linter
|
||||
func WithReleaseName(name string) TemplateOption {
|
||||
return func(o *templateOptions) {
|
||||
o.releaseName = name
|
||||
}
|
||||
}
|
Loading…
Reference in new issue