Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Add resources limits and requests for some charts #163

Merged
merged 16 commits into from
Feb 2, 2017
Merged

Add resources limits and requests for some charts #163

merged 16 commits into from
Feb 2, 2017

Conversation

Ciello89
Copy link
Contributor

@Ciello89 Ciello89 commented Jan 31, 2017

Cleaning pull request #103


This change is Reviewable

@Ciello89
Copy link
Contributor Author

Hey @alanmeadows, I think this pull request is good to go.

@att-comdev-bot
Copy link

@att-comdev-bot
Copy link

Copy link
Contributor

@alanmeadows alanmeadows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cleaner then the original closed pull request, lacking the issues with stale init-container work. There is just one (but consistent) indentation issue with the {{ if }} conditional and {{ end }} statements across all charts. It should align with the line preceding it.

@@ -35,6 +35,15 @@ spec:
- name: glance-api
image: {{ .Values.images.api }}
imagePullPolicy: {{ .Values.images.pull_policy }}
{{- if .Values.resources.enabled }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ciello89 Looks like an indendation issue here - this should line up with L37.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

requests:
cpu: {{ .Values.resources.api.requests.cpu | quote }}
memory: {{ .Values.resources.api.requests.memory | quote }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here - this should line up with L37.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@att-comdev-bot
Copy link

@att-comdev-bot
Copy link

{{- if .Values.resources.enabled }}
resources:
limits:
cpu: {{ .Values.resources.api.limits.cpu }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for consistency you should add {{ .... | quote }} in memcached also

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

Copy link
Contributor

@alanmeadows alanmeadows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @Ciello89

@alanmeadows alanmeadows merged commit fc21a2e into att-comdev:master Feb 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants