Skip to content

Commit

Permalink
Separate upgradeJob resources header to preserve CLI backwards compat…
Browse files Browse the repository at this point in the history
…ibility

Signed-off-by: Rishabh Raj <rishabhstpaul@gmail.com>
  • Loading branch information
Miraj50 committed Nov 1, 2023
1 parent 132796a commit 51bc4f0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/velero/templates/deployment.yaml
Expand Up @@ -155,7 +155,7 @@ spec:
- --namespace={{ . }}
{{- end }}
{{- end }}
{{- with .Values.resources.server }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/velero/templates/upgrade-crds/upgrade-crds.yaml
Expand Up @@ -75,7 +75,7 @@ spec:
args:
- -c
- /velero install --crds-only --dry-run -o yaml | /tmp/kubectl apply -f -
{{- with .Values.resources.upgradeJob }}
{{- with .Values.upgradeJobResources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
33 changes: 16 additions & 17 deletions charts/velero/values.yaml
Expand Up @@ -71,25 +71,24 @@ podLabels: {}
# Number of old history to retain to allow rollback (If not set, default Kubernetes value is set to 10)
# revisionHistoryLimit: 1

# Resource requests/limits to specify for the Velero deployment and the upgrade CRDs job.
# Resource requests/limits to specify for the Velero deployment.
# https://velero.io/docs/v1.6/customize-installation/#customize-resource-requests-and-limits
resources:
# Resource requests for the Velero deployment
server:
requests:
cpu: 500m
memory: 128Mi
limits:
cpu: 1000m
memory: 512Mi
# Resource requests for the upgrade CRDs job
upgradeJob:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 500m
memory: 128Mi
limits:
cpu: 1000m
memory: 512Mi

# Resource requests/limits to specify for the upgradeCRDs job pod.
upgradeJobResources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi

# Configure the dnsPolicy of the Velero deployment
# See: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
Expand Down

0 comments on commit 51bc4f0

Please sign in to comment.