FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
38 stars 14 forks source link

Reset team entities when expunging data #276

Closed lizlooney closed 1 year ago

lizlooney commented 1 year ago

Added code to the expunge_storage admin action to reset the team entities.

github-actions[bot] commented 1 year ago

Terraform plan Succeeded for Workspace: default

Show Output ```diff An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ! update in-place -/+ destroy and then create replacement Terraform will perform the following actions: # module.dev.google_app_engine_standard_app_version.fmltc-app-v1 will be updated in-place ! resource "google_app_engine_standard_app_version" "fmltc-app-v1" { id = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" name = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" # (9 unchanged attributes hidden) ! automatic_scaling { ! min_pending_latency = "0.100s" -> "0.1s" # (4 unchanged attributes hidden) # (1 unchanged block hidden) } ! deployment { ! zip { ! source_url = "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/b7a89d8469a8298bac66a10a6587bee1.zip" -> "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/b8a07c69c46476575e4005febe51ec9a.zip" # (1 unchanged attribute hidden) } } - handlers { - auth_fail_action = "AUTH_FAIL_ACTION_REDIRECT" -> null - login = "LOGIN_OPTIONAL" -> null - security_level = "SECURE_OPTIONAL" -> null - url_regex = ".*" -> null - script { - script_path = "auto" -> null } } # (8 unchanged blocks hidden) } # module.dev.google_cloudfunctions_function.perform-action will be updated in-place ! resource "google_cloudfunctions_function" "perform-action" { id = "projects/ftc-ml-firstinspires-dev/locations/us-central1/functions/perform_action" name = "perform_action" ! source_archive_object = "453b4d686bf35221408da0bb0a49c93d.zip" -> "6295c69b92817eaca3e6ab899be64de1.zip" # (13 unchanged attributes hidden) # (2 unchanged blocks hidden) } # module.dev.google_storage_bucket_object.app-server-archive must be replaced -/+ resource "google_storage_bucket_object" "app-server-archive" { ! content_type = "application/zip" -> (known after apply) ! crc32c = "kRPtXQ==" -> (known after apply) ! detect_md5hash = "t6idhGmoKYusZqEKZYe+4Q==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gae-source-b7a89d8469a8298bac66a10a6587bee1.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "t6idhGmoKYusZqEKZYe+4Q==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/b7a89d8469a8298bac66a10a6587bee1.zip?generation=1662677429838774&alt=media" -> (known after apply) - metadata = {} -> null ! name = "b7a89d8469a8298bac66a10a6587bee1.zip" -> "b8a07c69c46476575e4005febe51ec9a.zip" # forces replacement ! output_name = "b7a89d8469a8298bac66a10a6587bee1.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/b7a89d8469a8298bac66a10a6587bee1.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.google_storage_bucket_object.closure_js must be replaced -/+ resource "google_storage_bucket_object" "closure_js" { ! crc32c = "caKiZw==" -> (known after apply) ! detect_md5hash = "scy8rHQWtrJ4Z/p8asj6PQ==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-compiled/js/fmltc.js" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "scy8rHQWtrJ4Z/p8asj6PQ==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js?generation=1662677429811162&alt=media" -> (known after apply) - metadata = {} -> null name = "compiled/js/fmltc.js" ! output_name = "compiled/js/fmltc.js" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (3 unchanged attributes hidden) } # module.dev.google_storage_bucket_object.cloud-function-archive must be replaced -/+ resource "google_storage_bucket_object" "cloud-function-archive" { ! content_type = "application/zip" -> (known after apply) ! crc32c = "BdlVOA==" -> (known after apply) ! detect_md5hash = "RTtNaGvzUiFAjaC7CknJPQ==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gcf-source-453b4d686bf35221408da0bb0a49c93d.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "RTtNaGvzUiFAjaC7CknJPQ==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/453b4d686bf35221408da0bb0a49c93d.zip?generation=1662677429964845&alt=media" -> (known after apply) - metadata = {} -> null ! name = "453b4d686bf35221408da0bb0a49c93d.zip" -> "6295c69b92817eaca3e6ab899be64de1.zip" # forces replacement ! output_name = "453b4d686bf35221408da0bb0a49c93d.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/453b4d686bf35221408da0bb0a49c93d.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.module.serverless-connector.google_vpc_access_connector.connector_beta["central-serverless"] must be replaced -/+ resource "google_vpc_access_connector" "connector_beta" { ! id = "projects/ftc-ml-firstinspires-dev/locations/us-central1/connectors/central-serverless" -> (known after apply) ! max_instances = 7 -> (known after apply) ! min_instances = 2 -> (known after apply) name = "central-serverless" - network = "ml-redis-vpc-dev" -> null # forces replacement ! self_link = "projects/ftc-ml-firstinspires-dev/locations/us-central1/connectors/central-serverless" -> (known after apply) ! state = "READY" -> (known after apply) # (5 unchanged attributes hidden) ! subnet { name = "serverless-subnet" ! project_id = "ftc-ml-firstinspires-dev" -> (known after apply) } } Plan: 4 to add, 2 to change, 4 to destroy. ```