-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HPA targeted at Rollout #315
Conversation
@@ -13,7 +13,7 @@ metadata: | |||
{{- end }} | |||
name: "{{ include "akka.fullname" . }}" | |||
spec: | |||
{{- if and (not .Values.autoscaling.enabled) .Values.replicaCount }} | |||
{{- if and (not .Values.autoscaling.enabled) (ne .Values.replicaCount nil) }} |
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.
Change .Values.replicaCount
to ne .Values.replicaCount nil
because we want to allow a setting of 0, even though it currently becomes true
when .Values.replicaCount
is not nil
or 0
.
name: "{{ template "akka.fullname" . }}" | ||
{{- end }} | ||
|
||
{{- if .Values.autoscalingRollout.enabled -}} |
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.
Do we define autoscaling
and autoscalingRollout
together? If they are defined together, then ---
is necessary to separate yaml, and if they are not defined together, then it would be better to add them to the condition as https://github.com/chatwork/charts/blob/master/fluentd/templates/statefulset.yaml#L2.
Checklist