Skip to content
Permalink
Browse files

Replace tab with spaces in yaml string

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
  • Loading branch information
Waterdrips authored and alexellis committed Feb 13, 2020
1 parent 72de7fa commit 180e26c472434ebe5bf2bf6e6a429dbaf4e95465
Showing with 7 additions and 3 deletions.
  1. +7 −3 cmd/apps/registry_ingress_app.go
@@ -18,7 +18,7 @@ type RegInputData struct {
CertmanagerEmail string
IngressClass string
Namespace string
MaxSize string
NginxMaxBuffer string
}

func MakeInstallRegistryIngress() *cobra.Command {
@@ -105,7 +105,11 @@ func buildRegistryYAML(domain, email, ingressClass, namespace, maxSize string) (
CertmanagerEmail: email,
IngressClass: ingressClass,
Namespace: namespace,
MaxSize: maxSize,
NginxMaxBuffer: "",
}

if ingressClass == "nginx" {
inputData.NginxMaxBuffer = fmt.Sprintf(" nginx.ingress.kubernetes.io/proxy-body-size: %s", maxSize)
}

var tpl bytes.Buffer
@@ -156,7 +160,7 @@ metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod-registry
kubernetes.io/ingress.class: {{.IngressClass}}
nginx.ingress.kubernetes.io/proxy-body-size: {{.MaxSize}}
{{.NginxMaxBuffer}}
spec:
rules:
- host: {{.IngressDomain}}

0 comments on commit 180e26c

Please sign in to comment.
You can’t perform that action at this time.