Commit graph

631 commits

Author SHA1 Message Date
Yusuke Tsutsumi
a9545c77a4 fix linting and updating maintenance guide
Updating the maintainers guide with updated intructions from
Ansible engineers.

Fixing linting issues, and adding the linter as a GitHub workflow
to ensure there are no regressions.
2022-12-07 15:36:21 -08:00
Rebecca Peterson
21c9479ece Update gcp_filestore_instance.py
`filestore/docs/accessing-fileshares` has been removed and replaced with `filestore/docs/csi-driver`
2022-12-02 10:20:13 -08:00
Yusuke Tsutsumi
117224d352 fix gcp_iam_role
gcp_iam_role did not handle the undelete behavior
that is specific to gcp_iam_role.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
6171713572 fix gcp_bigtable_instance
gcp_bigtable_instance scope was using an incorrect scope,
which was causing oauth requests to not complete successfully.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
44eb7c2d29 fix gcp_spanner_database delete
gcp_spanner_database erroneously used LRO handling on delete,
rather than a standard synchronous function. One side effect
was not catching 404s as a not found error code.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
50076e7f36 fix: crypto_key initial_version_creation default
skip_initial_version_creation previously defaulted to None,
which results in an invalid value in the create call to
gcp_kms_crypto_key.

Defaulting to False fixes the issue.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
0e9f2a74b1 fix: gcp_cloudtasks_queue
gcp_cloudtasks_queue was sending a "location" field in the
payload, when the resource did not have such a field.

