@firestartr/cli 1.53.0-snapshot-5 → 1.53.0-snapshot-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +10 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -356807,6 +356807,10 @@ class SyncerInitializer extends InitializerPatches {
|
|
|
356807
356807
|
const provider = helperCTX(ctx).provider;
|
|
356808
356808
|
return claim.providers[provider].sync || {};
|
|
356809
356809
|
}
|
|
356810
|
+
function policyInfo(ctx) {
|
|
356811
|
+
const provider = helperCTX(ctx).provider;
|
|
356812
|
+
return claim.providers[provider].policy;
|
|
356813
|
+
}
|
|
356810
356814
|
return [
|
|
356811
356815
|
{
|
|
356812
356816
|
validate(cr) {
|
|
@@ -356837,21 +356841,23 @@ class SyncerInitializer extends InitializerPatches {
|
|
|
356837
356841
|
}
|
|
356838
356842
|
},
|
|
356839
356843
|
apply(cr) {
|
|
356844
|
+
cr.metadata.annotations = cr.metadata.annotations || {};
|
|
356845
|
+
// Apply general policy annotation
|
|
356846
|
+
if (policyInfo(this)) {
|
|
356847
|
+
cr.metadata.annotations['firestartr.dev/policy'] =
|
|
356848
|
+
policyInfo(this);
|
|
356849
|
+
}
|
|
356840
356850
|
if (syncInfo(this).enabled) {
|
|
356841
|
-
cr.metadata.annotations = cr.metadata.annotations || {};
|
|
356842
356851
|
cr.metadata.annotations['firestartr.dev/sync-enabled'] = 'true';
|
|
356843
356852
|
if (syncInfo(this).period) {
|
|
356844
|
-
cr.metadata.annotations = cr.metadata.annotations || {};
|
|
356845
356853
|
cr.metadata.annotations['firestartr.dev/sync-period'] =
|
|
356846
356854
|
syncInfo(this).period;
|
|
356847
356855
|
}
|
|
356848
356856
|
if (syncInfo(this).policy) {
|
|
356849
|
-
cr.metadata.annotations = cr.metadata.annotations || {};
|
|
356850
356857
|
cr.metadata.annotations['firestartr.dev/sync-policy'] =
|
|
356851
356858
|
syncInfo(this).policy;
|
|
356852
356859
|
}
|
|
356853
356860
|
if (syncInfo(this).schedule) {
|
|
356854
|
-
cr.metadata.annotations = cr.metadata.annotations || {};
|
|
356855
356861
|
cr.metadata.annotations[SYNC_SCHED_ANNOTATION] =
|
|
356856
356862
|
syncInfo(this).schedule;
|
|
356857
356863
|
cr.metadata.annotations[SYNC_SCHED_TIMEZONE_ANNOTATION] =
|