-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
powerplatform_tenant_isolation_policy
resource
#618
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
Adds support for the new powerplatform_tenant_isolation_policy resource while also improving related documentation, development configurations, and linter settings.
- Introduces API client, DTOs, and models to enable management of tenant isolation policies.
- Provides detailed documentation and example usage for the new resource.
- Updates development configuration files and test registration to include the new resource, and increases linter thresholds.
Reviewed Changes
File | Description |
---|---|
docs/resources/tenant_isolation_policy.md | Added documentation, example usage, and schema details for the tenant isolation policy resource. |
internal/services/tenant_isolation_policy/api_tenant_isolation_policy.go | Introduces the API client with methods to get and create/update tenant isolation policies, including async polling. |
internal/services/tenant_isolation_policy/dto.go | Defines the DTOs for tenant isolation policy, including nested properties for allowed tenants. |
internal/services/tenant_isolation_policy/models.go | Provides the Terraform resource model for tenant isolation policies. |
.github/copilot-instructions.md | Updates instructions for building, testing, and linting, ensuring developers have clear guidelines. |
.golangci.yml | Increases linter thresholds, adjusting the maximum issues reported per linter. |
internal/provider/provider.go | Registers the new tenant isolation policy resource and updates provider resources accordingly. |
internal/provider/provider_test.go | Updates tests to verify that the new tenant isolation policy resource is correctly registered. |
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
internal/services/tenant_isolation_policy/api_tenant_isolation_policy.go:116
- Consider adding unit tests to specifically cover the async polling logic and error paths in DoWaitForLifecycleOperationStatus to ensure it behaves correctly under different HTTP status responses and header values.
func (client *Client) DoWaitForLifecycleOperationStatus(ctx context.Context, response *api.Response) (*TenantIsolationPolicyDto, error) {
This pull request includes several changes, primarily focusing on adding support for tenant isolation policies, updating development configurations, and improving documentation. The most important changes are summarized below:
Tenant Isolation Policy Support:
powerplatform_tenant_isolation_policy
to manage tenant isolation policies. This includes the necessary API client, DTOs, and resource models. [1] [2] [3] [4]Documentation:
.github/copilot-instructions.md
, including commands for compiling code, running linters, and executing tests.powerplatform_tenant_isolation_policy
resource indocs/resources/tenant_isolation_policy.md
.Development Configuration:
.devcontainer/devcontainer.json
to include theGitHub.copilot-chat
extension..vscode/launch.json
to add a new configuration for attaching to a process and to use the integrated terminal for debugging. [1] [2]Linter Settings:
.golangci.yml
.Examples:
powerplatform_tenant_isolation_policy
resource inexamples/resources/powerplatform_tenant_isolation_policy/resource.tf
andexamples/tenant-isolation/main.tf
. [1] [2]