vmware / terraform-provider-tanzu-mission-control

Terraform provider to manage resources of Tanzu Mission Control
Mozilla Public License 2.0
38 stars 31 forks source link

[Feature] Mutation policy #284

Closed ghost closed 11 months ago

ghost commented 11 months ago
  1. What this PR does / why we need it:

  2. Which issue(s) this PR fixes

    (optional, in `fixes #<issue number>` format, will close the issue(s) when PR gets merged):
    
    Fixes #
  3. Additional information Related task: TMC-35638

  4. Special notes for your reviewer

vmwclabot commented 11 months ago

@ekoop-terasky, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

codecov-commenter commented 11 months ago

Codecov Report

Attention: 376 lines in your changes are missing coverage. Please review.

Comparison is base (37a50e6) 25.27% compared to head (df02b1c) 25.58%. Report is 33 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #284 +/- ## ========================================== + Coverage 25.27% 25.58% +0.30% ========================================== Files 155 161 +6 Lines 13657 14352 +695 ========================================== + Hits 3452 3672 +220 - Misses 10048 10512 +464 - Partials 157 168 +11 ``` | [Files](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware) | Coverage Δ | | |---|---|---| | [internal/provider/provider.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcHJvdmlkZXIvcHJvdmlkZXIuZ28=) | `100.00% <100.00%> (ø)` | | | [internal/resources/policy/scope/scope\_schema.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9zY29wZS9zY29wZV9zY2hlbWEuZ28=) | `19.60% <ø> (ø)` | | | [.../kind/common/target\_kubernetes\_resources\_schema.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL2NvbW1vbi90YXJnZXRfa3ViZXJuZXRlc19yZXNvdXJjZXNfc2NoZW1hLmdv) | `29.41% <50.00%> (ø)` | | | [...om/recipe/tmc\_block\_rolebinding\_subjects\_schema.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL2N1c3RvbS9yZWNpcGUvdG1jX2Jsb2NrX3JvbGViaW5kaW5nX3N1YmplY3RzX3NjaGVtYS5nbw==) | `41.74% <50.00%> (ø)` | | | [...licy/kind/custom/recipe/tmc\_external\_ips\_schema.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL2N1c3RvbS9yZWNpcGUvdG1jX2V4dGVybmFsX2lwc19zY2hlbWEuZ28=) | `41.17% <50.00%> (ø)` | | | [...cy/kind/custom/recipe/tmc\_require\_labels\_schema.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL2N1c3RvbS9yZWNpcGUvdG1jX3JlcXVpcmVfbGFiZWxzX3NjaGVtYS5nbw==) | `41.74% <50.00%> (ø)` | | | [internal/helper/helper.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvaGVscGVyL2hlbHBlci5nbw==) | `35.00% <0.00%> (-2.40%)` | :arrow_down: | | [...urces/policy/kind/mutation/resource/test\_helper.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL211dGF0aW9uL3Jlc291cmNlL3Rlc3RfaGVscGVyLmdv) | `0.00% <0.00%> (ø)` | | | [...icy/kind/custom/recipe/tmc\_common\_recipe\_schema.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL2N1c3RvbS9yZWNpcGUvdG1jX2NvbW1vbl9yZWNpcGVfc2NoZW1hLmdv) | `44.44% <46.15%> (ø)` | | | [...kind/mutation/resource/resource\_mutation\_policy.go](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware#diff-aW50ZXJuYWwvcmVzb3VyY2VzL3BvbGljeS9raW5kL211dGF0aW9uL3Jlc291cmNlL3Jlc291cmNlX211dGF0aW9uX3BvbGljeS5nbw==) | `0.00% <0.00%> (ø)` | | | ... and [3 more](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware) | | ... and [6 files with indirect coverage changes](https://app.codecov.io/gh/vmware/terraform-provider-tanzu-mission-control/pull/284/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vmware)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

vmwclabot commented 11 months ago

@ekoop-terasky, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

vmwclabot commented 11 months ago

@ekoop-terasky, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.