* Change default values for authorized_ranges from {} to null and
gcp_public_cidrs_access_enabled from false to null in the
access_config.ip_access variable. This ensures the dynamic
master_authorized_networks_config block is properly
conditional on user input.
Previously, these fields would never be null due to their
default values, causing the block to always be initialized
even when users didn't intend to configure authorized networks.
* remove explicit null
* Remove all defaults for access_config.ip_access. Fix permadiff.
* Fix tests
* Swap try with coalesce
---------
Co-authored-by: Julio Castillo <jccb@google.com>
164 lines
4.6 KiB
YAML
164 lines
4.6 KiB
YAML
# Copyright 2025 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
values:
|
|
module.cluster-1.google_container_cluster.cluster:
|
|
addons_config:
|
|
- cloudrun_config:
|
|
- disabled: true
|
|
load_balancer_type: null
|
|
config_connector_config:
|
|
- enabled: false
|
|
dns_cache_config:
|
|
- enabled: true
|
|
gce_persistent_disk_csi_driver_config:
|
|
- enabled: true
|
|
gcp_filestore_csi_driver_config:
|
|
- enabled: true
|
|
gcs_fuse_csi_driver_config:
|
|
- enabled: true
|
|
gke_backup_agent_config:
|
|
- enabled: false
|
|
horizontal_pod_autoscaling:
|
|
- disabled: false
|
|
http_load_balancing:
|
|
- disabled: false
|
|
istio_config:
|
|
- auth: null
|
|
disabled: true
|
|
kalm_config:
|
|
- enabled: false
|
|
network_policy_config:
|
|
- disabled: true
|
|
stateful_ha_config:
|
|
- enabled: false
|
|
allow_net_admin: null
|
|
binary_authorization: []
|
|
control_plane_endpoints_config:
|
|
- dns_endpoint_config:
|
|
- allow_external_traffic: true
|
|
ip_endpoints_config:
|
|
- enabled: false
|
|
cost_management_config:
|
|
- enabled: true
|
|
datapath_provider: ADVANCED_DATAPATH
|
|
default_max_pods_per_node: 32
|
|
deletion_protection: true
|
|
description: null
|
|
disable_l4_lb_firewall_reconciliation: false
|
|
dns_config: []
|
|
effective_labels:
|
|
environment: dev
|
|
goog-terraform-provisioned: 'true'
|
|
enable_autopilot: null
|
|
enable_cilium_clusterwide_network_policy: false
|
|
enable_fqdn_network_policy: true
|
|
enable_intranode_visibility: false
|
|
enable_k8s_beta_apis: []
|
|
enable_kubernetes_alpha: false
|
|
enable_l4_ilb_subsetting: false
|
|
enable_legacy_abac: false
|
|
enable_multi_networking: false
|
|
enable_shielded_nodes: false
|
|
enable_tpu: false
|
|
fleet: []
|
|
initial_node_count: 1
|
|
ip_allocation_policy:
|
|
- additional_pod_ranges_config: []
|
|
cluster_secondary_range_name: pods
|
|
services_secondary_range_name: services
|
|
stack_type: IPV4
|
|
location: europe-west1
|
|
logging_config:
|
|
- enable_components:
|
|
- SYSTEM_COMPONENTS
|
|
maintenance_policy:
|
|
- daily_maintenance_window:
|
|
- start_time: 03:00
|
|
maintenance_exclusion: []
|
|
recurring_window: []
|
|
master_auth:
|
|
- client_certificate_config:
|
|
- issue_client_certificate: false
|
|
min_master_version: null
|
|
monitoring_config:
|
|
- enable_components:
|
|
- SYSTEM_COMPONENTS
|
|
managed_prometheus:
|
|
- enabled: true
|
|
name: cluster-1
|
|
network: projects/xxx/global/networks/aaa
|
|
network_policy: []
|
|
node_config:
|
|
- advanced_machine_features: []
|
|
boot_disk_kms_key: null
|
|
containerd_config: []
|
|
enable_confidential_storage: null
|
|
ephemeral_storage_config: []
|
|
ephemeral_storage_local_ssd_config: []
|
|
fast_socket: []
|
|
flex_start: null
|
|
gvnic: []
|
|
host_maintenance_policy: []
|
|
linux_node_config: []
|
|
local_nvme_ssd_block_config: []
|
|
local_ssd_encryption_mode: null
|
|
max_run_duration: null
|
|
node_group: null
|
|
preemptible: false
|
|
reservation_affinity: []
|
|
resource_labels: null
|
|
resource_manager_tags: null
|
|
sandbox_config: []
|
|
secondary_boot_disks: []
|
|
sole_tenant_config: []
|
|
spot: false
|
|
storage_pools: null
|
|
tags: null
|
|
taint: []
|
|
node_locations:
|
|
- europe-west1-b
|
|
node_pool_defaults:
|
|
- node_config_defaults:
|
|
- containerd_config: []
|
|
gcfs_config:
|
|
- enabled: false
|
|
insecure_kubelet_readonly_port_enabled: 'TRUE'
|
|
pod_security_policy_config: []
|
|
private_cluster_config:
|
|
- enable_private_endpoint: true
|
|
enable_private_nodes: true
|
|
private_endpoint_subnetwork: null
|
|
project: myproject
|
|
remove_default_node_pool: true
|
|
resource_labels:
|
|
environment: dev
|
|
resource_usage_export_config: []
|
|
secret_manager_config: []
|
|
subnetwork: subnet_self_link
|
|
terraform_labels:
|
|
environment: dev
|
|
goog-terraform-provisioned: 'true'
|
|
timeouts: null
|
|
user_managed_keys_config: []
|
|
workload_identity_config:
|
|
- workload_pool: myproject.svc.id.goog
|
|
|
|
counts:
|
|
google_container_cluster: 1
|
|
modules: 1
|
|
resources: 1
|
|
|
|
outputs: {}
|