splunk / splunk-operator

Splunk Operator for Kubernetes
Other
210 stars 115 forks source link

CSPL-2577 - Add an option for path Style URL #1333

Open akondur opened 6 months ago

akondur commented 6 months ago

Add an option to configure path style URL requests

Example Standalone AppFramework config:

apiVersion: enterprise.splunk.com/v4
kind: Standalone
metadata:
  name: ido
  finalizers:
  - enterprise.splunk.com/delete-pvc
spec:
  replicas: 1
  appRepo:
    appsRepoPollIntervalSeconds: 100
    defaults:
      volumeName: volume_app_repo_us
      scope: local
    appSources:
    - name: dummy
      location: dummy/
      volumeName: volume_app_repo_us
    volumes:
    - name: volume_app_repo_us
      storageType: s3
      provider: aws
      path: <>
      endpoint: https://s3-us-west-2.amazonaws.com
      region: us-west-2
      s3PathUrl: true
      secretRef: s3-secret

Supporting log:

2024-06-06T01:03:17.019639356Z  INFO    InitAWSClientSession    Setting up AWS SDK client       {"controller": "standalone", "controllerGroup": "enterprise.splunk.com", "controllerKind": "Standalone", "Standalone": {"name":"ido","namespace":"splunk-operator"}, "namespace": "splunk-operator", "name": "ido", "reconcileID": "4c684039-fe1b-4bea-b550-ce618f2ef57e", "regionWithEndpoint": "us-west-2|https://s3-us-west-2.amazonaws.com", "pathStyleUrl": true}

Solves Github issue.