Skip to content

Commit

Permalink
Chart modifications (#428)
Browse files Browse the repository at this point in the history
* Changes to charts

Signed-off-by: SrishT <[email protected]>

* Changes to charts

Signed-off-by: SrishT <[email protected]>

Co-authored-by: SrishT <[email protected]>
  • Loading branch information
SrishT and SrishT authored Jul 23, 2020
1 parent bf5afd9 commit ee46298
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 10 additions & 14 deletions charts/pravega/templates/pravega.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,34 +37,30 @@ spec:
controllerExtServiceType: {{ .Values.controller.service.type }}
{{- end }}
{{- if .Values.controller.service.annotations }}
controllerSvcAnnotations: {{ .Values.controller.service.annotations }}
controllerSvcAnnotations:
{{ toYaml .Values.controller.service.annotations | indent 6 }}
{{- end }}
{{- if .Values.segmentStore.service.type }}
segmentStoreExtServiceType: {{ .Values.segmentStore.service.type }}
{{- end }}
{{- if .Values.segmentStore.service.annotations }}
segmentStoreSvcAnnotations: {{ .Values.segmentStore.service.annotations }}
segmentStoreSvcAnnotations:
{{ toYaml .Values.segmentStore.service.annotations | indent 6 }}
{{- end }}
{{- end }}
image:
repository: {{ .Values.image.repository }}
pullPolicy: {{ .Values.image.pullPolicy }}
controllerReplicas: {{ .Values.controller.replicas }}
{{- if .Values.controller.resources }}
controllerResources:
requests:
memory: {{ .Values.controller.resources.requests.memory | quote }}
cpu: {{ .Values.controller.resources.requests.cpu | quote }}
limits:
memory: {{ .Values.controller.resources.limits.memory | quote }}
cpu: {{ .Values.controller.resources.limits.cpu | quote }}
{{ toYaml .Values.controller.resources | indent 6 }}
{{- end }}
segmentStoreReplicas: {{ .Values.segmentStore.replicas }}
{{- if .Values.segmentStore.resources }}
segmentStoreResources:
requests:
memory: {{ .Values.segmentStore.resources.requests.memory | quote }}
cpu: {{ .Values.segmentStore.resources.requests.cpu | quote }}
limits:
memory: {{ .Values.segmentStore.resources.limits.memory | quote }}
cpu: {{ .Values.segmentStore.resources.limits.cpu | quote }}
{{ toYaml .Values.segmentStore.resources | indent 6 }}
{{- end }}
{{- if .Values.segmentStore.env }}
segmentStoreEnvVars: {{ .Values.segmentStore.env }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions setup/pravegacluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ deploy_cluster () {
}

destroy_cluster(){
set +ex
helm uninstall pravega
helm uninstall bookkeeper
helm uninstall zookeeper
helm uninstall pravega-operator
helm uninstall bookkeeper-operator
helm uninstall zookeeper-operator
set -ex
}

if [ $1 == "deploy" ]; then
Expand Down

0 comments on commit ee46298

Please sign in to comment.