Skip to content

Commit

Permalink
Fix: transfer iam binding in terraform framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ssch1337 committed Oct 18, 2024
1 parent aa5401d commit 8e5d225
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 121 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ GO_SUBDIRS += cmd internal apis
# ====================================================================================
# Setup Kubernetes tools

KIND_VERSION = v0.23.0
KIND_VERSION = v0.24.0
UP_VERSION = v0.31.0
UP_CHANNEL = stable
UPTEST_VERSION = v0.11.1
Expand Down
120 changes: 60 additions & 60 deletions config/external_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
"yandex_api_gateway": config.IdentifierFromProvider,
"yandex_backup_policy": config.IdentifierFromProvider,
"yandex_backup_policy_bindings": config.IdentifierFromProvider,
"yandex_billing_cloud_binding": config.IdentifierFromProvider,
"yandex_iam_service_account": config.NameAsIdentifier,
"yandex_iam_service_account_key": config.NameAsIdentifier,
"yandex_iam_service_account_api_key": config.NameAsIdentifier,
Expand Down Expand Up @@ -68,63 +67,54 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
"yandex_mdb_mongodb_cluster": config.IdentifierFromProvider,
// "yandex_mdb_mongodb_user": config.IdentifierFromProvider,
// "yandex_mdb_mongodb_database": config.IdentifierFromProvider,
"yandex_mdb_mysql_cluster": config.IdentifierFromProvider,
"yandex_mdb_mysql_database": config.IdentifierFromProvider,
"yandex_mdb_mysql_user": config.IdentifierFromProvider,
"yandex_mdb_postgresql_cluster": config.IdentifierFromProvider,
"yandex_mdb_postgresql_database": config.IdentifierFromProvider,
"yandex_mdb_postgresql_user": config.IdentifierFromProvider,
"yandex_mdb_redis_cluster": config.IdentifierFromProvider,
"yandex_mdb_sqlserver_cluster": config.IdentifierFromProvider,
"yandex_compute_disk": config.IdentifierFromProvider,
"yandex_compute_disk_placement_group": config.IdentifierFromProvider,
"yandex_compute_filesystem": config.IdentifierFromProvider,
"yandex_compute_gpu_cluster": config.IdentifierFromProvider,
"yandex_compute_image": config.IdentifierFromProvider,
"yandex_compute_instance": config.IdentifierFromProvider,
"yandex_compute_instance_group": config.IdentifierFromProvider,
"yandex_compute_placement_group": config.IdentifierFromProvider,
"yandex_compute_snapshot": config.IdentifierFromProvider,
"yandex_compute_snapshot_schedule": config.IdentifierFromProvider,
"yandex_compute_disk_iam_binding": config.IdentifierFromProvider,
"yandex_compute_disk_placement_group_iam_binding": config.IdentifierFromProvider,
"yandex_compute_filesystem_iam_binding": config.IdentifierFromProvider,
"yandex_compute_gpu_cluster_iam_binding": config.IdentifierFromProvider,
"yandex_compute_image_iam_binding": config.IdentifierFromProvider,
"yandex_compute_instance_iam_binding": config.IdentifierFromProvider,
"yandex_compute_placement_group_iam_binding": config.IdentifierFromProvider,
"yandex_compute_snapshot_iam_binding": config.IdentifierFromProvider,
"yandex_compute_snapshot_schedule_iam_binding": config.IdentifierFromProvider,
"yandex_container_registry": config.IdentifierFromProvider,
"yandex_container_registry_iam_binding": config.IdentifierFromProvider,
"yandex_container_registry_ip_permission": config.IdentifierFromProvider,
"yandex_container_repository": config.IdentifierFromProvider,
"yandex_container_repository_iam_binding": config.IdentifierFromProvider,
"yandex_container_repository_lifecycle_policy": config.IdentifierFromProvider,
"yandex_alb_backend_group": config.IdentifierFromProvider,
"yandex_alb_http_router": config.IdentifierFromProvider,
"yandex_alb_load_balancer": config.IdentifierFromProvider,
"yandex_alb_target_group": config.IdentifierFromProvider,
"yandex_alb_virtual_host": config.IdentifierFromProvider,
"yandex_storage_bucket": config.IdentifierFromProvider,
"yandex_storage_object": config.IdentifierFromProvider,
"yandex_lb_network_load_balancer": config.IdentifierFromProvider,
"yandex_lb_target_group": config.IdentifierFromProvider,
"yandex_dns_recordset": config.IdentifierFromProvider,
"yandex_dns_zone": config.IdentifierFromProvider,
"yandex_dns_zone_iam_binding": config.IdentifierFromProvider,
"yandex_logging_group": config.IdentifierFromProvider,
"yandex_message_queue": config.IdentifierFromProvider,
"yandex_ydb_database_dedicated": config.IdentifierFromProvider,
"yandex_ydb_database_iam_binding": config.IdentifierFromProvider,
"yandex_ydb_database_serverless": config.IdentifierFromProvider,
"yandex_ydb_table": config.IdentifierFromProvider,
"yandex_ydb_table_changefeed": config.IdentifierFromProvider,
"yandex_ydb_table_index": config.IdentifierFromProvider,
"yandex_ydb_topic": config.IdentifierFromProvider,
"yandex_datatransfer_endpoint": config.IdentifierFromProvider,
"yandex_datatransfer_transfer": config.IdentifierFromProvider,
"yandex_dataproc_cluster": config.IdentifierFromProvider,
"yandex_mdb_mysql_cluster": config.IdentifierFromProvider,
"yandex_mdb_mysql_database": config.IdentifierFromProvider,
"yandex_mdb_mysql_user": config.IdentifierFromProvider,
"yandex_mdb_postgresql_cluster": config.IdentifierFromProvider,
"yandex_mdb_postgresql_database": config.IdentifierFromProvider,
"yandex_mdb_postgresql_user": config.IdentifierFromProvider,
"yandex_mdb_redis_cluster": config.IdentifierFromProvider,
"yandex_mdb_sqlserver_cluster": config.IdentifierFromProvider,
"yandex_compute_disk": config.IdentifierFromProvider,
"yandex_compute_disk_placement_group": config.IdentifierFromProvider,
"yandex_compute_filesystem": config.IdentifierFromProvider,
"yandex_compute_gpu_cluster": config.IdentifierFromProvider,
"yandex_compute_image": config.IdentifierFromProvider,
"yandex_compute_instance": config.IdentifierFromProvider,
"yandex_compute_instance_group": config.IdentifierFromProvider,
"yandex_compute_placement_group": config.IdentifierFromProvider,
"yandex_compute_snapshot": config.IdentifierFromProvider,
"yandex_compute_snapshot_schedule": config.IdentifierFromProvider,
"yandex_container_registry": config.IdentifierFromProvider,
"yandex_container_registry_iam_binding": config.IdentifierFromProvider,
"yandex_container_registry_ip_permission": config.IdentifierFromProvider,
"yandex_container_repository": config.IdentifierFromProvider,
"yandex_container_repository_iam_binding": config.IdentifierFromProvider,
"yandex_container_repository_lifecycle_policy": config.IdentifierFromProvider,
"yandex_alb_backend_group": config.IdentifierFromProvider,
"yandex_alb_http_router": config.IdentifierFromProvider,
"yandex_alb_load_balancer": config.IdentifierFromProvider,
"yandex_alb_target_group": config.IdentifierFromProvider,
"yandex_alb_virtual_host": config.IdentifierFromProvider,
"yandex_storage_bucket": config.IdentifierFromProvider,
"yandex_storage_object": config.IdentifierFromProvider,
"yandex_lb_network_load_balancer": config.IdentifierFromProvider,
"yandex_lb_target_group": config.IdentifierFromProvider,
"yandex_dns_recordset": config.IdentifierFromProvider,
"yandex_dns_zone": config.IdentifierFromProvider,
"yandex_dns_zone_iam_binding": config.IdentifierFromProvider,
"yandex_logging_group": config.IdentifierFromProvider,
"yandex_message_queue": config.IdentifierFromProvider,
"yandex_ydb_database_dedicated": config.IdentifierFromProvider,
"yandex_ydb_database_iam_binding": config.IdentifierFromProvider,
"yandex_ydb_database_serverless": config.IdentifierFromProvider,
"yandex_ydb_table": config.IdentifierFromProvider,
"yandex_ydb_table_changefeed": config.IdentifierFromProvider,
"yandex_ydb_table_index": config.IdentifierFromProvider,
"yandex_ydb_topic": config.IdentifierFromProvider,
"yandex_datatransfer_endpoint": config.IdentifierFromProvider,
"yandex_datatransfer_transfer": config.IdentifierFromProvider,
"yandex_dataproc_cluster": config.IdentifierFromProvider,
// "yandex_datasphere_community": config.IdentifierFromProvider,
// "yandex_datasphere_community_iam_binding": config.IdentifierFromProvider,
// "yandex_datasphere_project": config.IdentifierFromProvider,
Expand Down Expand Up @@ -158,8 +148,18 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
// resources to be reconciled under the no-fork architecture for this
// provider.
var TerraformPluginFrameworkExternalNameConfigs = map[string]config.ExternalName{
"yandex_mdb_mongodb_user": config.IdentifierFromProvider,
"yandex_mdb_mongodb_database": config.IdentifierFromProvider,
"yandex_mdb_mongodb_user": config.IdentifierFromProvider,
"yandex_mdb_mongodb_database": config.IdentifierFromProvider,
"yandex_compute_disk_placement_group_iam_binding": config.IdentifierFromProvider,
"yandex_compute_disk_iam_binding": config.IdentifierFromProvider,
"yandex_compute_image_iam_binding": config.IdentifierFromProvider,
"yandex_compute_snapshot_iam_binding": config.IdentifierFromProvider,
"yandex_compute_instance_iam_binding": config.IdentifierFromProvider,
"yandex_compute_filesystem_iam_binding": config.IdentifierFromProvider,
"yandex_compute_gpu_cluster_iam_binding": config.IdentifierFromProvider,
"yandex_compute_placement_group_iam_binding": config.IdentifierFromProvider,
"yandex_compute_snapshot_schedule_iam_binding": config.IdentifierFromProvider,
"yandex_billing_cloud_binding": config.IdentifierFromProvider,
}

// cliReconciledExternalNameConfigs contains all external name configurations
Expand Down
12 changes: 6 additions & 6 deletions internal/controller/billing/cloudbinding/zz_controller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions internal/controller/compute/diskiambinding/zz_controller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8e5d225

Please sign in to comment.