-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/suitecrm] adds chart to deploy SuiteCRM #1258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply best practices for standard labels, especially the app
label.
https://github.com/kubernetes/helm/blob/master/docs/chart_best_practices/labels.md
Marking as stale. Please update within the next week. |
Closing as stale. Feel free to re-open if/when you decide to work on this again. |
1c0644b
to
095a022
Compare
sorry missed you comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The app
label should be {{ template "name" . }}
.
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24 -> 63
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24 -> 63
6540e19
to
b94449e
Compare
updated with the required changes. |
stable/suitecrm/templates/NOTES.txt
Outdated
|
||
{{- if eq .Values.serviceType "ClusterIP" }} | ||
|
||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "fullname" . }}" -o jsonpath="{.items[0].metadata.name}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"app={{ template "fullname" . }}"
-> "app={{ template "name" . }},release={{ .Release.Name }}"
spec: | ||
template: | ||
metadata: | ||
labels: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only app
and release
label should be added here.
port: 443 | ||
targetPort: https | ||
selector: | ||
app: {{ template "name" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add release
label to selector.
containers: | ||
- name: {{ template "fullname" . }} | ||
image: "{{ .Values.image }}" | ||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add default ""
.
- name: SUITECRM_HOST | ||
value: {{ include "host" . | quote }} | ||
- name: SUITECRM_USERNAME | ||
value: {{ default "" .Values.suitecrmUsername | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add default ""
if you add an empty default to values.yml
. Apply where applicable in the whole chart.
updated! thanks for the review. |
stable/suitecrm/templates/NOTES.txt
Outdated
|
||
{{- if eq .Values.serviceType "ClusterIP" }} | ||
|
||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "name" . }}" -o jsonpath="{.items[0].metadata.name}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"app={{ template "name" . }}"
-> "app={{ template "name" . }},release={{ .Release.Name }}"
updated! |
* Automated cherry pick of helm#1314 (cert-manager/cert-manager#1315) * Automated cherry pick of helm#1294 (cert-manager/cert-manager#1296) * Automated cherry pick of helm#1276 (cert-manager/cert-manager#1277) * Automated cherry pick of helm#1258 helm#1266 (cert-manager/cert-manager#1273) * Automated cherry pick of helm#1259 (cert-manager/cert-manager#1260) * Update Chart.yaml in webhook (cert-manager/cert-manager#1249)
* Automated cherry pick of helm#1314 (cert-manager/cert-manager#1315) * Automated cherry pick of helm#1294 (cert-manager/cert-manager#1296) * Automated cherry pick of helm#1276 (cert-manager/cert-manager#1277) * Automated cherry pick of helm#1258 helm#1266 (cert-manager/cert-manager#1273) * Automated cherry pick of helm#1259 (cert-manager/cert-manager#1260) * Update Chart.yaml in webhook (cert-manager/cert-manager#1249) Signed-off-by: James Munnelly <[email protected]>
No description provided.