Skip to content

Commit 9bafac4

Browse files
authored
Merge branch 'cloudfoundry:main' into was-running-backfill
2 parents f7e4ef2 + 13faf2a commit 9bafac4

20 files changed

Lines changed: 38 additions & 227 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ gem 'railties', '~> 8.1.1'
4242

4343
gem 'fog-aws'
4444
gem 'fog-core', '~> 2.6.0'
45-
gem 'fog-google', '~> 1.29.4'
4645

4746
gem 'cf-uaa-lib', '~> 4.0.9'
4847

Gemfile.lock

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ GEM
6969
debug (1.11.1)
7070
irb (~> 1.10)
7171
reline (>= 0.3.8)
72-
declarative (0.0.20)
7372
delayed_job (4.2.0)
7473
activesupport (>= 3.0, < 9.0)
7574
benchmark
@@ -84,8 +83,6 @@ GEM
8483
logger
8584
factory_bot (6.6.0)
8685
activesupport (>= 6.1.0)
87-
faraday (0.17.6)
88-
multipart-post (>= 1.2, < 3)
8986
ffi (1.17.4)
9087
ffi (1.17.4-x86_64-darwin)
9188
ffi (1.17.4-x86_64-linux-gnu)
@@ -102,19 +99,6 @@ GEM
10299
excon (~> 1.0)
103100
formatador (>= 0.2, < 2.0)
104101
mime-types
105-
fog-google (1.29.4)
106-
addressable (>= 2.7.0)
107-
fog-core (~> 2.5)
108-
fog-json (~> 1.2)
109-
fog-xml (~> 0.1.0)
110-
google-apis-compute_v1 (~> 0.53)
111-
google-apis-dns_v1 (~> 0.28)
112-
google-apis-iamcredentials_v1 (~> 0.15)
113-
google-apis-monitoring_v3 (~> 0.37)
114-
google-apis-pubsub_v1 (~> 0.30)
115-
google-apis-sqladmin_v1beta4 (~> 0.38)
116-
google-apis-storage_v1 (>= 0.19, < 1)
117-
google-cloud-env (>= 1.2, < 3.0)
118102
fog-json (1.3.0)
119103
fog-core
120104
multi_json (~> 1.10)
@@ -123,30 +107,6 @@ GEM
123107
nokogiri (>= 1.5.11, < 2.0.0)
124108
formatador (1.2.3)
125109
reline
126-
google-apis-compute_v1 (0.86.0)
127-
google-apis-core (>= 0.11.0, < 2.a)
128-
google-apis-core (0.11.3)
129-
addressable (~> 2.5, >= 2.5.1)
130-
googleauth (>= 0.16.2, < 2.a)
131-
httpclient (>= 2.8.1, < 3.a)
132-
mini_mime (~> 1.0)
133-
representable (~> 3.0)
134-
retriable (>= 2.0, < 4.a)
135-
rexml
136-
google-apis-dns_v1 (0.36.0)
137-
google-apis-core (>= 0.11.0, < 2.a)
138-
google-apis-iamcredentials_v1 (0.17.0)
139-
google-apis-core (>= 0.11.0, < 2.a)
140-
google-apis-monitoring_v3 (0.54.0)
141-
google-apis-core (>= 0.11.0, < 2.a)
142-
google-apis-pubsub_v1 (0.45.0)
143-
google-apis-core (>= 0.11.0, < 2.a)
144-
google-apis-sqladmin_v1beta4 (0.61.0)
145-
google-apis-core (>= 0.11.0, < 2.a)
146-
google-apis-storage_v1 (0.32.0)
147-
google-apis-core (>= 0.11.0, < 2.a)
148-
google-cloud-env (1.6.0)
149-
faraday (>= 0.17.3, < 3.0)
150110
google-protobuf (4.35.1)
151111
bigdecimal
152112
rake (~> 13.3)
@@ -162,12 +122,6 @@ GEM
162122
grpc (~> 1.41)
163123
googleapis-common-protos-types (1.23.0)
164124
google-protobuf (~> 4.26)
165-
googleauth (1.8.1)
166-
faraday (>= 0.17.3, < 3.a)
167-
jwt (>= 1.4, < 3.0)
168-
multi_json (~> 1.11)
169-
os (>= 0.9, < 2.0)
170-
signet (>= 0.16, < 2.a)
171125
grpc (1.81.1)
172126
google-protobuf (>= 3.25, < 5.0)
173127
googleapis-common-protos-types (~> 1.0)
@@ -195,8 +149,6 @@ GEM
195149
json-schema (6.2.0)
196150
addressable (~> 2.8)
197151
bigdecimal (>= 3.1, < 5)
198-
jwt (2.10.3)
199-
base64
200152
kramdown (2.5.2)
201153
rexml (>= 3.4.4)
202154
kramdown-parser-gfm (1.1.0)
@@ -216,7 +168,6 @@ GEM
216168
logger
217169
mime-types-data (~> 3.2025, >= 3.2025.0507)
218170
mime-types-data (3.2026.0701)
219-
mini_mime (1.1.5)
220171
mini_portile2 (2.8.9)
221172
minitest (6.0.6)
222173
drb (~> 2.0)
@@ -226,7 +177,6 @@ GEM
226177
msgpack (1.8.3)
227178
multi_json (1.21.1)
228179
multipart-parser (0.1.1)
229-
multipart-post (2.4.1)
230180
mustache (1.1.2)
231181
mustermann (3.1.1)
232182
mutex_m (0.3.0)
@@ -249,7 +199,6 @@ GEM
249199
ostruct (>= 0.2)
250200
open3 (0.2.1)
251201
openssl (4.0.2)
252-
os (1.1.4)
253202
ostruct (0.6.3)
254203
parallel (2.1.0)
255204
parallel_tests (5.7.0)
@@ -333,11 +282,6 @@ GEM
333282
regexp_parser (2.12.0)
334283
reline (0.6.3)
335284
io-console (~> 0.5)
336-
representable (3.2.0)
337-
declarative (< 0.1.0)
338-
trailblazer-option (>= 0.1.1, < 0.2.0)
339-
uber (< 0.2.0)
340-
retriable (3.8.0)
341285
reverse_markdown (3.0.2)
342286
nokogiri
343287
rexml (3.4.4)
@@ -432,10 +376,6 @@ GEM
432376
pg (>= 0.18.0, != 1.2.0)
433377
sequel (>= 4.38.0)
434378
sexp_processor (4.17.5)
435-
signet (0.22.0)
436-
addressable (~> 2.8)
437-
faraday (>= 0.17.5, < 3.a)
438-
jwt (>= 1.5, < 4.0)
439379
simplecov (0.13.0)
440380
docile (~> 1.1.0)
441381
json (>= 1.8, < 3)
@@ -498,11 +438,9 @@ GEM
498438
thor (1.5.0)
499439
tilt (2.7.0)
500440
timecop (0.9.11)
501-
trailblazer-option (0.1.2)
502441
tsort (0.2.0)
503442
tzinfo (2.0.6)
504443
concurrent-ruby (~> 1.0)
505-
uber (0.1.0)
506444
unicode-display_width (3.2.0)
507445
unicode-emoji (~> 4.1)
508446
unicode-emoji (4.2.0)
@@ -544,7 +482,6 @@ DEPENDENCIES
544482
fluent-logger
545483
fog-aws
546484
fog-core (~> 2.6.0)
547-
fog-google (~> 1.29.4)
548485
googleapis-common-protos (>= 1.8.0)
549486
hashdiff
550487
httpclient

config/cloud_controller.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ resource_pool:
184184
blobstore_type: local-temp-storage
185185
fog_connection: {}
186186
fog_aws_storage_options: {}
187-
fog_gcp_storage_options: {}
188187

189188
packages:
190189
app_package_directory_key: "cc-packages"
@@ -193,22 +192,19 @@ packages:
193192
blobstore_type: local-temp-storage
194193
fog_connection: {}
195194
fog_aws_storage_options: {}
196-
fog_gcp_storage_options: {}
197195

198196
droplets:
199197
droplet_directory_key: cc-droplets
200198
max_staged_droplets_stored: 42
201199
blobstore_type: local-temp-storage
202200
fog_connection: {}
203201
fog_aws_storage_options: {}
204-
fog_gcp_storage_options: {}
205202

206203
buildpacks:
207204
buildpack_directory_key: cc-buildpacks
208205
blobstore_type: local-temp-storage
209206
fog_connection: {}
210207
fog_aws_storage_options: {}
211-
fog_gcp_storage_options: {}
212208

213209
db_encryption_key: "asdfasdfasdf"
214210
database_encryption:

docs/v3/source/includes/resources/route_policies/_list.md.erb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ curl "https://api.example.org/v3/route_policies?include=route,source" \
7272

7373
#### Use cases
7474

75-
**Allow a frontend app to call a backend API:**
75+
**Create a policy to allow a frontend app to call a backend API:**
7676
```shell
77-
# Create route policy
7877
curl "https://api.example.org/v3/route_policies" \
7978
-X POST \
8079
-H "Authorization: bearer [token]" \
@@ -130,7 +129,6 @@ curl "https://api.example.org/v3/route_policies?space_guids=my-space-guid" \
130129

131130
**Find stale policies referencing a deleted app:**
132131
```shell
133-
# After deleting an app, find policies that referenced it
134132
curl "https://api.example.org/v3/route_policies?source_guids=deleted-app-guid&include=source" \
135133
-X GET \
136134
-H "Authorization: bearer [token]"

lib/cloud_controller/blobstore/client_provider.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
require 'cloud_controller/blobstore/local/local_client'
77
require 'cloud_controller/blobstore/safe_delete_client'
88
require 'cloud_controller/blobstore/storage_cli/storage_cli_client'
9-
require 'google/apis/errors'
109

1110
module CloudController
1211
module Blobstore
@@ -40,8 +39,7 @@ def provide_fog(options, directory_key, root_dir)
4039
root_dir: root_dir,
4140
min_size: options[:minimum_size],
4241
max_size: options[:maximum_size],
43-
aws_storage_options: options[:fog_aws_storage_options],
44-
gcp_storage_options: options[:fog_gcp_storage_options]
42+
aws_storage_options: options[:fog_aws_storage_options]
4543
)
4644

4745
logger = Steno.logger('cc.blobstore')
@@ -52,8 +50,7 @@ def provide_fog(options, directory_key, root_dir)
5250
# and https://github.com/fog/fog-aws/issues/265
5351
# and intermittent GCS blobstore download errors
5452
errors = [Excon::Errors::BadRequest, Excon::Errors::SocketError, SystemCallError,
55-
Excon::Errors::InternalServerError, Excon::Errors::ServiceUnavailable,
56-
Google::Apis::ServerError, Google::Apis::TransmissionError, OpenSSL::OpenSSLError]
53+
Excon::Errors::InternalServerError, Excon::Errors::ServiceUnavailable, OpenSSL::OpenSSLError]
5754
retryable_client = RetryableClient.new(client:, errors:, logger:)
5855

5956
Client.new(ErrorHandlingClient.new(SafeDeleteClient.new(retryable_client, root_dir)))

lib/cloud_controller/blobstore/fog/fog_client.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ def initialize(connection_config:,
2323
root_dir: nil,
2424
min_size: nil,
2525
max_size: nil,
26-
aws_storage_options: nil,
27-
gcp_storage_options: nil)
26+
aws_storage_options: nil)
2827
@root_dir = root_dir
2928
@connection_config = connection_config
3029
@directory_key = directory_key
3130
@cdn = cdn
3231
@min_size = min_size || 0
3332
@max_size = max_size
3433
@aws_storage_options = aws_storage_options
35-
@gcp_storage_options = gcp_storage_options
3634
logger.warn('blobstore.fog-deprecated', message: DEPRECATION_MESSAGE)
3735
end
3836

@@ -142,11 +140,6 @@ def formatted_storage_options
142140
opts['x-amz-server-side-encryption'] = encrypt_opt
143141
opts
144142

145-
elsif [Fog::Google::StorageJSON, Fog::Google::StorageXML].include?(connection.service)
146-
return {} unless @gcp_storage_options
147-
148-
@gcp_storage_options
149-
150143
else
151144
{}
152145

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
require 'fog/core'
22

3-
# This can be removed once fog-google fixes
4-
# https://github.com/fog/fog-google/issues/421, which will allow us to upgrade
5-
# fog-core to 2.2.4.
63
original = Fog::Logger[:deprecation]
74
Fog::Logger[:deprecation] = nil
85

96
require 'fog/aws'
10-
require 'fog/google'
117

128
Fog::Logger[:deprecation] = original

lib/cloud_controller/blobstore/storage_cli/storage_cli_client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class StorageCliClient < BaseClient
2323
# DEPRECATED: Legacy fog provider names (remove after migration window)
2424
LEGACY_PROVIDER_TO_STORAGE_CLI_TYPE = {
2525
'AWS' => 's3',
26-
'Google' => 'gcs',
2726
'webdav' => 'dav'
2827
}.freeze
2928

lib/cloud_controller/config_schemas/api_schema.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ class ApiSchema < VCAP::Config
217217
fog_connection: Hash,
218218
optional(:connection_config) => Hash,
219219
fog_aws_storage_options: Hash,
220-
fog_gcp_storage_options: Hash,
221220
optional(:webdav_config) => Hash,
222221
optional(:cdn) => Hash
223222
},
@@ -229,7 +228,6 @@ class ApiSchema < VCAP::Config
229228
fog_connection: Hash,
230229
optional(:connection_config) => Hash,
231230
fog_aws_storage_options: Hash,
232-
fog_gcp_storage_options: Hash,
233231
optional(:webdav_config) => Hash,
234232
optional(:cdn) => Hash
235233
},
@@ -243,7 +241,6 @@ class ApiSchema < VCAP::Config
243241
fog_connection: Hash,
244242
optional(:connection_config) => Hash,
245243
fog_aws_storage_options: Hash,
246-
fog_gcp_storage_options: Hash,
247244
optional(:webdav_config) => Hash,
248245
optional(:cdn) => Hash
249246
},
@@ -256,7 +253,6 @@ class ApiSchema < VCAP::Config
256253
fog_connection: Hash,
257254
optional(:connection_config) => Hash,
258255
fog_aws_storage_options: Hash,
259-
fog_gcp_storage_options: Hash,
260256
optional(:webdav_config) => Hash,
261257
optional(:cdn) => Hash
262258
},

lib/cloud_controller/config_schemas/blobstore_benchmarks_schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class BlobstoreBenchmarksSchema < VCAP::Config
1616
optional(:cdn) => Hash,
1717

1818
fog_aws_storage_options: Hash,
19-
fog_gcp_storage_options: Hash,
2019

2120
optional(:resource_directory_key) => String,
2221
optional(:buildpack_directory_key) => String,

0 commit comments

Comments
 (0)