Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ClusterIssuer is not using the correct values from the environment #134

Open
nutellinoit opened this issue Oct 5, 2023 · 0 comments

Comments

@nutellinoit
Copy link
Member

nutellinoit commented Oct 5, 2023

The template is always rendered like this:

# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-fury
spec:
  acme:
    email: example@sighup.io
    privateKeySecretRef:
      name: letsencrypt-fury
    server: https://acme-v02.api.letsencrypt.org/directory
    solvers:
    - dns01:
        route53:
          region: eu-west-1
          hostedZoneID: 

Even if the region is different

There should be the region used to create or use the route53 zone (or the one used in the cluster since a global zone has no region) and the correct hostedZoneID that should be the same as the hostedZoneID that is retrieved by https://github.com/sighupio/fury-distribution/blob/main/templates/distribution/terraform/route53.tf.tpl#L13

The template is the following: https://github.com/sighupio/fury-distribution/blob/main/templates/distribution/manifests/ingress/resources/cert-manager-clusterissuer.yml.tpl#L24-L25 these two values are not taken by the values inserted by the user, but they are an output from kubernetes step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant