Suppress googleworkspace permadiffs in preview output

- GroupSettings: ignoreChanges on isArchived (upstream
  hashicorp/terraform-provider-googleworkspace#398)
- OrgUnit: drop the stale import option; it was only needed for the
  initial adopt and now triggers a re-compare on every preview
This commit is contained in:
Paul Carleton 2026-04-30 13:07:33 +01:00 • committed by Den Delimarsky
commit 9d584ea6cf

View file

@ -20,7 +20,9 @@ ROLES.forEach((role: Role) => {
description: role.description + ' \n(Managed by github.com/modelcontextprotocol/access)', description: role.description + ' \n(Managed by github.com/modelcontextprotocol/access)',
}); });
new gworkspace.GroupSettings(role.google.group, { new gworkspace.GroupSettings(
role.google.group,
{
email: groups[role.google.group].email, email: groups[role.google.group].email,
// Maximise visibility of group. It's visible in GitHub anyway // Maximise visibility of group. It's visible in GitHub anyway
@ -45,7 +47,9 @@ ROLES.forEach((role: Role) => {
whoCanContactOwner: 'ALL_OWNERS_CAN_CONTACT', whoCanContactOwner: 'ALL_OWNERS_CAN_CONTACT',
whoCanViewGroup: 'ALL_OWNERS_CAN_VIEW', whoCanViewGroup: 'ALL_OWNERS_CAN_VIEW',
}), }),
}); },
{ ignoreChanges: ['isArchived'] }
);
}); });
// Create the organizational unit for MCP users // Create the organizational unit for MCP users
@ -56,7 +60,7 @@ const mcpOrgUnit = new gworkspace.OrgUnit(
description: 'Model Context Protocol', description: 'Model Context Protocol',
parentOrgUnitPath: '/', parentOrgUnitPath: '/',
}, },
{ import: 'id:03ph8a2z0nc6rsr', ignoreChanges: ['description'] } { ignoreChanges: ['description'] }
); );
// Provision Google Workspace user accounts for members in roles with provisionUser // Provision Google Workspace user accounts for members in roles with provisionUser