Skip to content

Commit

Permalink
Add nodeSelector to helm chart and change default image tag (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycharly authored Apr 21, 2020
1 parent 16e9096 commit 42e2947
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ update_chart_yamls() {

sed -i "s/version.*/version: ${version}/" helm/botkube/Chart.yaml
sed -i "s/appVersion.*/appVersion: ${version}/" helm/botkube/Chart.yaml
sed -i "s/\btag:.*/tag: ${version}/" helm/botkube/values.yaml
sed -i "s/\bimage: \"infracloudio\/botkube.*\b/image: \"infracloudio\/botkube:${version}/g" deploy-all-in-one.yaml
sed -i "s/\bimage: \"infracloudio\/botkube.*\b/image: \"infracloudio\/botkube:${version}/g" deploy-all-in-one-tls.yaml

Expand Down
5 changes: 4 additions & 1 deletion helm/botkube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@ spec:
runAsUser: {{ .Values.securityContext.runAsUser }}
runAsGroup: {{ .Values.securityContext.runAsGroup }}
{{ end }}

{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
4 changes: 2 additions & 2 deletions helm/botkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ replicaCount: 1

image:
repository: infracloudio/botkube
pullPolicy: Always
pullPolicy: IfNotPresent
## default tag is appVersion from Chart.yaml. If you want to use
## some other tag then it can be specified here
tag: latest
tag: v0.9.1

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit 42e2947

Please sign in to comment.