From 18292c2bfbb4daa755f607292a663287b0d4b5d9 Mon Sep 17 00:00:00 2001 From: Dzmitry Meshcharakou <12459192-dmeshcharakou@users.noreply.gitlab.com> Date: Fri, 17 May 2024 15:19:17 +0200 Subject: [PATCH 1/2] Remove `google_cloud_support_feature_flag` feature flag This commit removes the `google_cloud_support_feature_flag` feature flag to enable the features Provisioning runners in Google Cloud, Google Cloud workload identity federation and IAM policies, and Google Artifact Management are available for all users on GitLab.com. Changelog: added --- .../registration_instructions.vue | 9 +--- .../group_new_runner/group_new_runner_app.vue | 5 --- .../project_new_runner_app.vue | 5 --- doc/api/graphql/reference/index.md | 8 ++-- doc/api/integrations.md | 15 ++++--- .../runners/provision_runners_google_cloud.md | 4 +- doc/ci/yaml/index.md | 4 +- doc/integration/google_cloud_iam.md | 4 +- .../google_artifact_management.md | 4 +- .../ee/groups/runners_controller.rb | 2 - .../ee/projects/runners_controller.rb | 15 ------- .../artifact_registry_controller.rb | 2 +- ee/app/graphql/ee/types/group_type.rb | 5 +-- ee/app/graphql/ee/types/project_type.rb | 10 ++--- .../artifact_registry/repository_type.rb | 3 +- ee/app/helpers/ee/packages_helper.rb | 2 +- ee/app/models/ee/group.rb | 4 -- ee/app/models/ee/project.rb | 6 +-- .../artifact_registry.rb | 2 +- .../workload_identity_federation.rb | 4 +- ...google_cloud_provisioning_steps_service.rb | 7 --- .../artifact_registry/base_project_service.rb | 4 -- .../google_cloud/compute/base_service.rb | 4 -- .../google_cloud_support_feature_flag.yml | 9 ---- .../api/project_google_cloud_integration.rb | 3 +- ee/lib/ee/gitlab/ci/yaml_processor.rb | 10 ----- .../menus/packages_registries_menu.rb | 2 +- ee/spec/features/projects/navbar_spec.rb | 1 - ee/spec/helpers/ee/packages_helper_spec.rb | 6 +-- .../menus/packages_registries_menu_spec.rb | 8 ---- ee/spec/lib/gitlab/ci/yaml_processor_spec.rb | 11 ----- .../projects/super_sidebar_panel_spec.rb | 2 +- ee/spec/models/ee/group_spec.rb | 22 ---------- ee/spec/models/ee/project_spec.rb | 44 ------------------- .../workload_identity_federation_spec.rb | 16 ------- .../artifact_registry/docker_image_spec.rb | 8 ---- .../artifact_registry/docker_images_spec.rb | 8 ---- .../runner_google_cloud_provisioning_spec.rb | 8 ---- ee/spec/requests/api/integrations_spec.rb | 18 -------- .../project_google_cloud_integration_spec.rb | 12 ----- .../artifact_registry_controller_spec.rb | 8 ---- ...e_cloud_provisioning_steps_service_spec.rb | 12 ----- .../services_shared_examples.rb | 9 ---- .../compute/services_shared_examples.rb | 8 ---- locale/gitlab.pot | 3 -- .../registration_instructions_spec.js | 25 ----------- .../runner_platforms_radio_group_spec.js | 15 +------ .../group_register_runner_app_spec.js | 7 +-- .../project_register_runner_app_spec.js | 7 +-- 49 files changed, 40 insertions(+), 370 deletions(-) delete mode 100644 ee/app/controllers/ee/projects/runners_controller.rb delete mode 100644 ee/config/feature_flags/beta/google_cloud_support_feature_flag.yml diff --git a/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue b/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue index d9d997d7f008ac..a88c0046a9dc4e 100644 --- a/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue +++ b/app/assets/javascripts/ci/runner/components/registration/registration_instructions.vue @@ -143,13 +143,8 @@ export default { isRunnerOnline() { return this.runner?.status === STATUS_ONLINE; }, - showGoogleCloudPlatformOption() { - return this.glFeatures?.googleCloudSupportFeatureFlag; - }, showGoogleCloudRegistration() { - return ( - this.glFeatures?.googleCloudSupportFeatureFlag && this.platform === GOOGLE_CLOUD_PLATFORM - ); + return this.platform === GOOGLE_CLOUD_PLATFORM; }, }, watch: { @@ -196,7 +191,7 @@ export default { {{ s__('Runners|Platform') }} -