UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Add doc objectstorage

Merged Kavitha Thulasiraman requested to merge add-doc-objectstorage into master
Compare and Show latest version
1 file
+ 8
13
Compare changes
  • Side-by-side
  • Inline
@@ -8,7+8,7 @@
Blob storage bucket available with correct permissions, or Minio Addon is enabled at the BigBang level. Alternatively, you have (1) an existing Minio Instance, or (2) AWS S3 AccessKey and SecretKey.
## Integration
There are currently 2 typical ways in bigbang that packages connect to object storage.
@@ -92,7+92,7 @@
- Create the secret in the Big Bang chart. (NOTE: Replace <package> with your package name in the example below)
```yml
{{- if or .Values.addons.<package>.enabled }}
{{- if .Values.addons.<package>.objectStorage.endpoint }}
{{- if and (ne .Values.addons.<package>.objectStorage.iamProfile "") (ne .Values.addons.<package>.objectStorage.accessKey "") }}{{- fail "Must choose to use an IAM profile OR an AWS accessKey/accessSecret at .Values.addons.<package>.objectStorage" }}{{- end }}
{{- if .Values.addons.<package>.enabled }}
{{- with .Values.addons.<package>.objectStorage }}
{{- if and .endpoint .accessKey .accessSecret }}
apiVersion: v1
kind: Secret
metadata:
@@ -102,16 +102,11 @@ metadata:
namespace: <package>
type: kubernetes.io/opaque
stringData:
registry: |-
s3:
{{- $global := .Values.addons.<package>.values.global | default dict }}
{{- $registryConfig := $global.registry | default dict }}
bucket: <package>-registry
{{- if eq .Values.addons.<package>.objectStorage.iamProfile "" }}
accesskey: {{ .Values.addons.<package>.objectStorage.accessKey }}
secretkey: {{ .Values.addons.<package>.objectStorage.accessSecret }}
{{- end }}
endpoint: {{ .Values.addons.<package>.objectStorage.endpoint }}
bucket: {{ .bucket | default "<package>-bucket" }}
accesskey: {{ .accessKey }}
secretkey: {{ .accessSecret }}
endpoint: {{ .endpoint }}
{{- end }}
{{- end }}
{{- end }}
```
Loading