Skip to content

Commit

Permalink
charts/deployment: adjust for wrapper script
Browse files Browse the repository at this point in the history
By using a wrapper script as the container entrypoint, we abstract how
arguments to the underlying radosgw binary are passed. Instead, pass
arguments known by the script, and let it do what is best.

Signed-off-by: Joao Eduardo Luis <[email protected]>
  • Loading branch information
jecluis committed Nov 14, 2023
1 parent 9e109d8 commit ce35341
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
6 changes: 2 additions & 4 deletions charts/s3gw/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ questions:
group: "Advanced"
show_subquestion_if: true
subquestions:

- variable: imageRegistry
default:
description: "Image Registry"
Expand Down Expand Up @@ -329,8 +328,8 @@ questions:
group: "Advanced"

- variable: logLevel
default: "1"
description: "s3gw pod log level, lower values are less verbose"
default: "none"
description: "s3gw pod log level, allowed values: 'none', 'low', 'medium', 'high'"
label: "s3gw pod log level"
required: false
type: string
Expand All @@ -345,7 +344,6 @@ questions:
group: "COSI"
show_subquestion_if: true
subquestions:

- variable: cosi.driver.imageName
default: ""
description: "Image name for the COSI Driver"
Expand Down
16 changes: 6 additions & 10 deletions charts/s3gw/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,22 @@ spec:
image: {{ include "s3gw.image" . | quote }}
imagePullPolicy: {{ default "IfNotPresent" .Values.imagePullPolicy }}
args:
- "--rgw-dns-name"
- "--dns-name"
{{- if .Values.ingress.enabled }}
- {{ include "s3gw.serviceName" . }}.{{ .Values.publicDomain }},
{{ include "s3gw.serviceName" . }}.{{ .Release.Namespace }}.{{ .Values.privateDomain }}
{{- else}}
- {{ include "s3gw.serviceName" . }}.{{ .Release.Namespace }}.{{ .Values.privateDomain }}
{{- end }}
- "--rgw-backend-store"
- sfs
- "--debug-rgw"
- "--debug"
- '{{ .Values.logLevel }}'
- "--rgw_frontends"
{{- if or .Values.useCertManager .Values.tls.publicDomain.crt }}
- "beast port=7480 ssl_port=7481
ssl_certificate=/s3gw-cluster-ip-tls/tls.crt
ssl_private_key=/s3gw-cluster-ip-tls/tls.key"
{{ else }}
- "beast port=7480"
- "--cert"
- "/s3gw-cluster-ip-tls/tls.crt"
- "/s3gw-cluster-ip-tls/tls.key"
{{ end }}
{{- range $.Values.rgwCustomArgs }}
- "--"
- {{ . | quote}}
{{- end }}
env:
Expand Down
4 changes: 2 additions & 2 deletions charts/s3gw/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ storageClass:
# email: [email protected]

# s3gw pod log level.
# Valid values are positive integers starting from 0.
# Valid values are "none", "low", "medium", and "high".
# Higher values are more verbose.
logLevel: "1"
logLevel: "none"

# --- Advanced Configuration ---

Expand Down

0 comments on commit ce35341

Please sign in to comment.