-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implemented chronicler and tests * removed default automountServiceAccountToken * Added limits * Fixed cpu limit * Update reusable-verify-chart.yaml to latest version * Changed initContainer to use kubectl * removed .debug * Moved UriOptionsLoader to common * Improve security by setting container security context * Add ephemeral-storage limit to deployment and limits templates
- Loading branch information
1 parent
24547b6
commit ad9f462
Showing
50 changed files
with
2,619 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{- define "checkKey" -}} | ||
{{- $value := index . 0 -}} | ||
{{- $name := index . 1 -}} | ||
|
||
{{- if kindIs "string" $value }} | ||
value: {{ required (printf "The value for %s is not provided" $name) $value | quote }} | ||
{{- else if and (hasKey $value "secretRef") (hasKey $value "configMapRef") }} | ||
{{ fail (printf "Both secretRef and configMapRef are defined for %s" $name) }} | ||
{{- else if hasKey $value "secretRef" }} | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ required (printf "The value for %s.secretRef.name is not provided" $name) $value.secretRef.name | quote }} | ||
key: {{ required (printf "The value for %s.secretRef.key is not provided" $name) $value.secretRef.key | quote }} | ||
{{- else if hasKey $value "configMapRef" }} | ||
valueFrom: | ||
configMapKeyRef: | ||
name: {{ required (printf "The value for %s.configMapRef.name is not provided" $name) $value.configMapRef.name | quote }} | ||
key: {{ required (printf "The value for %s.configMapRef.name is not provided" $name) $value.configMapRef.key | quote }} | ||
{{- else }} | ||
{{ fail (printf "The value for %s is not provided" $name) }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "database.config" -}} | ||
# Database Configuration | ||
- name: DB_HOST | ||
{{- include "checkKey" (list .Values.postgresql.host ".postgresql.host") }} | ||
- name: DB_PORT | ||
{{- include "checkKey" (list .Values.postgresql.port ".postgresql.port") }} | ||
- name: DB_DATABASE | ||
{{- include "checkKey" (list .Values.postgresql.database ".postgresql.database") }} | ||
- name: DB_USERNAME | ||
{{- include "checkKey" (list .Values.postgresql.username ".postgresql.username") }} | ||
- name: DB_PASSWORD | ||
{{- include "checkKey" (list .Values.postgresql.password ".postgresql.password") }} | ||
- name: ConnectionStrings__Database | ||
value: Host=$(DB_HOST); Port=$(DB_PORT); Database=$(DB_DATABASE); Username=$(DB_USERNAME); Password=$(DB_PASSWORD); | ||
{{- end }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- define "limits" -}} | ||
resources: | ||
requests: | ||
{{- if .Values.resources.requests.cpu }} | ||
cpu: {{ .Values.resources.requests.cpu }} | ||
{{- end }} | ||
{{- if .Values.resources.requests.memory }} | ||
memory: {{ .Values.resources.requests.memory }} | ||
{{- end }} | ||
limits: | ||
{{- if .Values.resources.limits.cpu }} | ||
cpu: {{ .Values.resources.limits.cpu }} | ||
{{- end }} | ||
{{- if .Values.resources.limits.memory }} | ||
memory: {{ .Values.resources.limits.memory }} | ||
{{- end }} | ||
ephemeral-storage: "1Mi" | ||
{{- end -}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.