Skip to content

Commit 3d054d2

Browse files
committed
configured the field with defaults values
1 parent 9a03f0c commit 3d054d2

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

modules/gke-node-pool/metadata.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ spec:
129129
- name: cluster
130130
description: The cluster to create the node pool for. Cluster must be present in location provided for clusters. May be specified in the format projects/{{project}}/locations/{{location}}/clusters/{{cluster}} or as just the name of the cluster.
131131
varType: string
132+
required: true
132133
connections:
133134
- source:
134135
source: github.com/Daisyprakash/terraform-google-kubernetes-engine//modules/gke-standard-cluster
@@ -319,7 +320,7 @@ spec:
319320
insecure_kubelet_readonly_port_enabled: false
320321
machine_type: e2-medium
321322
workload_metadata_config:
322-
mode: GKE_METADATA
323+
mode: MODE_UNSPECIFIED
323324
- name: network_config
324325
description: " The network configuration of the pool. Such as configuration for Adding Pod IP address ranges to the node pool. Or enabling private nodes.\n - create_pod_range: Whether to create a new range for pod IPs in this node pool. Defaults are provided for pod_range and pod_ipv4_cidr_block if they are not specified.\n - enable_private_nodes: Whether nodes have internal IP addresses only.\n - pod_ipv4_cidr_block: The IP address range for pod IPs in this node pool. Only applicable if createPodRange is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) to pick a specific range to use.\n - pod_range - The ID of the secondary range for pod IPs. If create_pod_range is true, this ID is used for the new range. If create_pod_range is false, uses an existing secondary range with this ID.\n - additional_node_network_configs - We specify the additional node networks for this node pool using this list. Each node network corresponds to an additional interface.\n - network - Name of the VPC where the additional interface belongs.\n - subnetwork - Name of the subnetwork where the additional interface belongs\n - additional_pod_network_configs - We specify the additional pod networks for this node pool using this list. Each pod network corresponds to an additional alias IP range for the node.\n - subnetwork - Name of the subnetwork where the additional pod network belongs.\n - secondary_pod_range - The name of the secondary range on the subnet which provides IP address for this pod range.\n - max_pods_per_node - The maximum number of pods per node which use this pod network.\n - pod_cidr_overprovision_config - Configuration for node-pool level pod cidr overprovision. If not set, the cluster level setting will be inherited.\n - disabled - Whether pod cidr overprovision is disabled.\n - network_performance_config - Network bandwidth tier configuration.\n - total_egress_bandwidth_tier - Specifies the total network bandwidth tier for the NodePool. Valid values include: \"TIER_1\" and \"TIER_UNSPECIFIED\".\n"
325326
varType: |-

modules/gke-standard-cluster/metadata.display.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ spec:
6161
datapath_provider:
6262
name: datapath_provider
6363
title: Datapath Provider
64+
altDefaults:
65+
- type: ALTERNATE_TYPE_DC
66+
value: LEGACY_DATAPATH
6467
default_max_pods_per_node:
6568
name: default_max_pods_per_node
6669
title: Default Max Pods Per Node
@@ -202,6 +205,9 @@ spec:
202205
private_ipv6_google_access:
203206
name: private_ipv6_google_access
204207
title: Private Ipv6 Google Access
208+
altDefaults:
209+
- type: ALTERNATE_TYPE_DC
210+
value: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED
205211
project:
206212
name: project
207213
title: Project

modules/gke-standard-cluster/metadata.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ spec:
136136
- name: project
137137
description: The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
138138
varType: string
139+
required: true
139140
- name: location
140141
description: The location (region or zone) in which the cluster master will be created, as well as the default node location. If you specify a zone (such as us-central1-a), the cluster will be a zonal cluster with a single cluster master. If you specify a region (such as us-west1), the cluster will be a regional cluster with multiple masters spread across zones in the region, and with default node locations in those zones as well.
141142
varType: string
@@ -303,7 +304,7 @@ spec:
303304
- name: initial_node_count
304305
description: The number of nodes to create in this cluster's default node pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Must be set if node_pool is not specified.
305306
varType: number
306-
defaultValue: 0
307+
defaultValue: 1
307308
- name: ip_allocation_policy
308309
description: "Configuration of cluster IP allocation for VPC-native clusters. If this block is unset during creation, it will be set by the GKE backend. "
309310
varType: |-
@@ -366,6 +367,8 @@ spec:
366367
gcp_public_cidrs_access_enabled = optional(bool)
367368
private_endpoint_enforcement_enabled = optional(bool)
368369
})
370+
defaultValue:
371+
private_endpoint_enforcement_enabled: true
369372
- name: min_master_version
370373
description: The minimum version of the master. GKE will auto-update the master to new versions, so this does not guarantee the master version--use the read-only master_version field to obtain a current version. If unset, the server's default version will be used.
371374
varType: string

0 commit comments

Comments
 (0)