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:
parent
56df7dae4c
commit
9d584ea6cf
1 changed files with 31 additions and 27 deletions
|
|
@ -20,7 +20,9 @@ ROLES.forEach((role: Role) => {
|
|||
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,
|
||||
|
||||
// Maximise visibility of group. It's visible in GitHub anyway
|
||||
|
|
@ -45,7 +47,9 @@ ROLES.forEach((role: Role) => {
|
|||
whoCanContactOwner: 'ALL_OWNERS_CAN_CONTACT',
|
||||
whoCanViewGroup: 'ALL_OWNERS_CAN_VIEW',
|
||||
}),
|
||||
});
|
||||
},
|
||||
{ ignoreChanges: ['isArchived'] }
|
||||
);
|
||||
});
|
||||
|
||||
// Create the organizational unit for MCP users
|
||||
|
|
@ -56,7 +60,7 @@ const mcpOrgUnit = new gworkspace.OrgUnit(
|
|||
description: 'Model Context Protocol',
|
||||
parentOrgUnitPath: '/',
|
||||
},
|
||||
{ import: 'id:03ph8a2z0nc6rsr', ignoreChanges: ['description'] }
|
||||
{ ignoreChanges: ['description'] }
|
||||
);
|
||||
|
||||
// Provision Google Workspace user accounts for members in roles with provisionUser
|
||||
|
|
|
|||
Loading…
Reference in a new issue