agones.dev/agones@v1.53.0/install/terraform/modules/oke-helm3/variables.tf (about) 1 # Copyright 2024 Google LLC All Rights Reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 #Helm variables 16 17 variable "chart" { 18 default = "agones" 19 } 20 21 variable "force_update" { 22 default = "true" 23 } 24 25 variable "agones_version" { 26 default = "" 27 } 28 29 variable "udp_expose" { 30 default = "true" 31 } 32 33 variable "log_level" { 34 default = "info" 35 } 36 37 variable "feature_gates" { 38 default = "" 39 } 40 41 variable "crd_cleanup" { 42 default = "true" 43 } 44 45 variable "image_registry" { 46 default = "us-docker.pkg.dev/agones-images/release" 47 } 48 49 variable "pull_policy" { 50 default = "IfNotPresent" 51 } 52 53 variable "always_pull_sidecar" { 54 default = "false" 55 } 56 57 variable "image_pull_secret" { 58 default = "" 59 } 60 61 variable "ping_service_type" { 62 default = "LoadBalancer" 63 } 64 65 variable "values_file" { 66 default = "" 67 } 68 69 variable "gameserver_minPort" { 70 default = "7000" 71 } 72 73 variable "gameserver_maxPort" { 74 default = "8000" 75 } 76 77 variable "gameserver_namespaces" { 78 default = ["default"] 79 type = list(string) 80 } 81 82 variable "load_balancer_ip" { 83 default = "" 84 } 85 86 variable "set_values" { 87 type = set(object({ 88 name = string 89 type = string 90 value = string 91 })) 92 default = [] 93 } 94 95 variable "set_list_values" { 96 type = set(object({ 97 name = string 98 value = list(string) 99 })) 100 default = [] 101 } 102 103 variable "set_sensitive_values" { 104 type = set(object({ 105 name = string 106 type = string 107 value = string 108 })) 109 default = [] 110 sensitive = true 111 } 112 113 variable "cluster_kebuconfig" { 114 description = "OKE kubeconfig" 115 } 116 117 variable "cluster_endpoint_visibility" { 118 default = "Public" 119 description = "The Kubernetes cluster that is created will be hosted on a public subnet with a public IP address auto-assigned or on a private subnet. If Private, additional configuration will be necessary to run kubectl commands" 120 121 validation { 122 condition = var.cluster_endpoint_visibility == "Private" || var.cluster_endpoint_visibility == "Public" 123 error_message = "Sorry, but cluster endpoint visibility can only be Private or Public." 124 } 125 } 126 127 variable "cluster_load_balancer_visibility" { 128 default = "Public" 129 description = "The Load Balancer that is created will be hosted on a public subnet with a public IP address auto-assigned or on a private subnet. This affects the Kubernetes services, ingress controller and other load balancers resources" 130 131 validation { 132 condition = var.cluster_load_balancer_visibility == "Private" || var.cluster_load_balancer_visibility == "Public" 133 error_message = "Sorry, but cluster load balancer visibility can only be Private or Public." 134 } 135 }