Need help with configuring s3 backup with operator 2.2

Hi, I’m having trouble configuring s3 backup as repo2.

I added s3 keys to a secret:

backups:
  pgbackrest:
#    metadata:
#    labels:
    image: ""
    configuration:
      secret:
        name: "pgo-s3-creds"

this is in secret:
s3.conf

[global]
repo2-s3-key=xxxx
repo2-s3-key-secret=xxxx

I also defined repo2:

    - name: repo2
      schedules:
        full: "0 0 * * 6"
        differential: "0 1 * * 1-6"        
      s3:
        bucket: "backup"
        endpoint: "https://minio.mydomain.com"
        region: "xxxx-us"

but I had error log that SSL can’t be verified,

ERROR: [095]: unable to verify certificate presented by 'backup.minio.mydomain.com:443': [18] self signed certificate\n

so I tried:

    global:
      repo1-retention-full: "14"
      repo2-storage-verify-tls: "n"

but then I get:

Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(PerconaPGCluster.spec.backups.pgbackrest.global): invalid type for com.percona.pgv2.v2.PerconaPGCluster.spec.backups.pgbackrest.global: got "string", expected "map"

There is some error parsing helm template when using values.yaml. Please let me know if you have any idea how to solve this. Thanks