Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ spec:
{{- end}}
{{- end}}
containers:
- name: {{ $.Chart.Name }}
- name: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
image: "{{ .Values.server.deployment.image }}:{{ .Values.server.deployment.image_tag }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if $.Values.containerSpec.lifecycle.enabled }}
Expand Down Expand Up @@ -825,7 +825,7 @@ spec:
{{- end}}
{{- end}}
containers:
- name: {{ $.Chart.Name }}
- name: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
image: "{{ .Values.server.deployment.image }}:{{ .Values.server.deployment.image_tag }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if $.Values.containerSpec.lifecycle.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- type: ContainerResource
containerResource:
name: cpu
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetCPUUtilizationPercentage }}
Expand All @@ -52,7 +52,7 @@ spec:
- type: ContainerResource
containerResource:
name: memory
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetMemoryUtilizationPercentage }}
Expand Down Expand Up @@ -126,7 +126,7 @@ spec:
- type: ContainerResource
containerResource:
name: cpu
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetCPUUtilizationPercentage }}
Expand All @@ -135,7 +135,7 @@ spec:
- type: ContainerResource
containerResource:
name: memory
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetMemoryUtilizationPercentage }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ pauseForSecondsBeforeSwitchActive: 30
waitForSecondsBeforeScalingDown: 30
autoPromotionSeconds: 30

# Optional override for the main container name. If provided, this name will be used
# for the primary container instead of the default chart-derived name.
containerName: ""

Spec:
Affinity:
Key: ""
Expand Down Expand Up @@ -704,6 +708,8 @@ customPodLabels: {}

secondaryWorkload:
enabled: false
# Optional override for secondary workload's main container name
containerName: ""
Spec:
Affinity:
Key: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ spec:
{{- end}}
{{- end}}
containers:
- name: {{ $.Chart.Name }}
- name: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
image: "{{ .Values.server.deployment.image }}:{{ .Values.server.deployment.image_tag }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if $.Values.containerSpec.lifecycle.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- type: ContainerResource
containerResource:
name: cpu
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetCPUUtilizationPercentage }}
Expand All @@ -52,7 +52,7 @@ spec:
- type: ContainerResource
containerResource:
name: memory
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetMemoryUtilizationPercentage }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ pauseForSecondsBeforeSwitchActive: 30
waitForSecondsBeforeScalingDown: 30
autoPromotionSeconds: 30

# Optional override for the main container name. If provided, this name will be used
# for the primary container instead of the default chart-derived name.
containerName: ""

Spec:
Affinity:
Key:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
- type: ContainerResource
containerResource:
name: cpu
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetCPUUtilizationPercentage }}
Expand All @@ -53,7 +53,7 @@ spec:
- type: ContainerResource
containerResource:
name: memory
container: {{ $.Chart.Name }}
container: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
target:
type: Utilization
averageUtilization: {{ .TargetMemoryUtilizationPercentage }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ spec:
{{- end}}
{{- end}}
containers:
- name: {{ $.Chart.Name }}
- name: "{{ if $.Values.containerName }}{{ $.Values.containerName }}{{ else }}{{ $.Chart.Name }}{{ end }}"
image: "{{ .Values.server.deployment.image }}:{{ .Values.server.deployment.image_tag }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if $.Values.containerSpec.lifecycle.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ pauseForSecondsBeforeSwitchActive: 30
waitForSecondsBeforeScalingDown: 30
autoPromotionSeconds: 30

# Optional override for the main container name. If provided, this name will be used
# for the primary container instead of the default chart-derived name.
containerName: ""

Spec:
Affinity:
Key:
Expand Down