Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antigenius0910/bccd2ff8d661171eee3c00bef75c1185 to your computer and use it in GitHub Desktop.
Save antigenius0910/bccd2ff8d661171eee3c00bef75c1185 to your computer and use it in GitHub Desktop.
This OriginIssuer resource creates a binding between cert-manager and the Cloudflare API for an account.
data "kubectl_filename_list" "origin-ca-issuer" {
pattern = "./origin-ca-issuer/issuer.yaml"
}
resource "kubectl_manifest" "origin-ca-issuer" {
depends_on = [
kubernetes_secret.origin-ca-key
]
count = length(data.kubectl_filename_list.origin-ca-issuer.matches)
yaml_body = file(element(data.kubectl_filename_list.origin-ca-issuer.matches, count.index))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment