ytproxy bug and resources (#20)

* ytproxy bug and resources

fixed missing .ytproxy in pod template and fixed resources

* Update Chart.yaml
* Changelog and readme

---------

Co-authored-by: Skyler Mäntysaari <samip5@users.noreply.github.com>
This commit is contained in:
Aleksa Siriški 2023-05-03 20:41:50 +00:00 committed by GitHub
parent 646872cedb
commit 03c86e5b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 24 deletions

View file

@ -3,6 +3,10 @@
- name: {{ include "backend.names.fullname" . }}
image: {{ printf "%s:%s" .Values.backend.image.repository (default .Chart.AppVersion .Values.backend.image.tag) | quote }}
imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
{{- with .Values.backend.resources }}
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.backend.command }}
command:
{{- if kindIs "string" . }}

View file

@ -102,8 +102,4 @@ topologySpreadConstraints:
tolerations:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.backend.resources }}
resources:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}}

View file

@ -3,6 +3,10 @@
- name: {{ include "frontend.names.fullname" . }}
image: {{ printf "%s:%s" .Values.frontend.image.repository (default .Chart.AppVersion .Values.frontend.image.tag) | quote }}
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
{{- with .Values.frontend.resources }}
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.frontend.command }}
command:
{{- if kindIs "string" . }}

View file

@ -98,8 +98,4 @@ topologySpreadConstraints:
tolerations:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.frontend.resources }}
resources:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}}

View file

@ -3,6 +3,10 @@
- name: {{ include "ytproxy.names.fullname" . }}
image: {{ printf "%s:%s" .Values.ytproxy.image.repository (default .Chart.AppVersion .Values.ytproxy.image.tag) | quote }}
imagePullPolicy: {{ .Values.ytproxy.image.pullPolicy }}
{{- with .Values.ytproxy.resources }}
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.ytproxy.command }}
command:
{{- if kindIs "string" . }}

View file

@ -82,28 +82,24 @@ containers:
volumes:
{{- nindent 2 . }}
{{- end }}
{{- with .Values.hostAliases }}
{{- with .Values.ytproxy.hostAliases }}
hostAliases:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with .Values.ytproxy.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.affinity }}
{{- with .Values.ytproxy.affinity }}
affinity:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
{{- with .Values.ytproxy.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.tolerations }}
{{- with .Values.ytproxy.tolerations }}
tolerations:
{{- toYaml . | nindent 2 }}
{{- end -}}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}}
{{- end -}}