Description:
The backup job needs to run on a node with storage and amd64 architecture. However, while affinity is specified in the values file, it does not show up in the PerconaPGBackup CRD or in the resultant job spec.
Steps to Reproduce:
This is the relevant section of the values file:
backups:
pgbackrest:
repoHost:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchLabels:
postgres-operator.crunchydata.com/data: pgbackrest
topologyKey: kubernetes.io/hostname
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- key: node-role.kubernetes.io/storage
operator: Exists
Version:
2.3.1
Logs:
Expected Result:
The backup job scheduled on a node that meets the requirements
Actual Result:
The backup job is scheduled on an unsupported architecture (arm64)