mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-27 09:54:58 +00:00
15 lines
435 B
YAML
15 lines
435 B
YAML
# Set the reconcile period + specify the pod-identity via the aadpodidbinding label
|
|
---
|
|
apiVersion: batch/v1beta1
|
|
kind: CronJob
|
|
metadata:
|
|
name: credentials-sync
|
|
namespace: flux-system
|
|
spec:
|
|
schedule: 0 * * * * # ACR tokens expire every 3 hours; refresh faster than that
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
aadpodidbinding: $(AZ_IDENTITY_NAME) # match the AzureIdentity name
|