[CPCEPH-74] Use ca cert for helm tests

This PS will have s3cmd use a ca cert rather than skipping
certificate verification.

Change-Id: I87e1d79c64a05229a99939ca92506e06e32e4cb8
This commit is contained in:
Ritchie, Frank (fr801x) 2021-04-29 09:55:46 -04:00
parent e055452726
commit e12d3f49e0
4 changed files with 7 additions and 2 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Ceph RadosGW description: OpenStack-Helm Ceph RadosGW
name: ceph-rgw name: ceph-rgw
version: 0.1.6 version: 0.1.7
home: https://github.com/ceph/ceph home: https://github.com/ceph/ceph
... ...

View File

@ -84,7 +84,7 @@ function rgw_s3_bucket_validation ()
bucket=s3://rgw-test-bucket bucket=s3://rgw-test-bucket
{{- if .Values.manifests.certificates }} {{- if .Values.manifests.certificates }}
params="--host=$RGW_HOST --host-bucket=$RGW_HOST --access_key=$S3_ADMIN_ACCESS_KEY --secret_key=$S3_ADMIN_SECRET_KEY --no-check-certificate" params="--host=$RGW_HOST --host-bucket=$RGW_HOST --access_key=$S3_ADMIN_ACCESS_KEY --secret_key=$S3_ADMIN_SECRET_KEY --ca-certs=/etc/tls/ca.crt"
{{- else }} {{- else }}
params="--host=$RGW_HOST --host-bucket=$RGW_HOST --access_key=$S3_ADMIN_ACCESS_KEY --secret_key=$S3_ADMIN_SECRET_KEY --no-ssl" params="--host=$RGW_HOST --host-bucket=$RGW_HOST --access_key=$S3_ADMIN_ACCESS_KEY --secret_key=$S3_ADMIN_SECRET_KEY --no-ssl"
{{- end }} {{- end }}

View File

@ -99,6 +99,7 @@ spec:
mountPath: /tmp/helm-tests.sh mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh subPath: helm-tests.sh
readOnly: true readOnly: true
{{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.ceph_object_store.api.internal "path" "/etc/tls" | include "helm-toolkit.snippets.tls_volume_mount" | indent 8 }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp - name: pod-tmp
@ -119,4 +120,7 @@ spec:
{{- if .Values.conf.rgw_ks.enabled }} {{- if .Values.conf.rgw_ks.enabled }}
{{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.object_store.api.internal | include "helm-toolkit.snippets.tls_volume" | indent 4 }} {{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.object_store.api.internal | include "helm-toolkit.snippets.tls_volume" | indent 4 }}
{{- end }} {{- end }}
{{- if .Values.conf.rgw_s3.enabled }}
{{- dict "enabled" .Values.manifests.certificates "name" .Values.secrets.tls.ceph_object_store.api.internal | include "helm-toolkit.snippets.tls_volume" | indent 4 }}
{{- end }}
{{- end }} {{- end }}

View File

@ -7,4 +7,5 @@ ceph-rgw:
- 0.1.4 Rgw placement target support - 0.1.4 Rgw placement target support
- 0.1.5 Add tls support - 0.1.5 Add tls support
- 0.1.6 Update tls override options - 0.1.6 Update tls override options
- 0.1.7 Use ca cert for helm tests
... ...