Skip to content

Only create object_storage 'connection:' block if feature enabled

Mitchell Nielsen requested to merge 2270-fix-object-storage-templating into master

gitlab.appConfig.objectStorage.configuration should only populate the connection: block if it is enabled and exists. This change addresses the 'if it is enabled' portion.

Closes #2270 (closed)

Testing

global:
  appConfig:
    dependencyProxy:
      enabled: false # set to true to confirm `connection` block is generated
      proxy_download: true
      bucket: gitlab-test-dependency-proxy-pzag
      connection:
        secret: gitlab-object-storage
        key: connection
Edited by Mitchell Nielsen

Merge request reports