diff --git a/component/config.jsonnet b/component/config.jsonnet index b96120d..518d02a 100644 --- a/component/config.jsonnet +++ b/component/config.jsonnet @@ -46,6 +46,7 @@ local groupSyncs = std.filter( }, }, spec: { + schedule: params.sync[k].schedule, providers: [ { name: p } + patchProvider(params.sync[k].providers[p]) for p in std.objectFields(params.sync[k].providers) diff --git a/tests/golden/defaults/group-sync-operator/group-sync-operator/02_groupsync.yaml b/tests/golden/defaults/group-sync-operator/group-sync-operator/02_groupsync.yaml index 56edd09..f81fa6b 100644 --- a/tests/golden/defaults/group-sync-operator/group-sync-operator/02_groupsync.yaml +++ b/tests/golden/defaults/group-sync-operator/group-sync-operator/02_groupsync.yaml @@ -30,6 +30,7 @@ spec: credentialsSecret: name: foo-keycloak namespace: syn-group-sync-operator + schedule: '* * * * *' --- apiVersion: redhatcop.redhat.io/v1alpha1 kind: GroupSync @@ -49,3 +50,4 @@ spec: name: other-foo namespace: syn-group-sync-operator name: foo + schedule: '* * 2 * *'