Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #560 from neosab/jul_fix_helm_chart
Browse files Browse the repository at this point in the history
Helm chart enhancements
  • Loading branch information
neosab authored Jul 10, 2018
2 parents 284291d + a7747db commit 73ccccf
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
- name: DOCKER_API_VERSION
value: "1.24"
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
emptyDir: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
- name: DOCKER_API_VERSION
value: "1.24"
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
emptyDir: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
path: /
port: {{ .Values.service.internalPort }}
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
name: tls
readOnly: true
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
{{- if default .Values.global.data.persist .Values.data.persist }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
- name: DOCKER_HOST
value: "tcp://localhost:2375"
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
- name: {{ .Chart.Name }}-docker
image: docker:dind
imagePullPolicy: {{ default .Values.global.pullPolicy .Values.image.pullPolicy }}
Expand All @@ -95,7 +95,7 @@ spec:
- name: docker-graph-storage
mountPath: /var/lib/docker
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.dindResources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
{{- if default .Values.global.data.persist .Values.data.persist }}
Expand Down
8 changes: 8 additions & 0 deletions charts/dispatch/charts/function-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ resources: {}
#requests:
# cpu: 100m
# memory: 128Mi
# Resources to allocate for Docker-in-Docker container within the function-manager pod
dindResources: {}
# limits:
# cpu: 500m
# memory: 2Gi
#requests:
# cpu: 250m
# memory: 512Mi
faas:
selected: openfaas
templates: /images/function-manager/templates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
initialDelaySeconds: 10
periodSeconds: 3
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
- name: oauth2-proxy
image: {{ .Values.oauth2proxy.image }}
imagePullPolicy: {{ default .Values.global.pullPolicy .Values.image.pullPolicy }}
Expand Down Expand Up @@ -141,7 +141,7 @@ spec:
ports:
- containerPort: {{ .Values.oauth2proxy.service.internalPort }}
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
{{- if default .Values.global.data.persist .Values.data.persist }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
kubernetes.io/ingress.class: "{{ .Values.global.ingress.class }}"
{{ .Values.global.ingress.annotationsPrefix }}/configuration-snippet: |
error_page 403 = @403.json;
error_page 401 = @401.json;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
- name: DOCKER_HOST
value: "tcp://localhost:2375"
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
- name: {{ .Chart.Name }}-docker
image: docker:dind
imagePullPolicy: {{ default .Values.global.pullPolicy .Values.image.pullPolicy }}
Expand All @@ -90,7 +90,7 @@ spec:
- name: docker-graph-storage
mountPath: /var/lib/docker
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.dindResources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
{{- if default .Values.global.data.persist .Values.data.persist }}
Expand Down
18 changes: 13 additions & 5 deletions charts/dispatch/charts/image-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ resources: {}
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 500m
# memory: 4Gi
# requests:
# cpu: 250m
# memory: 2Gi
# cpu: 100m
# memory: 128Mi
#requests:
# cpu: 100m
# memory: 128Mi
# Resources to allocate for Docker-in-Docker container within the image-manager pod
dindResources: {}
# limits:
# cpu: 500m
# memory: 2Gi
#requests:
# cpu: 250m
# memory: 512Mi
registry: {}
# insecure: false
# uri: docker-docker-registry.docker.svc.cluster.local:5000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
- name: DOCKER_API_VERSION
value: "1.23"
resources:
{{ toYaml .Values.resources | default .Values.global.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
{{- if default .Values.global.data.persist .Values.data.persist }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
name: {{ template "fullname" . }}
key: organization
resources:
{{ toYaml .Values.resources | indent 12 }}
{{ .Values.resources | default .Values.global.resources | toYaml | indent 12 }}
volumes:
- name: {{ template "fullname" . }}
{{- if default .Values.global.data.persist .Values.data.persist }}
Expand Down
2 changes: 1 addition & 1 deletion charts/dispatch/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/ingress.class: "{{ .Values.global.ingress.class }}"
{{- range $key, $value := $ingress_annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion charts/dispatch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ global:
release: postgres
ingress:
enabled: true
class: nginx
# Used to create Ingress record (should used with service.type: ClusterIP).
# host: dispatch.vmware.com
# The annotationsPrefix that your ingress controller requires. default - nginx.ingress.kubernetes.io for
Expand Down Expand Up @@ -53,7 +54,7 @@ global:
create: true
# Ignored, if rbac.create is true
serviceAccountName: default
resources:
resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
Expand Down
3 changes: 1 addition & 2 deletions pkg/dispatchcli/cmd/install_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ kafka:
chart: kafka
namespace: dispatch
release: transport
repo: https://riff-charts.storage.googleapis.com
version: 0.0.1
repo: http://storage.googleapis.com/kubernetes-charts-incubator
brokers:
- transport-kafka.dispatch:9092
zookeeperNodes:
Expand Down

0 comments on commit 73ccccf

Please sign in to comment.