Skip to content

Commit

Permalink
There is no need to provide update_mask along with YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Matrosov committed Jan 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0a7696e commit 1bc782e
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 1 addition & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -31,9 +31,6 @@ interface InstanceGroupSpec {

interface InstanceGroupUpdateSpec {
instance_group_id: string;
update_mask: {
paths: string[];
};
name: string;
description: string | undefined;
}
@@ -138,9 +135,6 @@ async function updateIg(
delete instanceGroupSpec.folder_id;
const updateSpec: InstanceGroupUpdateSpec = {
instance_group_id: igId,
update_mask: {
paths: Object.keys(instanceGroupSpec),
},
...instanceGroupSpec,
};
const op = await instanceGroupService.updateFromYaml(

0 comments on commit 1bc782e

Please sign in to comment.