This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
variables.tf
106 lines (85 loc) · 3.66 KB
/
variables.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# ---------------------------------------------------------------------------------------------------------------------
# MODULE PARAMETERS
# These variables are expected to be passed in by the operator
# ---------------------------------------------------------------------------------------------------------------------
variable "tiller_namespace" {
description = "The namespace to deploy Tiller into."
type = string
}
variable "resource_namespace" {
description = "The namespace where the Helm chart resources will be deployed into by Tiller."
type = string
}
variable "service_account_name" {
description = "The name of the service account to use for Tiller."
type = string
}
variable "tls_subject" {
description = "The issuer information that contains the identifying information for the Tiller server. Used to generate the TLS certificate keypairs. See https://www.terraform.io/docs/providers/tls/r/cert_request.html#common_name for a list of expected keys."
type = map(any)
default = {
common_name = "tiller"
organization = "Gruntwork"
}
}
variable "client_tls_subject" {
description = "The issuer information that contains the identifying information for the helm client of the operator. Used to generate the TLS certificate keypairs. See https://www.terraform.io/docs/providers/tls/r/cert_request.html#common_name for a list of expected keys."
type = map(any)
default = {
common_name = "admin"
organization = "Gruntwork"
}
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL MODULE PARAMETERS
# These variables have reasonable defaults, but can be overridden.
# ---------------------------------------------------------------------------------------------------------------------
# Tiller configuration
variable "tiller_version" {
description = "The version of Tiller to deploy."
type = string
default = "v2.11.0"
}
# TLS algorithm configuration
variable "private_key_algorithm" {
description = "The name of the algorithm to use for private keys. Must be one of: RSA or ECDSA."
type = string
default = "ECDSA"
}
variable "private_key_ecdsa_curve" {
description = "The name of the elliptic curve to use. Should only be used if var.private_key_algorithm is ECDSA. Must be one of P224, P256, P384 or P521."
type = string
default = "P256"
}
variable "private_key_rsa_bits" {
description = "The size of the generated RSA key in bits. Should only be used if var.private_key_algorithm is RSA."
type = number
default = 2048
}
# Kubectl options
variable "kubectl_config_context_name" {
description = "The config context to use when authenticating to the Kubernetes cluster. If empty, defaults to the current context specified in the kubeconfig file."
type = string
default = ""
}
variable "kubectl_config_path" {
description = "The path to the config file to use for kubectl. If empty, defaults to $HOME/.kube/config"
type = string
default = "~/.kube/config"
}
# Helm client config options
variable "grant_helm_client_rbac_user" {
description = "If set, will generate client side TLS certs for this RBAC user."
type = string
default = ""
}
variable "grant_helm_client_rbac_group" {
description = "If set, will generate client side TLS certs for this RBAC group."
type = string
default = ""
}
variable "grant_helm_client_rbac_service_account" {
description = "If set, will generate client side TLS certs for this ServiceAccount. The ServiceAccount should be encoded as NAMESPACE/NAME."
type = string
default = ""
}