Skip to content

Commit

Permalink
Try #505:
Browse files Browse the repository at this point in the history
  • Loading branch information
mayastor-bors committed May 20, 2024
2 parents 3b28e2a + bec7d89 commit 48928b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ This removes all the Kubernetes components associated with the chart and deletes
| apis.​rest.​tolerations | Set tolerations, overrides global | `[]` |
| base.​cache_poll_period | Cache timeout for core agent & diskpool deployment | `"30s"` |
| base.​default_req_timeout | Request timeout for rest & core agents | `"5s"` |
| base.​imagePullSecrets.​enabled | Enable imagePullSecrets for pulling our container images | `false` |
| base.​logging.​color | Enable ansi color code for Pod StdOut/StdErr | `true` |
| base.​logging.​format | Valid values for format are pretty, json and compact | `"pretty"` |
| base.​logging.​silenceLevel | Silence specific module components | `nil` |
Expand Down
8 changes: 6 additions & 2 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ Usage:
{{ include "base_pull_secrets" . }}
*/}}
{{- define "base_pull_secrets" -}}
{{- if .Values.base.imagePullSecrets.enabled }}
{{- include "render" (dict "value" .Values.base.imagePullSecrets.secrets "context" $) | nindent 8 }}
{{- if .Values.base.imagePullSecrets }}
{{- if .Values.base.imagePullSecrets.enabled }}
{{- include "render" (dict "value" .Values.base.imagePullSecrets.secrets "context" $) | nindent 8 }}
{{- end }}
{{- else -}}
{{- include "render" (dict "value" .Values.image.pullSecrets "context" $) | nindent 8 }}
{{- end }}
{{- end -}}

Expand Down
10 changes: 3 additions & 7 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ image:
# -- ImagePullPolicy for our images
pullPolicy: Always

# docker-secrets required to pull images if the container registry from image.Registry is protected
pullSecrets: []

# -- Node labels for pod assignment
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
# Note that if multi-arch images support 'kubernetes.io/arch: amd64'
Expand Down Expand Up @@ -87,13 +90,6 @@ base:
- name: etcd-probe
image: busybox:latest
command: ['sh', '-c', 'trap "exit 1" TERM; until nc -vzw 5 {{ .Release.Name }}-etcd {{.Values.etcd.service.port}}; do date; echo "Waiting for etcd..."; sleep 1; done;']
# docker-secrets required to pull images if the container registry from image.Registry is protected
imagePullSecrets:
# -- Enable imagePullSecrets for pulling our container images
enabled: false
# Name of the imagePullSecret in the installed namespace
secrets:
- name: login

metrics:
# -- Enable the metrics exporter
Expand Down

0 comments on commit 48928b5

Please sign in to comment.