From 86e0cef208995b8963e46c9b1464881f0d605d18 Mon Sep 17 00:00:00 2001 From: Samir Faci Date: Fri, 10 Mar 2023 11:45:12 -0500 Subject: [PATCH] Adding support for ip_allocation_policy->stack_type --- galaxy.yml | 9 +++++---- plugins/modules/gcp_container_cluster.py | 12 ++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index 91695a5..4569bae 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,7 +9,7 @@ namespace: google name: cloud # The version of the collection. Must be compatible with semantic versioning -version: "1.1.4" +version: "1.1.3" # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md @@ -17,8 +17,9 @@ readme: README.md # A list of the collection's content authors. Can be just the name or in the format 'Full Name (url) # @nicks:irc/im.site#channel' authors: - - Google - - Google +- Google +- Google + ### OPTIONAL but strongly recommended @@ -28,7 +29,7 @@ description: The Google Cloud Platform collection. # Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only # accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file' license: - - GPL-2.0-or-later +- GPL-2.0-or-later # The path to the license file for the collection. This path is relative to the root of the collection. This key is # mutually exclusive with 'license' diff --git a/plugins/modules/gcp_container_cluster.py b/plugins/modules/gcp_container_cluster.py index b46bd5a..ee059a1 100644 --- a/plugins/modules/gcp_container_cluster.py +++ b/plugins/modules/gcp_container_cluster.py @@ -552,6 +552,11 @@ options: - Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. required: false type: str + stack_type: + description: + - The IP stack type of the cluster, possible values: (STACK_TYPE_UNSPECIFIED, IPV4, IPV4_IPV6) + required: false + type: str initial_cluster_version: description: - The software version of the master endpoint and kubelets used in the cluster @@ -1257,6 +1262,11 @@ ipAllocationPolicy: - Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. returned: success type: str + stackType: + description: + - The IP stack type of the cluster, possible values: (STACK_TYPE_UNSPECIFIED, IPV4, IPV4_IPV6) + type: str + returned: success endpoint: description: - The IP address of this cluster's master endpoint. @@ -1564,6 +1574,7 @@ def main(): node_ipv4_cidr_block=dict(type='str'), services_ipv4_cidr_block=dict(type='str'), tpu_ipv4_cidr_block=dict(type='str'), + stack_type=dict(type='str'), ), ), initial_cluster_version=dict(type='str'), @@ -2253,6 +2264,7 @@ class ClusterIpallocationpolicy(object): u'nodeIpv4CidrBlock': self.request.get('node_ipv4_cidr_block'), u'servicesIpv4CidrBlock': self.request.get('services_ipv4_cidr_block'), u'tpuIpv4CidrBlock': self.request.get('tpu_ipv4_cidr_block'), + u'stackType': self.request.get('stack_type'), } )