-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
adding RestorePlan to Backup for GKE #8803
Conversation
Hello! I am a robot. It looks like you are a: @trodge, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan" "primary" {
description = # value needed
labels = # value needed
restore_config {
cluster_resource_restore_scope {
excluded_group_kinds {
resource_group = # value needed
resource_kind = # value needed
}
}
excluded_namespaces {
namespaces = # value needed
}
transformation_rules {
field_actions {
from_path = # value needed
}
resource_filter {
group_kinds {
resource_group = # value needed
}
}
}
}
}
Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan" "primary" {
description = # value needed
labels = # value needed
restore_config {
cluster_resource_restore_scope {
excluded_group_kinds {
resource_group = # value needed
resource_kind = # value needed
}
}
excluded_namespaces {
namespaces = # value needed
}
transformation_rules {
field_actions {
from_path = # value needed
}
resource_filter {
group_kinds {
resource_group = # value needed
}
}
}
}
}
Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample|TestAccGKEBackupRestorePlanIamPolicyGenerated |
Rerun these tests in REPLAYING mode to catch issues
|
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.
Could you fix the failing tests? I think the issue is mismatched resource names.
Also, could you add the fields identified by the missing test detector to at least one test?
} | ||
|
||
resource "google_gke_backup_restore_plan" "all_cluster_resources" { | ||
name = "rp-<%= ctx[:vars]['name'] %>" |
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.
This resource name should start with tf-test-
and match the resource name in the yaml file.
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.
tf-test should be prepended by <%= ctx[:vars]['name'] %>
automatically as long as there's a hyphen in the name
value!
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.
I'm still seeing missing tests for the IAM binding. I never had to add tests for this when we added BackupPlan resource, are these tests needed?
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan" "primary" {
description = # value needed
labels = # value needed
restore_config {
cluster_resource_restore_scope {
excluded_group_kinds {
resource_group = # value needed
resource_kind = # value needed
}
}
excluded_namespaces {
namespaces = # value needed
}
transformation_rules {
field_actions {
from_path = # value needed
}
resource_filter {
group_kinds {
resource_group = # value needed
}
}
}
}
}
Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3785 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan" "primary" {
description = # value needed
labels = # value needed
restore_config {
cluster_resource_restore_scope {
excluded_group_kinds {
resource_group = # value needed
resource_kind = # value needed
}
}
excluded_namespaces {
namespaces = # value needed
}
transformation_rules {
field_actions {
from_path = # value needed
}
resource_filter {
group_kinds {
resource_group = # value needed
}
}
}
}
}
Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccGKEHub2ScopeIamBindingGenerated|TestAccGKEHub2Scope_gkehubScopeBasicExample|TestAccGKEHub2ScopeIamMemberGenerated|TestAccGKEHub2ScopeIamPolicyGenerated|TestAccDataSourceGoogleServiceAccountJwt|TestAccDataSourceGoogleServiceAccountIdToken_impersonation |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan" "primary" {
description = # value needed
labels = # value needed
restore_config {
cluster_resource_restore_scope {
excluded_group_kinds {
resource_group = # value needed
resource_kind = # value needed
}
}
excluded_namespaces {
namespaces = # value needed
}
transformation_rules {
field_actions {
from_path = # value needed
}
resource_filter {
group_kinds {
resource_group = # value needed
}
}
}
}
}
Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccMonitoringMonitoredProject_monitoringMonitoredProjectLongFormExample|TestAccMonitoringMonitoredProject_projectNumShortForm|TestAccMonitoringMonitoredProject_projectNumLongForm|TestAccMonitoringMonitoredProject_monitoringMonitoredProjectBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.erb
Outdated
Show resolved
Hide resolved
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 9 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanSecondTransformationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataprocJobIamPolicy|TestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccIapWebTypeAppEngineIamBindingGenerated |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gke_backup_restore_plan_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_gke_backup_restore_plan_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 10 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanSecondTransformationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample|TestAccHealthcareDatasetIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
* adding RestorePlan to Backup for GKE * fixed spacing issue * fixed more spacing issue * adding newline end of file * fixed trailing spaces * fixed test file names * added test gaps * adding description adn labels * fixed tests * fixed protected application name length * fixed protected app test * fix restore all namespaces test names * removed bp prefix from resource names * removed last bp ref
* adding RestorePlan to Backup for GKE * fixed spacing issue * fixed more spacing issue * adding newline end of file * fixed trailing spaces * fixed test file names * added test gaps * adding description adn labels * fixed tests * fixed protected application name length * fixed protected app test * fix restore all namespaces test names * removed bp prefix from resource names * removed last bp ref
* adding RestorePlan to Backup for GKE * fixed spacing issue * fixed more spacing issue * adding newline end of file * fixed trailing spaces * fixed test file names * added test gaps * adding description adn labels * fixed tests * fixed protected application name length * fixed protected app test * fix restore all namespaces test names * removed bp prefix from resource names * removed last bp ref
Adding RestorePlan resource to Backup for GKE
Part of hashicorp/terraform-provider-google#12634
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
in the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)