Skip to content

Commit

Permalink
Fix annotation strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
badri committed Dec 22, 2023
1 parent e6151f7 commit 77a167f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sb-registry/enable
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def main(cluster_name, tld, password):
args.extend(["--set", f"ingress.hosts[0]=registry.{cluster_name}.{tld}"])
args.extend(["--set", f"ingress.tls[0].hosts[0]=registry.{cluster_name}.{tld}"])
args.extend(["--set", "ingress.tls[0].secretName=registry-tls"])
args.extend(["--set", "ingress.annotations.cert-manager.io/cluster-issuer=letsencrypt-prod"])
args.extend(["--set", 'ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt-prod'])
# maybe set ingress class
args.extend(["--set", "ingress.className=public"])
args.extend(["--set", "ingress.annotations.nginx.ingress.kubernetes.io/proxy-body-size=0"])
args.extend(["--set", 'ingress.annotations."nginx\.ingress\.kubernetes\.io/proxy-body-size=0"'])
args.extend(["--set", f"secrets.htpasswd={cluster_name}:{password}"])
args.extend(["--set", "updateStrategy.type=Recreate"])
subprocess.run([HELM, "install", "sb-registry", "docker-registry/docker-registry", *args])
Expand Down

0 comments on commit 77a167f

Please sign in to comment.