Skip to content
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

Enable setting replicas even when AutoScale is active #314

Closed
wants to merge 3 commits into from

Conversation

hanayo04
Copy link
Contributor

@hanayo04 hanayo04 commented Jun 13, 2024

Modify to allow setting replicas even when AutoScale is enabled

  • Before modification: Deployment replicas are set if autoscale is false and replicaCount is not 0 or nil
  • After modification: Deployment replicas are set if replicaCount is not nil

Checklist

  • Chart Version bumped

Comment on lines +16 to 18
{{- if (ne .Values.replicaCount nil) }}
replicas: {{ .Values.replicaCount }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{{- if (ne .Values.replicaCount nil) }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{- with .Values.replicaCount }}
replicas: {{ . }}
{{- end }}

@hanayo04 hanayo04 closed this Jun 13, 2024
@hanayo04 hanayo04 deleted the SREP-1678 branch June 13, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants