Skip to content

Commit

Permalink
Add 'fog_gcp_storage_options' parameter
Browse files Browse the repository at this point in the history
ccng allows to configure storage options for the gcp fog library.
This can be done via the 'fog_gcp_storage_options' parameter.
Related ccng PR: #3463 Commit: 6a747fe3110cd27a0383b83355f65e65a4564f1a

This change introduces 'fog_gcp_storage_options' parameter in capi-release.
  • Loading branch information
johha committed Oct 10, 2023
1 parent 69f9c2a commit 1bdf682
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ resource_pool:
<% end %>
fog_connection: <%= link("cloud_controller_internal").p("cc.resource_pool.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= link("cloud_controller_internal").p("cc.resource_pool.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= link("cloud_controller_internal").p("cc.resource_pool.fog_gcp_storage_options", {}).to_json %>

packages:
blobstore_type: <%= link("cloud_controller_internal").p("cc.packages.blobstore_type") %>
Expand All @@ -205,6 +206,8 @@ packages:
<% end %>
fog_connection: <%= link("cloud_controller_internal").p("cc.packages.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= link("cloud_controller_internal").p("cc.packages.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= link("cloud_controller_internal").p("cc.packages.fog_gcp_storage_options", {}).to_json %>


droplets:
blobstore_type: <%= link("cloud_controller_internal").p("cc.droplets.blobstore_type") %>
Expand All @@ -226,6 +229,7 @@ droplets:
<% end %>
fog_connection: <%= link("cloud_controller_internal").p("cc.droplets.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= link("cloud_controller_internal").p("cc.droplets.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= link("cloud_controller_internal").p("cc.droplets.fog_gcp_storage_options", {}).to_json %>

buildpacks:
blobstore_type: <%= link("cloud_controller_internal").p("cc.buildpacks.blobstore_type") %>
Expand All @@ -247,6 +251,7 @@ buildpacks:
<% end %>
fog_connection: <%= link("cloud_controller_internal").p("cc.buildpacks.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= link("cloud_controller_internal").p("cc.buildpacks.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= link("cloud_controller_internal").p("cc.buildpacks.fog_gcp_storage_options", {}).to_json %>

skip_cert_verify: <%= link("cloud_controller_internal").p("ssl.skip_cert_verify") %>

Expand Down
8 changes: 8 additions & 0 deletions jobs/cloud_controller_clock/spec
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ properties:
default: "fog"
cc.resource_pool.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.resource_pool.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.resource_pool.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -210,6 +212,8 @@ properties:
default: "fog"
cc.packages.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.packages.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.packages.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -251,6 +255,8 @@ properties:
default: "fog"
cc.droplets.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.droplets.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.droplets.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -289,6 +295,8 @@ properties:
default: "fog"
cc.buildpacks.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.buildpacks.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.buildpacks.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ resource_pool:
<% end %>
fog_connection: <%= p("cc.resource_pool.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.resource_pool.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.resource_pool.fog_gcp_storage_options", {}).to_json %>

packages:
blobstore_type: <%= p("cc.packages.blobstore_type") %>
Expand All @@ -223,6 +224,7 @@ packages:
<% end %>
fog_connection: <%= p("cc.packages.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.packages.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.packages.fog_gcp_storage_options", {}).to_json %>

droplets:
blobstore_type: <%= p("cc.droplets.blobstore_type") %>
Expand All @@ -244,6 +246,7 @@ droplets:
<% end %>
fog_connection: <%= p("cc.droplets.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.droplets.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.droplets.fog_gcp_storage_options", {}).to_json %>

buildpacks:
blobstore_type: <%= p("cc.buildpacks.blobstore_type") %>
Expand All @@ -265,6 +268,7 @@ buildpacks:
<% end %>
fog_connection: <%= p("cc.buildpacks.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.buildpacks.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.buildpacks.fog_gcp_storage_options", {}).to_json %>

db_encryption_key: <%= p("cc.db_encryption_key") %>

Expand Down
16 changes: 16 additions & 0 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ provides:
- cc.buildpacks.cdn.private_key
- cc.buildpacks.cdn.uri
- cc.buildpacks.fog_aws_storage_options
- cc.buildpacks.fog_gcp_storage_options
- cc.buildpacks.fog_connection
- cc.buildpacks.webdav_config.blobstore_timeout
- cc.buildpacks.webdav_config.ca_cert
Expand All @@ -148,6 +149,7 @@ provides:
- cc.droplets.cdn.uri
- cc.droplets.droplet_directory_key
- cc.droplets.fog_aws_storage_options
- cc.droplets.fog_gcp_storage_options
- cc.droplets.fog_connection
- cc.droplets.webdav_config.blobstore_timeout
- cc.droplets.webdav_config.ca_cert
Expand All @@ -173,6 +175,7 @@ provides:
- cc.packages.cdn.private_key
- cc.packages.cdn.uri
- cc.packages.fog_aws_storage_options
- cc.packages.fog_gcp_storage_options
- cc.packages.fog_connection
- cc.packages.max_package_size
- cc.packages.webdav_config.blobstore_timeout
Expand All @@ -186,6 +189,7 @@ provides:
- cc.resource_pool.cdn.private_key
- cc.resource_pool.cdn.uri
- cc.resource_pool.fog_aws_storage_options
- cc.resource_pool.fog_gcp_storage_options
- cc.resource_pool.fog_connection
- cc.resource_pool.maximum_size
- cc.resource_pool.minimum_size
Expand Down Expand Up @@ -483,6 +487,9 @@ properties:
cc.resource_pool.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. See http://docs.cloudfoundry.org/deploying/common/cc-blobstore-config.html#fog-aws-sse for example configuration."
default: {}
cc.resource_pool.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
default: {}
cc.resource_pool.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -528,6 +535,9 @@ properties:
cc.packages.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. See http://docs.cloudfoundry.org/deploying/common/cc-blobstore-config.html#fog-aws-sse for example configuration."
default: {}
cc.packages.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
default: {}
cc.packages.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -573,6 +583,9 @@ properties:
cc.droplets.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. See http://docs.cloudfoundry.org/deploying/common/cc-blobstore-config.html#fog-aws-sse for example configuration."
default: {}
cc.droplets.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
default: {}
cc.droplets.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -615,6 +628,9 @@ properties:
cc.buildpacks.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. See http://docs.cloudfoundry.org/deploying/common/cc-blobstore-config.html#fog-aws-sse for example configuration."
default: {}
cc.buildpacks.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
default: {}
cc.buildpacks.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ resource_pool:
<% end %>
fog_connection: <%= p("cc.resource_pool.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.resource_pool.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.resource_pool.fog_gcp_storage_options", {}).to_json %>

packages:
blobstore_type: <%= p("cc.packages.blobstore_type") %>
Expand All @@ -310,6 +311,7 @@ packages:
<% end %>
fog_connection: <%= p("cc.packages.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.packages.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.packages.fog_gcp_storage_options", {}).to_json %>

droplets:
blobstore_type: <%= p("cc.droplets.blobstore_type") %>
Expand All @@ -331,6 +333,7 @@ droplets:
<% end %>
fog_connection: <%= p("cc.droplets.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.droplets.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.droplets.fog_gcp_storage_options", {}).to_json %>
max_staged_droplets_stored: <%= p("cc.droplets.max_staged_droplets_stored") %>

buildpacks:
Expand All @@ -353,6 +356,7 @@ buildpacks:
<% end %>
fog_connection: <%= p("cc.buildpacks.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.buildpacks.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.buildpacks.fog_gcp_storage_options", {}).to_json %>

db_encryption_key: <%= p("cc.db_encryption_key") %>

Expand Down
8 changes: 8 additions & 0 deletions jobs/cloud_controller_worker/spec
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ properties:
default: "fog"
cc.resource_pool.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.resource_pool.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.resource_pool.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -183,6 +185,8 @@ properties:
default: "fog"
cc.packages.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.packages.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.packages.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -224,6 +228,8 @@ properties:
default: "fog"
cc.droplets.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.droplets.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.droplets.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down Expand Up @@ -262,6 +268,8 @@ properties:
default: "fog"
cc.buildpacks.fog_aws_storage_options:
description: "Storage options passed to fog for aws blobstores. Valid keys: ['encryption']."
cc.buildpacks.fog_gcp_storage_options:
description: "Storage options passed to fog for gcp blobstores"
cc.buildpacks.webdav_config.blobstore_timeout:
description: "The timeout in seconds for requests to the blobstore"
default: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ resource_pool:
<% end %>
fog_connection: <%= p("cc.resource_pool.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.resource_pool.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.resource_pool.fog_gcp_storage_options", {}).to_json %>

packages:
blobstore_type: <%= p("cc.packages.blobstore_type") %>
Expand All @@ -189,6 +190,7 @@ packages:
<% end %>
fog_connection: <%= p("cc.packages.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.packages.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.packages.fog_gcp_storage_options", {}).to_json %>

droplets:
blobstore_type: <%= p("cc.droplets.blobstore_type") %>
Expand All @@ -210,6 +212,7 @@ droplets:
<% end %>
fog_connection: <%= p("cc.droplets.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.droplets.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.droplets.fog_gcp_storage_options", {}).to_json %>

buildpacks:
blobstore_type: <%= p("cc.buildpacks.blobstore_type") %>
Expand All @@ -231,6 +234,7 @@ buildpacks:
<% end %>
fog_connection: <%= p("cc.buildpacks.fog_connection", {}).to_json %>
fog_aws_storage_options: <%= p("cc.buildpacks.fog_aws_storage_options", {}).to_json %>
fog_gcp_storage_options: <%= p("cc.buildpacks.fog_gcp_storage_options", {}).to_json %>

db_encryption_key: <%= p("cc.db_encryption_key") %>

Expand Down

0 comments on commit 1bdf682

Please sign in to comment.