mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
435 B
YAML
16 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
|