charts: move pcloud yaml configs into templates
diff --git a/apps/minio/chart/templates/configmap.yaml b/apps/minio/chart/templates/configmap.yaml
index 5861511..ff62eda 100644
--- a/apps/minio/chart/templates/configmap.yaml
+++ b/apps/minio/chart/templates/configmap.yaml
@@ -3,4 +3,5 @@
metadata:
name: action-env
data:
- minio_addr: http://{{ template "minio.fullname" . }}:{{ .Values.minio.service.port }}
+ # TODO(giolekva): figure out how to use template "minio.fullname" .
+ minio_addr: http://{{ .Values.minio.fullnameOverride }}:{{ .Values.minio.service.port }}
diff --git a/apps/minio/chart/templates/ingress.yaml b/apps/minio/chart/templates/ingress.yaml
index 2e09222..94bd141 100644
--- a/apps/minio/chart/templates/ingress.yaml
+++ b/apps/minio/chart/templates/ingress.yaml
@@ -11,7 +11,8 @@
match: Host(`{{ .Values.ingressHost }}`)
services:
- kind: Service
- name: {{ template "minio.fullname" . }}
+ # TODO(giolekva): figure out how to use template "minio.fullname" .
+ name: {{ .Values.minio.fullnameOverride }}
namespace: {{ .Release.Namespace }}
passHostHeader: true
port: {{ .Values.minio.service.port }}
diff --git a/apps/minio/chart/templates/pcloud/Actions.yaml b/apps/minio/chart/templates/pcloud/Actions.yaml
index 3d674a6..6873de0 100644
--- a/apps/minio/chart/templates/pcloud/Actions.yaml
+++ b/apps/minio/chart/templates/pcloud/Actions.yaml
@@ -29,5 +29,5 @@
name: minio-creds
key: secretkey
command: ["/bin/sh", "-c"]
- args: ["mc config host add minio $MINIO_ADDR $ACCESS_KEY $SECRET_KEY && mc mb minio/[[ .BucketName ]] && mc admin config set minio notify_webhook:minio queue_limit=\"1000\" queue_dir=\"/tmp/events\" endpoint=\"[[ .WebhookURL ]]\" && mc admin service restart minio && mc event add minio/[[ .BucketName ]] arn:minio:sqs::minio:webhook --event put && mc policy set public minio/[[ .BucketName ]]"]
+ args: ["mc config host add minio $MINIO_ADDR $ACCESS_KEY $SECRET_KEY && mc mb minio/{-{ .BucketName }-} && mc admin config set minio notify_webhook:minio queue_limit=\"1000\" queue_dir=\"/tmp/events\" endpoint=\"{-{ .WebhookURL }-}\" && mc admin service restart minio && mc event add minio/{-{ .BucketName }-} arn:minio:sqs::minio:webhook --event put && mc policy set public minio/{-{ .BucketName }-}"]
restartPolicy: Never