Skip to content

Commit

Permalink
flatten halme values
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 19, 2024
1 parent 3bbf8d5 commit 8e60d5a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/s3-bucket-sync/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: s3-bucket-sync
description: Keeps 2 s3 buckets in sync
type: application

version: 0.0.3
version: 0.0.4

# App metadata
appVersion: "v0.9.0"
Expand Down
8 changes: 4 additions & 4 deletions charts/s3-bucket-sync/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: ConfigMap
metadata:
name: {{ .Release.Name }}-sync-config
data:
SOURCE_BUCKET: "{{ .Values.source.bucket }}"
SOURCE_ENDPOINT: "{{ .Values.source.endpoint }}"
DESTINATION_BUCKET: "{{ .Values.destination.bucket }}"
DESTINATION_ENDPOINT: "{{ .Values.destination.endpoint }}"
SOURCE_BUCKET: "{{ .Values.sourceBucket }}"
SOURCE_ENDPOINT: "{{ .Values.sourceEndpoint }}"
DESTINATION_BUCKET: "{{ .Values.destinationBucket }}"
DESTINATION_ENDPOINT: "{{ .Values.destinationEndpoint }}"
MINIO_EXTRA_ARGS: "{{ .Values.minioExtraArgs }}"
8 changes: 4 additions & 4 deletions charts/s3-bucket-sync/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ .Release.Name }}-sync-credentials
type: Opaque
stringData:
SOURCE_ACCESS_KEY: "{{ .Values.source.accessKey }}"
SOURCE_SECRET_KEY: "{{ .Values.source.secretKey }}"
DESTINATION_ACCESS_KEY: "{{ .Values.destination.accessKey }}"
DESTINATION_SECRET_KEY: "{{ .Values.destination.secretKey }}"
SOURCE_ACCESS_KEY: "{{ .Values.sourceAccessKey }}"
SOURCE_SECRET_KEY: "{{ .Values.sourceSecretKey }}"
DESTINATION_ACCESS_KEY: "{{ .Values.destinationAccessKey }}"
DESTINATION_SECRET_KEY: "{{ .Values.destinationSecretKey }}"
18 changes: 8 additions & 10 deletions charts/s3-bucket-sync/values.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Source
source:
endpoint: "http://localhost:9000"
bucket: "my-bucket"
accessKey: "my-access-key"
secretKey: "my-secret-key"
sourceEndpoint: "http://localhost:9000"
sourceBucket: "my-bucket"
sourceAccessKey: "my-access-key"
sourceSecretKey: "my-secret-key"

# Destination
destination:
endpoint: "http://localhost:9000"
bucket: "my-bucket"
accessKey: "my-access-key"
secretKey: "my-secret-key"
destinationEndpoint: "http://localhost:9000"
destinationBucket: "my-bucket"
destinationAccessKey: "my-access-key"
destinationSecretKey: "my-secret-key"

minioExtraArgs: ""
imageTag: "v0.9.0"

0 comments on commit 8e60d5a

Please sign in to comment.