Removing it fixes the tests.
2022-11-27 08:34:30 -08:00
Yusuke Tsutsumi
d3a7287c37 fix: gcp_container_cluster for GKE 1.19+
Incorporating a fix for GKE 1.19+ (See #444).

Inlined:

Google has removed basic-auth method from within GKE starting version 1.19
This lead the output response of the backend API not to provide basic-auth
data (username and password) anymore.

The current implementation of gcp_container_cluster when generating the kubectl
config file, always set basic-auth data w/o checking if there actually are
available or explicitly provided even when the value are not set/provided
from gcp_container_cluster.

In addition, re-enabling some tests that #444 fixed.

Co-authored-by: Xavier Lamien <laxathom@lxtnow.net>
2022-11-19 21:58:55 -08:00
Yusuke Tsutsumi
ebf095d22d tests: fix gcp_compute_vpn_tunnel
- vpn_gateway required minimal changes (stop using legacy load
  balancers)
- compute_vpn_tunnel requires a valid vpn configuration
  (several dependent forwarding rules and configuration to set up a
  proper tunnel).
2022-11-19 18:40:44 -08:00
Yusuke Tsutsumi
0fc41bbda4 WIP: fix compute instance + several tests
compute selflinks return back `wwww.googleapis.com` as the domain,
which was causing a perma-diff. Fixing google.cloud's normalization
fixes that.

Fixing the following tests as well, since creating an instance
now works:

- gcp_compute_instance
- gcp_compute_instance_group
- gcp_compute_instance_group_manager
- gcp_compute_instance_template
- gcp_compute_region_autoscaler
- gcp_compute_region_instance_group_manager
- gcp_compute_target_instance
- gcp_compute_target_pool
2022-11-13 22:28:40 -08:00
Yusuke Tsutsumi
4816e97719 fixing compute_url_map, add cleanup script
Compute_url_map was broken by #509: It also merged in #393, which
has an erroneous understanding that compute_url_map always returns
a diff (integration tests show it does not).

Adding a cleanup script to help with environment hygiene.

Added cleanup to CI to help make tests less flakey.
2022-11-12 12:12:02 -08:00
Bill Dinger
0cece672cf Added in link to where machineTypes are defined 2022-11-12 11:18:03 -08:00
Tom
2582030e51 Updating gcp_storage_object example
The example contained the non-existent "status" parameter which causes an error with the latest release.
2022-11-12 10:53:08 -08:00
Yusuke Tsutsumi
5ea5ecda34 tests: enabling gcp_compute_backend_service test
with #393 merged, it is now possible to enable gcp_compute_backend_test.

Adding a temporary fix for server-normalized value of capacity_scaler,
which is resolving into perma-diff due to "1.0" != "1".
2022-11-05 15:16:49 -07:00
Lakhan Samani
da28bcb845 fix: fix finger print issue while updating gcp services
Resolves: https://github.com/ansible-collections/google.cloud/issues/342
2022-11-05 15:16:49 -07:00
Nonoctis
5182023c91
Docs: fix typo in gcp_storage_object.py (#507)
While version `1.2..0` might work it does not reflect the desired requirement (`1.2.0`).
2022-11-05 16:55:09 +00:00
Yusuke Tsutsumi
cfbc4d8be5 tests: cleaning up resourcemanager, enabling spanner
- gcp_spanner_instance works, enabling for CI.
- gcp_resourcemanager_project is running into quota issues for
  listing the API to verify state. Adding a to-do as well as
  removing some people-specific names.
2022-10-09 06:08:41 +00:00
Yusuke Tsutsumi
24d09d17c3 tests: fixing more fixed tests
- gcp_compute_ssl_certificate: region is not a supported parameter.
2022-10-09 05:10:15 +00:00
Yusuke Tsutsumi
0387ad3c17 Fixing additional tests
Fixing some of the existing failing tests in the CI process.

Specifically:

- gcp_appengine_firewall_rule: modified validation to support the
  default firewall rule
- gcp_cloudfunctions_cloud_function: bootstrapping the required GS
  bucket and files for creating a valid cloud function.
  - Slight update to the functionality, which now requires a runtime
    specified for new functions.
-
2022-10-08 17:36:39 +00:00
John Losito
af3710889d
docs: remove state param in gcp_storage_object example (#493)
Removes an invalid parameter from the example given within the gcp_storage_object module to download an object from a GCS bucket.
2022-09-23 17:25:00 +00:00
Alex Stephen
65f0a7a141
Merge pull request #451 from leoplana/master 2021-09-14 13:47:13 -04:00
Ryan Moriarty
f9c8c18f36
Merge pull request #268 from bucklander/bwallander_issue_266
Fixing issue with UTF-8 conversion in Python3 for GCS uploads
2021-09-13 14:52:54 -06:00
The Magician
1c364de171
Remove versions from redis_version field. (#5062) (#452)
Co-authored-by: upodroid <cy@borg.dev>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
2021-08-09 19:13:27 -05:00
leonardo.lana
d5a061f9c7 added private network to cloudsql instance creation 2021-08-05 12:21:04 -03:00
The Magician
ff2ac11bea
Add support for processing_units to google_spanner_instance (#4993) (#450)
Co-authored-by: upodroid <cy@borg.dev>
Co-authored-by: Cameron Thornton <camthornton@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
Co-authored-by: Cameron Thornton <camthornton@google.com>
2021-08-03 17:09:52 -05:00
The Magician
fe79a8b1e1
Add generator information to generated resources (#5016) (#449)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-07-29 18:41:37 -05:00
The Magician
1e600ebc61
fixed two doc format (#4742) (#447)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-07-26 20:01:50 -05:00
The Magician
536bef7166
set optional computed on fields that are conditional to balancing_mode (#4975) (#446)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-07-19 13:22:38 -05:00
The Magician
f081d7b81c
Added pubsubConfig and webhookConfig support to the cloud build resource. (#4931) (#443)
Co-authored-by: Sumit Madan <sumit.madan@pantheon.io>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Sumit Madan <sumit.madan@pantheon.io>
2021-07-09 12:27:44 -05:00
The Magician
af5ff5f2b0
ansible: Change env variable (#4940) (#439)
User should read GCP_SERVICE_ACCOUNT_FILE instead of
gcp_service_account_file

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-07-01 10:23:29 -05:00
The Magician
04fcdf64b7
Promote CDN Policies to GA (#4914) (#436)
Co-authored-by: upodroid <cy@borg.dev>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
2021-06-24 12:37:36 -07:00
The Magician
a27ca5f788
remove duplicate word from spanner docs (#4896) (#433)
Co-authored-by: Vitalii Turovets <corebug@corebug.net>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Vitalii Turovets <corebug@corebug.net>
2021-06-21 10:14:35 -07:00
The Magician
169d26accd
Fix default port in google_compute_https_health_check docs to 443 (#4900) (#432)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-06-21 10:00:23 -07:00
The Magician
71a05be3af
Allow redisVersion to change, promoted some fields to GA (#4838) (#431)
* Allow redisVersion to change, promoted some fields to GA

* allow updating properties if update method is defined at the field level

* upgrade post url

* fix current resources to not reference url

* add support for forceNew if version is shrinking

* don't send request if not updating anything.. request fails if update mask is empty.. also add more tests

* fix spelling mistake

* fix rake issues

* remove transcription mode... forces new on change

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-06-15 11:31:26 -07:00
The Magician
9eadc4b7fc
Promote customResponseHeaders to GA (#4872) (#430)
This change promotes custom_response_headers for
google_compute_backend_service and google_compute_backend_bucket
to GA.

Signed-off-by: Gorka Lerchundi Osa glertxundi@gmail.com
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-06-15 08:18:50 -07:00
The Magician
7498507389
IPsec-encrypted Interconnect GA (#4813) (#424)
* Move ipsec interconnect to ga

* Remove beta only docs note

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-06-02 17:03:57 -07:00
The Magician
20b59f84ee
promote logConfig to GA (#4822) (#423)
Co-authored-by: upodroid <cy@borg.dev>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
2021-06-01 15:32:25 -07:00
The Magician
e9c844fa64
Add Provisioned IOPS support (#4578) (#419)
Co-authored-by: upodroid <cy@borg.dev>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
2021-05-19 14:30:54 -07:00
The Magician
1b378d203f
Add support for Instance schedules to Google compute resource policy (#4779) (#418)
* Add instance_schedule_policy to google_compute_resource_policy

* Add description to google_compute_resource_policy

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-05-18 11:23:27 -07:00
The Magician
3f863e0a5c
predictive autoscaling ga (#4789) (#417)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-05-15 03:53:32 -07:00
The Magician
7f65d2b8c1
IPsec-encrypted Interconnect (#4777) (#416)
* IPsec over interconnect feature

* Removing test from other branch

* Mark several encryption fields as input-only

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-05-14 13:23:55 -07:00
The Magician
3a588b5a09
Feature/add pubsub schema resource (#4741) (#415)
Co-authored-by: Scott Suarez <ScottSuarez@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Scott Suarez <ScottSuarez@google.com>
2021-05-10 14:10:25 -07:00
The Magician
4b4ab108c5
add initial_size to google_compute_node_group (#4750) (#413)
Co-authored-by: Riley Karson <rileykarson@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Riley Karson <rileykarson@google.com>
2021-05-04 19:48:50 -07:00
The Magician
840a4db65e
Added ForceNew on labels (#4734) (#412)
* Added ForeNew on labels

* set ForceNew on key & key_value

* added a test

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-05-03 13:40:31 -07:00
The Magician
b84fd05309
set skip_initial_version_creation a default (#4729) (#410)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-23 12:18:23 -07:00
The Magician
0454f82f09
make bigquery dataset dataset_id forcenew (#4726) (#409)
* make bigquery dataset dataset_id forcenew

* make project_id and datasetReference input true as well

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-21 14:54:44 -07:00
The Magician
60863d6fcb
Add reference links for ML Engine Models (#4723) (#408)
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-21 11:38:03 -07:00
The Magician
15657f852e
Add cmek to spanner database (#4699) (#407)
* Add cmek to spanner database

* Update timeout

* Bump default timeout

* Mark test as beta

* Move to handwritten test

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-20 18:34:37 -07:00
The Magician
301cd30a71
Add support for confidential compute instances to the ansible collection (#4665) (#406)
* products/compute/api.yaml: Add support for confidentialInstanceConfig parameter

* products/compute/api.yaml: Improve wording of property descriptions

Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-19 08:54:05 -07:00
The Magician
ea38c3ed14
added more gcs bucket lifecycle conditions (#4706) (#404)
Signed-off-by: Denis Dabischa <denis.dabischa@kloeckner.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
2021-04-16 10:58:29 -07:00