Skip to content

Commit 43a9671

Browse files
committed
chore(charts): use condition
1 parent 2a3accc commit 43a9671

5 files changed

Lines changed: 1 addition & 25 deletions

File tree

charts/storage/templates/storage-secret-creds.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,5 @@ metadata:
66
heritage: drycc
77
type: Opaque
88
data:
9-
{{- if eq .Values.global.storageLocation "on-cluster"}}
10-
lookup: {{ "path" | b64enc }}
11-
{{- $endpoint := (printf "http://drycc-storage.%s.svc.%s:9000" .Release.Namespace .Values.global.clusterDomain) }}
12-
endpoint: {{ $endpoint | b64enc }}
13-
builder-bucket: {{ "builder" | b64enc }}
14-
registry-bucket: {{ "registry" | b64enc }}
15-
{{- else }}
16-
lookup: {{ .Values.lookup | b64enc }}
17-
endpoint: {{ .Values.endpoint | b64enc }}
18-
builder-bucket: {{ .Values.builderBucket | b64enc }}
19-
registry-bucket: {{ .Values.registryBucket | b64enc }}
20-
{{- end }}
219
accesskey: {{ include "common.secrets.lookup" (dict "secret" "storage-creds" "key" "accesskey" "defaultValue" (include "storage.accesskey" .) "context" $) }}
22-
secretkey: {{ include "common.secrets.lookup" (dict "secret" "storage-creds" "key" "secretkey" "defaultValue" (include "storage.secretkey" .) "context" $) }}
10+
secretkey: {{ include "common.secrets.lookup" (dict "secret" "storage-creds" "key" "secretkey" "defaultValue" (include "storage.secretkey" .) "context" $) }}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
{{- if eq .Values.global.storageLocation "on-cluster" }}
21
apiVersion: v1
32
kind: ServiceAccount
43
metadata:
54
name: drycc-storage
65
labels:
76
heritage: drycc
8-
{{- end }}

charts/storage/templates/storage-service.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if eq .Values.global.storageLocation "on-cluster" }}
21
apiVersion: v1
32
kind: Service
43
metadata:
@@ -21,4 +20,3 @@ spec:
2120
port: 9000
2221
- name: console
2322
port: 9001
24-
{{- end }}

charts/storage/templates/storage-statefulset.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if eq .Values.global.storageLocation "on-cluster" }}
21
{{- $zoneCount := int .Values.zones }}
32
{{- $driveCount := int .Values.drives }}
43
{{- $replicaCount := int .Values.replicas }}
@@ -118,4 +117,3 @@ spec:
118117
emptyDir: {}
119118
{{- end }}
120119
{{- end }}
121-
{{- end }}

charts/storage/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,3 @@ global:
4545
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
4646
# It must start and end with a lowercase letter or digit.
4747
clusterDomain: "cluster.local"
48-
# Set the location of Workflow's Object Storage
49-
#
50-
# Valid values are:
51-
# - on-cluster: Run drycc storage within the Kubernetes cluster
52-
# - off-cluster: Run Storage outside the Kubernetes cluster (Compatible with s3 API)
53-
storageLocation: on-cluster

0 commit comments

Comments
 (0)