pkg/components/cert-manager: give default value for namespace
So user don't have to specify it.
@@ -21,13 +21,12 @@ func init() {
type component struct {
Email string `hcl:"email,attr"`
- Namespace *string `hcl:"namespace,attr"`
+ Namespace string `hcl:"namespace,optional"`
}
func newComponent() *component {
- defaultNamespace := ""
return &component{
- Namespace: &defaultNamespace,
+ Namespace: "cert-manager",
}
}
@@ -52,7 +51,7 @@ func (c *component) RenderManifests() (map[string]string, error) {
releaseOptions := &chartutil.ReleaseOptions{
Name: name,
- Namespace: *c.Namespace,
+ Namespace: c.Namespace,
IsInstall: true,
}
