kind: ConfigMap apiVersion: v1 metadata: name: {{ template "artifactory-ha.fullname" . }}-bs labels: app: {{ template "artifactory-ha.name" . }} chart: {{ template "artifactory-ha.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} data: binarystore.xml: |- {{- if eq .Values.artifactory.persistence.type "file-system" }} {{- if .Values.artifactory.persistence.fileSystem.existingSharedClaim.enabled }} {{- range $sharedClaimNumber, $e := until (.Values.artifactory.persistence.fileSystem.existingSharedClaim.numberOfExistingClaims|int) -}} {{- end }} // Specify the read and write strategy and redundancy for the sharding binary provider roundRobin percentageFreeSpace 2 {{- range $sharedClaimNumber, $e := until (.Values.artifactory.persistence.fileSystem.existingSharedClaim.numberOfExistingClaims|int) -}} //For each sub-provider (mount), specify the filestore location filestore{{ $sharedClaimNumber }} {{- end }} {{- else }} crossNetworkStrategy crossNetworkStrategy {{ .Values.artifactory.persistence.redundancy }} 2 2 shard-fs-1 local 30 tester-remote1 10000 remote {{- end }} {{- end }} {{- if eq .Values.artifactory.persistence.type "google-storage" }} crossNetworkStrategy crossNetworkStrategy {{ .Values.artifactory.persistence.redundancy }} 2 {{ .Values.artifactory.persistence.maxCacheSize }} local 30 10000 remote {{ .Values.artifactory.persistence.mountPath }}/data/filestore /tmp google-cloud-storage commondatastorage.googleapis.com false {{ .Values.artifactory.persistence.googleStorage.bucketName }} {{ .Values.artifactory.persistence.googleStorage.identity }} {{ .Values.artifactory.persistence.googleStorage.credential }} {{ .Values.artifactory.persistence.googleStorage.path }} {{ .Values.artifactory.persistence.googleStorage.bucketExists }} {{- end }} {{- if eq .Values.artifactory.persistence.type "aws-s3" }} {{ .Values.artifactory.persistence.maxCacheSize }} local 30 10000 remote crossNetworkStrategy crossNetworkStrategy {{ .Values.artifactory.persistence.redundancy }} {{ .Values.artifactory.persistence.awsS3.endpoint }} {{- if .Values.artifactory.persistence.awsS3.roleName }} {{ .Values.artifactory.persistence.awsS3.roleName }} true {{- else }} {{ .Values.artifactory.persistence.awsS3.refreshCredentials }} {{- end }} {{ .Values.artifactory.persistence.awsS3.s3AwsVersion }} {{ .Values.artifactory.persistence.awsS3.testConnection }} true {{ .Values.artifactory.persistence.awsS3.region }} {{ .Values.artifactory.persistence.awsS3.bucketName }} {{- if .Values.artifactory.persistence.awsS3.identity }} {{ .Values.artifactory.persistence.awsS3.identity }} {{- end }} {{- if .Values.artifactory.persistence.awsS3.credential }} {{ .Values.artifactory.persistence.awsS3.credential }} {{- end }} {{ .Values.artifactory.persistence.awsS3.path }} {{- range $key, $value := .Values.artifactory.persistence.awsS3.properties }} {{- end }} {{- end }} {{- if eq .Values.artifactory.persistence.type "azure-blob" }} crossNetworkStrategy crossNetworkStrategy 2 1 remote local {{ .Values.artifactory.persistence.azureBlob.accountName }} {{ .Values.artifactory.persistence.azureBlob.accountKey }} {{ .Values.artifactory.persistence.azureBlob.endpoint }} {{ .Values.artifactory.persistence.azureBlob.containerName }} {{ .Values.artifactory.persistence.azureBlob.testConnection }} {{- end }}