-
Notifications
You must be signed in to change notification settings - Fork 1
/
add_on_helm_cert_manager.tf
36 lines (31 loc) · 1.09 KB
/
add_on_helm_cert_manager.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## Copyright © 2022, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
## https://github.com/jetstack/cert-manager/blob/master/README.md
## https://artifacthub.io/packages/helm/cert-manager/cert-manager
# locals {
# enable_cert_manager = var.enable_flink ? true : var.enable_cert_manager
# }
resource "helm_release" "cert_manager" {
count = local.enable_cert_manager ? 1 : 0
name = "cert-manager"
repository = "https://charts.jetstack.io"
chart = "cert-manager"
version = "1.8.2"
namespace = "cert-manager"
create_namespace = true
timeout = "600"
wait = true # wait to allow the webhook be properly configured
set {
name = "installCRDs"
value = true
}
set {
name = "webhook.timeoutSeconds"
value = "30"
}
depends_on = [
data.oci_containerengine_cluster_kube_config.oke,
oci_containerengine_cluster.oci_oke_cluster,
oci_containerengine_node_pool.oci_oke_node_pool,
]
}