fix: Use cluster-issuer for TLS certs in project deploys
The deployer was using cert-manager.io/issuer (namespace-scoped) referencing letsencrypt-threesix which only exists in the threesix namespace. Projects deploy to the projects namespace, so changed to cert-manager.io/cluster-issuer with letsencrypt-prod. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
aa6fa4ebdf
commit
4c41bc3a3f
@ -105,7 +105,7 @@ func loadConfig() Config {
|
|||||||
CloudflareZoneID: os.Getenv("CLOUDFLARE_ZONE_ID"),
|
CloudflareZoneID: os.Getenv("CLOUDFLARE_ZONE_ID"),
|
||||||
DefaultDomain: getEnv("DEFAULT_DOMAIN", "threesix.ai"),
|
DefaultDomain: getEnv("DEFAULT_DOMAIN", "threesix.ai"),
|
||||||
DeployNamespace: getEnv("DEPLOY_NAMESPACE", "projects"),
|
DeployNamespace: getEnv("DEPLOY_NAMESPACE", "projects"),
|
||||||
DeployTLSIssuer: getEnv("DEPLOY_TLS_ISSUER", "letsencrypt-threesix"),
|
DeployTLSIssuer: getEnv("DEPLOY_TLS_ISSUER", "letsencrypt-prod"),
|
||||||
ClusterIP: getEnv("CLUSTER_IP", "208.122.204.172"),
|
ClusterIP: getEnv("CLUSTER_IP", "208.122.204.172"),
|
||||||
RegistryURL: getEnv("REGISTRY_URL", "zot.threesix.svc.cluster.local:5000"),
|
RegistryURL: getEnv("REGISTRY_URL", "zot.threesix.svc.cluster.local:5000"),
|
||||||
WoodpeckerURL: getEnv("WOODPECKER_URL", "https://ci.threesix.ai"),
|
WoodpeckerURL: getEnv("WOODPECKER_URL", "https://ci.threesix.ai"),
|
||||||
|
|||||||
@ -200,7 +200,7 @@ func (d *Deployer) createOrUpdateIngress(ctx context.Context, spec domain.Deploy
|
|||||||
|
|
||||||
annotations := map[string]string{}
|
annotations := map[string]string{}
|
||||||
if d.config.TLSIssuer != "" {
|
if d.config.TLSIssuer != "" {
|
||||||
annotations["cert-manager.io/issuer"] = d.config.TLSIssuer
|
annotations["cert-manager.io/cluster-issuer"] = d.config.TLSIssuer
|
||||||
}
|
}
|
||||||
|
|
||||||
ingress := d.buildIngress(spec, ns, pathType, ingressClass, tlsSecretName, annotations)
|
ingress := d.buildIngress(spec, ns, pathType, ingressClass, tlsSecretName, annotations)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user