From 83fc1b35013236e5b04089515cfda04cab78f4a6 Mon Sep 17 00:00:00 2001 From: Duologic Date: Mon, 9 Dec 2024 22:13:55 +0100 Subject: [PATCH] fix!: convert compositions to pipeline mode --- .../Composition-ContactPoint.yaml | 482 ++++++++-------- .../Composition-MessageTemplate.yaml | 242 ++++---- .../Composition-MuteTiming.yaml | 242 ++++---- .../Composition-NotificationPolicy.yaml | 374 ++++++------ .../Composition-RuleGroup.yaml | 350 ++++++------ .../Composition-AccessPolicy.yaml | 170 +++--- .../Composition-AccessPolicyToken.yaml | 254 +++++---- .../Composition-PluginInstallation.yaml | 230 ++++---- .../Composition-Stack.yaml | 206 +++---- .../Composition-StackServiceAccount.yaml | 242 ++++---- .../Composition-StackServiceAccountToken.yaml | 326 +++++------ .../Composition-DataSourcePermission.yaml | 230 ++++---- .../Composition-Report.yaml | 338 +++++------ .../Composition-Role.yaml | 326 +++++------ .../Composition-RoleAssignment.yaml | 518 ++++++++--------- .../Composition-TeamExternalGroup.yaml | 218 +++---- .../Composition-Holiday.yaml | 170 +++--- .../Composition-Job.yaml | 326 +++++------ .../Composition-OutlierDetector.yaml | 290 +++++----- .../Composition-Escalation.yaml | 530 +++++++++--------- .../Composition-EscalationChain.yaml | 134 ++--- .../Composition-Integration.yaml | 170 +++--- .../Composition-OnCallShift.yaml | 314 ++++++----- .../Composition-OutgoingWebhook.yaml | 326 +++++------ .../Composition-Route.yaml | 374 ++++++------ .../Composition-Schedule.yaml | 278 ++++----- .../Composition-UserNotificationRule.yaml | 170 +++--- .../Composition-Annotation.yaml | 362 ++++++------ .../Composition-Dashboard.yaml | 338 +++++------ .../Composition-DashboardPermission.yaml | 314 ++++++----- .../Composition-DashboardPublic.yaml | 374 ++++++------ .../Composition-DataSource.yaml | 392 ++++++------- .../Composition-Folder.yaml | 338 +++++------ .../Composition-FolderPermission.yaml | 314 ++++++----- .../Composition-LibraryPanel.yaml | 338 +++++------ .../Composition-Organization.yaml | 194 ++++--- .../Composition-OrganizationPreferences.yaml | 254 +++++---- .../Composition-Playlist.yaml | 242 ++++---- .../Composition-ServiceAccount.yaml | 242 ++++---- .../Composition-ServiceAccountPermission.yaml | 314 ++++++----- .../Composition-ServiceAccountToken.yaml | 230 ++++---- .../Composition-SsoSettings.yaml | 158 +++--- .../Composition-Team.yaml | 338 +++++------ .../Composition-User.yaml | 194 ++++--- .../Composition-SLO.yaml | 218 +++---- .../Composition-Check.yaml | 230 ++++---- .../Composition-Installation.yaml | 254 +++++---- .../Composition-Probe.yaml | 194 ++++--- 48 files changed, 7023 insertions(+), 6639 deletions(-) diff --git a/packages/grafana-namespaced-alerting/Composition-ContactPoint.yaml b/packages/grafana-namespaced-alerting/Composition-ContactPoint.yaml index 64ca14d..3d08b76 100644 --- a/packages/grafana-namespaced-alerting/Composition-ContactPoint.yaml +++ b/packages/grafana-namespaced-alerting/Composition-ContactPoint.yaml @@ -10,240 +10,248 @@ spec: compositeTypeRef: apiVersion: alerting.grafana.crossplane.io.namespaced/v1alpha1 kind: XContactPoint - resources: - - base: - apiVersion: alerting.grafana.crossplane.io/v1alpha1 - kind: ContactPoint - name: contactpoint - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.alertmanager - toFieldPath: spec.forProvider.alertmanager - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dingding - toFieldPath: spec.forProvider.dingding - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.disableProvenance - toFieldPath: spec.forProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.discord - toFieldPath: spec.forProvider.discord - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.email - toFieldPath: spec.forProvider.email - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.googlechat - toFieldPath: spec.forProvider.googlechat - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.kafka - toFieldPath: spec.forProvider.kafka - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.line - toFieldPath: spec.forProvider.line - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.oncall - toFieldPath: spec.forProvider.oncall - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.opsgenie - toFieldPath: spec.forProvider.opsgenie - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.pagerduty - toFieldPath: spec.forProvider.pagerduty - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.pushover - toFieldPath: spec.forProvider.pushover - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.sensugo - toFieldPath: spec.forProvider.sensugo - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.slack - toFieldPath: spec.forProvider.slack - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.sns - toFieldPath: spec.forProvider.sns - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teams - toFieldPath: spec.forProvider.teams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.telegram - toFieldPath: spec.forProvider.telegram - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.threema - toFieldPath: spec.forProvider.threema - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.victorops - toFieldPath: spec.forProvider.victorops - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.webex - toFieldPath: spec.forProvider.webex - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.webhook - toFieldPath: spec.forProvider.webhook - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.wecom - toFieldPath: spec.forProvider.wecom - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.alertmanager - toFieldPath: spec.initProvider.alertmanager - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dingding - toFieldPath: spec.initProvider.dingding - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.disableProvenance - toFieldPath: spec.initProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.discord - toFieldPath: spec.initProvider.discord - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.email - toFieldPath: spec.initProvider.email - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.googlechat - toFieldPath: spec.initProvider.googlechat - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.kafka - toFieldPath: spec.initProvider.kafka - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.line - toFieldPath: spec.initProvider.line - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.oncall - toFieldPath: spec.initProvider.oncall - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.opsgenie - toFieldPath: spec.initProvider.opsgenie - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.pagerduty - toFieldPath: spec.initProvider.pagerduty - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.pushover - toFieldPath: spec.initProvider.pushover - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.sensugo - toFieldPath: spec.initProvider.sensugo - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.slack - toFieldPath: spec.initProvider.slack - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.sns - toFieldPath: spec.initProvider.sns - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teams - toFieldPath: spec.initProvider.teams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.telegram - toFieldPath: spec.initProvider.telegram - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.threema - toFieldPath: spec.initProvider.threema - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.victorops - toFieldPath: spec.initProvider.victorops - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.webex - toFieldPath: spec.initProvider.webex - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.webhook - toFieldPath: spec.initProvider.webhook - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.wecom - toFieldPath: spec.initProvider.wecom - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: alerting.grafana.crossplane.io/v1alpha1 + kind: ContactPoint + name: contactpoint + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.alertmanager + toFieldPath: spec.forProvider.alertmanager + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dingding + toFieldPath: spec.forProvider.dingding + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.disableProvenance + toFieldPath: spec.forProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.discord + toFieldPath: spec.forProvider.discord + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.email + toFieldPath: spec.forProvider.email + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.googlechat + toFieldPath: spec.forProvider.googlechat + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.kafka + toFieldPath: spec.forProvider.kafka + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.line + toFieldPath: spec.forProvider.line + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.oncall + toFieldPath: spec.forProvider.oncall + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.opsgenie + toFieldPath: spec.forProvider.opsgenie + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.pagerduty + toFieldPath: spec.forProvider.pagerduty + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.pushover + toFieldPath: spec.forProvider.pushover + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.sensugo + toFieldPath: spec.forProvider.sensugo + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.slack + toFieldPath: spec.forProvider.slack + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.sns + toFieldPath: spec.forProvider.sns + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teams + toFieldPath: spec.forProvider.teams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.telegram + toFieldPath: spec.forProvider.telegram + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.threema + toFieldPath: spec.forProvider.threema + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.victorops + toFieldPath: spec.forProvider.victorops + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.webex + toFieldPath: spec.forProvider.webex + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.webhook + toFieldPath: spec.forProvider.webhook + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.wecom + toFieldPath: spec.forProvider.wecom + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.alertmanager + toFieldPath: spec.initProvider.alertmanager + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dingding + toFieldPath: spec.initProvider.dingding + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.disableProvenance + toFieldPath: spec.initProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.discord + toFieldPath: spec.initProvider.discord + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.email + toFieldPath: spec.initProvider.email + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.googlechat + toFieldPath: spec.initProvider.googlechat + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.kafka + toFieldPath: spec.initProvider.kafka + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.line + toFieldPath: spec.initProvider.line + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.oncall + toFieldPath: spec.initProvider.oncall + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.opsgenie + toFieldPath: spec.initProvider.opsgenie + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.pagerduty + toFieldPath: spec.initProvider.pagerduty + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.pushover + toFieldPath: spec.initProvider.pushover + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.sensugo + toFieldPath: spec.initProvider.sensugo + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.slack + toFieldPath: spec.initProvider.slack + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.sns + toFieldPath: spec.initProvider.sns + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teams + toFieldPath: spec.initProvider.teams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.telegram + toFieldPath: spec.initProvider.telegram + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.threema + toFieldPath: spec.initProvider.threema + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.victorops + toFieldPath: spec.initProvider.victorops + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.webex + toFieldPath: spec.initProvider.webex + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.webhook + toFieldPath: spec.initProvider.webhook + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.wecom + toFieldPath: spec.initProvider.wecom + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-alerting/Composition-MessageTemplate.yaml b/packages/grafana-namespaced-alerting/Composition-MessageTemplate.yaml index 2028058..c97db8e 100644 --- a/packages/grafana-namespaced-alerting/Composition-MessageTemplate.yaml +++ b/packages/grafana-namespaced-alerting/Composition-MessageTemplate.yaml @@ -10,120 +10,128 @@ spec: compositeTypeRef: apiVersion: alerting.grafana.crossplane.io.namespaced/v1alpha1 kind: XMessageTemplate - resources: - - base: - apiVersion: alerting.grafana.crossplane.io/v1alpha1 - kind: MessageTemplate - name: messagetemplate - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.disableProvenance - toFieldPath: spec.forProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.template - toFieldPath: spec.forProvider.template - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.disableProvenance - toFieldPath: spec.initProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.template - toFieldPath: spec.initProvider.template - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: alerting.grafana.crossplane.io/v1alpha1 + kind: MessageTemplate + name: messagetemplate + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.disableProvenance + toFieldPath: spec.forProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.template + toFieldPath: spec.forProvider.template + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.disableProvenance + toFieldPath: spec.initProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.template + toFieldPath: spec.initProvider.template + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-alerting/Composition-MuteTiming.yaml b/packages/grafana-namespaced-alerting/Composition-MuteTiming.yaml index a70d7d2..9318b99 100644 --- a/packages/grafana-namespaced-alerting/Composition-MuteTiming.yaml +++ b/packages/grafana-namespaced-alerting/Composition-MuteTiming.yaml @@ -10,120 +10,128 @@ spec: compositeTypeRef: apiVersion: alerting.grafana.crossplane.io.namespaced/v1alpha1 kind: XMuteTiming - resources: - - base: - apiVersion: alerting.grafana.crossplane.io/v1alpha1 - kind: MuteTiming - name: mutetiming - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.disableProvenance - toFieldPath: spec.forProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.intervals - toFieldPath: spec.forProvider.intervals - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.disableProvenance - toFieldPath: spec.initProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.intervals - toFieldPath: spec.initProvider.intervals - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: alerting.grafana.crossplane.io/v1alpha1 + kind: MuteTiming + name: mutetiming + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.disableProvenance + toFieldPath: spec.forProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.intervals + toFieldPath: spec.forProvider.intervals + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.disableProvenance + toFieldPath: spec.initProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.intervals + toFieldPath: spec.initProvider.intervals + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-alerting/Composition-NotificationPolicy.yaml b/packages/grafana-namespaced-alerting/Composition-NotificationPolicy.yaml index 5c94a81..9f0ad3b 100644 --- a/packages/grafana-namespaced-alerting/Composition-NotificationPolicy.yaml +++ b/packages/grafana-namespaced-alerting/Composition-NotificationPolicy.yaml @@ -10,186 +10,194 @@ spec: compositeTypeRef: apiVersion: alerting.grafana.crossplane.io.namespaced/v1alpha1 kind: XNotificationPolicy - resources: - - base: - apiVersion: alerting.grafana.crossplane.io/v1alpha1 - kind: NotificationPolicy - name: notificationpolicy - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPoint - toFieldPath: spec.forProvider.contactPoint - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointRef.name - toFieldPath: spec.forProvider.contactPointRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointRef.policy.resolution - toFieldPath: spec.forProvider.contactPointRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointRef.policy.resolve - toFieldPath: spec.forProvider.contactPointRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointSelector.matchControllerRef - toFieldPath: spec.forProvider.contactPointSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointSelector.matchLabels - toFieldPath: spec.forProvider.contactPointSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointSelector.policy.resolution - toFieldPath: spec.forProvider.contactPointSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.contactPointSelector.policy.resolve - toFieldPath: spec.forProvider.contactPointSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.disableProvenance - toFieldPath: spec.forProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.groupBy - toFieldPath: spec.forProvider.groupBy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.groupInterval - toFieldPath: spec.forProvider.groupInterval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.groupWait - toFieldPath: spec.forProvider.groupWait - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.policy - toFieldPath: spec.forProvider.policy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.repeatInterval - toFieldPath: spec.forProvider.repeatInterval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPoint - toFieldPath: spec.initProvider.contactPoint - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointRef.name - toFieldPath: spec.initProvider.contactPointRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointRef.policy.resolution - toFieldPath: spec.initProvider.contactPointRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointRef.policy.resolve - toFieldPath: spec.initProvider.contactPointRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointSelector.matchControllerRef - toFieldPath: spec.initProvider.contactPointSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointSelector.matchLabels - toFieldPath: spec.initProvider.contactPointSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointSelector.policy.resolution - toFieldPath: spec.initProvider.contactPointSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.contactPointSelector.policy.resolve - toFieldPath: spec.initProvider.contactPointSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.disableProvenance - toFieldPath: spec.initProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.groupBy - toFieldPath: spec.initProvider.groupBy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.groupInterval - toFieldPath: spec.initProvider.groupInterval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.groupWait - toFieldPath: spec.initProvider.groupWait - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.policy - toFieldPath: spec.initProvider.policy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.repeatInterval - toFieldPath: spec.initProvider.repeatInterval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: alerting.grafana.crossplane.io/v1alpha1 + kind: NotificationPolicy + name: notificationpolicy + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPoint + toFieldPath: spec.forProvider.contactPoint + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointRef.name + toFieldPath: spec.forProvider.contactPointRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointRef.policy.resolution + toFieldPath: spec.forProvider.contactPointRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointRef.policy.resolve + toFieldPath: spec.forProvider.contactPointRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointSelector.matchControllerRef + toFieldPath: spec.forProvider.contactPointSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointSelector.matchLabels + toFieldPath: spec.forProvider.contactPointSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointSelector.policy.resolution + toFieldPath: spec.forProvider.contactPointSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.contactPointSelector.policy.resolve + toFieldPath: spec.forProvider.contactPointSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.disableProvenance + toFieldPath: spec.forProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.groupBy + toFieldPath: spec.forProvider.groupBy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.groupInterval + toFieldPath: spec.forProvider.groupInterval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.groupWait + toFieldPath: spec.forProvider.groupWait + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.policy + toFieldPath: spec.forProvider.policy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.repeatInterval + toFieldPath: spec.forProvider.repeatInterval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPoint + toFieldPath: spec.initProvider.contactPoint + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointRef.name + toFieldPath: spec.initProvider.contactPointRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointRef.policy.resolution + toFieldPath: spec.initProvider.contactPointRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointRef.policy.resolve + toFieldPath: spec.initProvider.contactPointRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointSelector.matchControllerRef + toFieldPath: spec.initProvider.contactPointSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointSelector.matchLabels + toFieldPath: spec.initProvider.contactPointSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointSelector.policy.resolution + toFieldPath: spec.initProvider.contactPointSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.contactPointSelector.policy.resolve + toFieldPath: spec.initProvider.contactPointSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.disableProvenance + toFieldPath: spec.initProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.groupBy + toFieldPath: spec.initProvider.groupBy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.groupInterval + toFieldPath: spec.initProvider.groupInterval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.groupWait + toFieldPath: spec.initProvider.groupWait + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.policy + toFieldPath: spec.initProvider.policy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.repeatInterval + toFieldPath: spec.initProvider.repeatInterval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-alerting/Composition-RuleGroup.yaml b/packages/grafana-namespaced-alerting/Composition-RuleGroup.yaml index 8872ab4..5661c37 100644 --- a/packages/grafana-namespaced-alerting/Composition-RuleGroup.yaml +++ b/packages/grafana-namespaced-alerting/Composition-RuleGroup.yaml @@ -10,174 +10,182 @@ spec: compositeTypeRef: apiVersion: alerting.grafana.crossplane.io.namespaced/v1alpha1 kind: XRuleGroup - resources: - - base: - apiVersion: alerting.grafana.crossplane.io/v1alpha1 - kind: RuleGroup - name: rulegroup - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.disableProvenance - toFieldPath: spec.forProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.name - toFieldPath: spec.forProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution - toFieldPath: spec.forProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve - toFieldPath: spec.forProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef - toFieldPath: spec.forProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels - toFieldPath: spec.forProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution - toFieldPath: spec.forProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve - toFieldPath: spec.forProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderUid - toFieldPath: spec.forProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.intervalSeconds - toFieldPath: spec.forProvider.intervalSeconds - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.rule - toFieldPath: spec.forProvider.rule - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.disableProvenance - toFieldPath: spec.initProvider.disableProvenance - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.name - toFieldPath: spec.initProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution - toFieldPath: spec.initProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve - toFieldPath: spec.initProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef - toFieldPath: spec.initProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels - toFieldPath: spec.initProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution - toFieldPath: spec.initProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve - toFieldPath: spec.initProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderUid - toFieldPath: spec.initProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.intervalSeconds - toFieldPath: spec.initProvider.intervalSeconds - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.rule - toFieldPath: spec.initProvider.rule - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: alerting.grafana.crossplane.io/v1alpha1 + kind: RuleGroup + name: rulegroup + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.disableProvenance + toFieldPath: spec.forProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.name + toFieldPath: spec.forProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution + toFieldPath: spec.forProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve + toFieldPath: spec.forProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef + toFieldPath: spec.forProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels + toFieldPath: spec.forProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution + toFieldPath: spec.forProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve + toFieldPath: spec.forProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderUid + toFieldPath: spec.forProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.intervalSeconds + toFieldPath: spec.forProvider.intervalSeconds + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.rule + toFieldPath: spec.forProvider.rule + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.disableProvenance + toFieldPath: spec.initProvider.disableProvenance + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.name + toFieldPath: spec.initProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution + toFieldPath: spec.initProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve + toFieldPath: spec.initProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef + toFieldPath: spec.initProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels + toFieldPath: spec.initProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution + toFieldPath: spec.initProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve + toFieldPath: spec.initProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderUid + toFieldPath: spec.initProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.intervalSeconds + toFieldPath: spec.initProvider.intervalSeconds + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.rule + toFieldPath: spec.initProvider.rule + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-cloud/Composition-AccessPolicy.yaml b/packages/grafana-namespaced-cloud/Composition-AccessPolicy.yaml index 1e7fe43..0dad348 100644 --- a/packages/grafana-namespaced-cloud/Composition-AccessPolicy.yaml +++ b/packages/grafana-namespaced-cloud/Composition-AccessPolicy.yaml @@ -10,84 +10,92 @@ spec: compositeTypeRef: apiVersion: cloud.grafana.crossplane.io.namespaced/v1alpha1 kind: XAccessPolicy - resources: - - base: - apiVersion: cloud.grafana.crossplane.io/v1alpha1 - kind: AccessPolicy - name: accesspolicy - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.displayName - toFieldPath: spec.forProvider.displayName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.realm - toFieldPath: spec.forProvider.realm - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.region - toFieldPath: spec.forProvider.region - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.scopes - toFieldPath: spec.forProvider.scopes - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.displayName - toFieldPath: spec.initProvider.displayName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.realm - toFieldPath: spec.initProvider.realm - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.region - toFieldPath: spec.initProvider.region - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.scopes - toFieldPath: spec.initProvider.scopes - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: cloud.grafana.crossplane.io/v1alpha1 + kind: AccessPolicy + name: accesspolicy + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.displayName + toFieldPath: spec.forProvider.displayName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.realm + toFieldPath: spec.forProvider.realm + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.region + toFieldPath: spec.forProvider.region + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.scopes + toFieldPath: spec.forProvider.scopes + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.displayName + toFieldPath: spec.initProvider.displayName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.realm + toFieldPath: spec.initProvider.realm + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.region + toFieldPath: spec.initProvider.region + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.scopes + toFieldPath: spec.initProvider.scopes + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-cloud/Composition-AccessPolicyToken.yaml b/packages/grafana-namespaced-cloud/Composition-AccessPolicyToken.yaml index 885292b..842971d 100644 --- a/packages/grafana-namespaced-cloud/Composition-AccessPolicyToken.yaml +++ b/packages/grafana-namespaced-cloud/Composition-AccessPolicyToken.yaml @@ -10,126 +10,134 @@ spec: compositeTypeRef: apiVersion: cloud.grafana.crossplane.io.namespaced/v1alpha1 kind: XAccessPolicyToken - resources: - - base: - apiVersion: cloud.grafana.crossplane.io/v1alpha1 - kind: AccessPolicyToken - name: accesspolicytoken - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicyId - toFieldPath: spec.forProvider.accessPolicyId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicyRef.name - toFieldPath: spec.forProvider.accessPolicyRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicyRef.policy.resolution - toFieldPath: spec.forProvider.accessPolicyRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicyRef.policy.resolve - toFieldPath: spec.forProvider.accessPolicyRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.matchControllerRef - toFieldPath: spec.forProvider.accessPolicySelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.matchLabels - toFieldPath: spec.forProvider.accessPolicySelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.policy.resolution - toFieldPath: spec.forProvider.accessPolicySelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.policy.resolve - toFieldPath: spec.forProvider.accessPolicySelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.displayName - toFieldPath: spec.forProvider.displayName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.expiresAt - toFieldPath: spec.forProvider.expiresAt - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.region - toFieldPath: spec.forProvider.region - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicyId - toFieldPath: spec.initProvider.accessPolicyId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicyRef.name - toFieldPath: spec.initProvider.accessPolicyRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicyRef.policy.resolution - toFieldPath: spec.initProvider.accessPolicyRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicyRef.policy.resolve - toFieldPath: spec.initProvider.accessPolicyRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.matchControllerRef - toFieldPath: spec.initProvider.accessPolicySelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.matchLabels - toFieldPath: spec.initProvider.accessPolicySelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.policy.resolution - toFieldPath: spec.initProvider.accessPolicySelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.policy.resolve - toFieldPath: spec.initProvider.accessPolicySelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.displayName - toFieldPath: spec.initProvider.displayName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.expiresAt - toFieldPath: spec.initProvider.expiresAt - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.region - toFieldPath: spec.initProvider.region - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: cloud.grafana.crossplane.io/v1alpha1 + kind: AccessPolicyToken + name: accesspolicytoken + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicyId + toFieldPath: spec.forProvider.accessPolicyId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicyRef.name + toFieldPath: spec.forProvider.accessPolicyRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicyRef.policy.resolution + toFieldPath: spec.forProvider.accessPolicyRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicyRef.policy.resolve + toFieldPath: spec.forProvider.accessPolicyRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.matchControllerRef + toFieldPath: spec.forProvider.accessPolicySelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.matchLabels + toFieldPath: spec.forProvider.accessPolicySelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.policy.resolution + toFieldPath: spec.forProvider.accessPolicySelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessPolicySelector.policy.resolve + toFieldPath: spec.forProvider.accessPolicySelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.displayName + toFieldPath: spec.forProvider.displayName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.expiresAt + toFieldPath: spec.forProvider.expiresAt + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.region + toFieldPath: spec.forProvider.region + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicyId + toFieldPath: spec.initProvider.accessPolicyId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicyRef.name + toFieldPath: spec.initProvider.accessPolicyRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicyRef.policy.resolution + toFieldPath: spec.initProvider.accessPolicyRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicyRef.policy.resolve + toFieldPath: spec.initProvider.accessPolicyRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.matchControllerRef + toFieldPath: spec.initProvider.accessPolicySelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.matchLabels + toFieldPath: spec.initProvider.accessPolicySelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.policy.resolution + toFieldPath: spec.initProvider.accessPolicySelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessPolicySelector.policy.resolve + toFieldPath: spec.initProvider.accessPolicySelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.displayName + toFieldPath: spec.initProvider.displayName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.expiresAt + toFieldPath: spec.initProvider.expiresAt + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.region + toFieldPath: spec.initProvider.region + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-cloud/Composition-PluginInstallation.yaml b/packages/grafana-namespaced-cloud/Composition-PluginInstallation.yaml index 42a0b3f..5207c7c 100644 --- a/packages/grafana-namespaced-cloud/Composition-PluginInstallation.yaml +++ b/packages/grafana-namespaced-cloud/Composition-PluginInstallation.yaml @@ -10,114 +10,122 @@ spec: compositeTypeRef: apiVersion: cloud.grafana.crossplane.io.namespaced/v1alpha1 kind: XPluginInstallation - resources: - - base: - apiVersion: cloud.grafana.crossplane.io/v1alpha1 - kind: PluginInstallation - name: plugininstallation - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name - toFieldPath: spec.forProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution - toFieldPath: spec.forProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve - toFieldPath: spec.forProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels - toFieldPath: spec.forProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.slug - toFieldPath: spec.forProvider.slug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.stackSlug - toFieldPath: spec.forProvider.stackSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.version - toFieldPath: spec.forProvider.version - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name - toFieldPath: spec.initProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution - toFieldPath: spec.initProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve - toFieldPath: spec.initProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels - toFieldPath: spec.initProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.slug - toFieldPath: spec.initProvider.slug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.stackSlug - toFieldPath: spec.initProvider.stackSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.version - toFieldPath: spec.initProvider.version - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: cloud.grafana.crossplane.io/v1alpha1 + kind: PluginInstallation + name: plugininstallation + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name + toFieldPath: spec.forProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution + toFieldPath: spec.forProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve + toFieldPath: spec.forProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels + toFieldPath: spec.forProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.slug + toFieldPath: spec.forProvider.slug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.stackSlug + toFieldPath: spec.forProvider.stackSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.version + toFieldPath: spec.forProvider.version + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name + toFieldPath: spec.initProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution + toFieldPath: spec.initProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve + toFieldPath: spec.initProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels + toFieldPath: spec.initProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.slug + toFieldPath: spec.initProvider.slug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.stackSlug + toFieldPath: spec.initProvider.stackSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.version + toFieldPath: spec.initProvider.version + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-cloud/Composition-Stack.yaml b/packages/grafana-namespaced-cloud/Composition-Stack.yaml index bd8c91c..4474cb7 100644 --- a/packages/grafana-namespaced-cloud/Composition-Stack.yaml +++ b/packages/grafana-namespaced-cloud/Composition-Stack.yaml @@ -10,102 +10,110 @@ spec: compositeTypeRef: apiVersion: cloud.grafana.crossplane.io.namespaced/v1alpha1 kind: XStack - resources: - - base: - apiVersion: cloud.grafana.crossplane.io/v1alpha1 - kind: Stack - name: stack - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.description - toFieldPath: spec.forProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.labels - toFieldPath: spec.forProvider.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.regionSlug - toFieldPath: spec.forProvider.regionSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.slug - toFieldPath: spec.forProvider.slug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.url - toFieldPath: spec.forProvider.url - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.waitForReadiness - toFieldPath: spec.forProvider.waitForReadiness - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.waitForReadinessTimeout - toFieldPath: spec.forProvider.waitForReadinessTimeout - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.description - toFieldPath: spec.initProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.labels - toFieldPath: spec.initProvider.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.regionSlug - toFieldPath: spec.initProvider.regionSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.slug - toFieldPath: spec.initProvider.slug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.url - toFieldPath: spec.initProvider.url - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.waitForReadiness - toFieldPath: spec.initProvider.waitForReadiness - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.waitForReadinessTimeout - toFieldPath: spec.initProvider.waitForReadinessTimeout - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: cloud.grafana.crossplane.io/v1alpha1 + kind: Stack + name: stack + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.description + toFieldPath: spec.forProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.labels + toFieldPath: spec.forProvider.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.regionSlug + toFieldPath: spec.forProvider.regionSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.slug + toFieldPath: spec.forProvider.slug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.url + toFieldPath: spec.forProvider.url + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.waitForReadiness + toFieldPath: spec.forProvider.waitForReadiness + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.waitForReadinessTimeout + toFieldPath: spec.forProvider.waitForReadinessTimeout + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.description + toFieldPath: spec.initProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.labels + toFieldPath: spec.initProvider.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.regionSlug + toFieldPath: spec.initProvider.regionSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.slug + toFieldPath: spec.initProvider.slug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.url + toFieldPath: spec.initProvider.url + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.waitForReadiness + toFieldPath: spec.initProvider.waitForReadiness + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.waitForReadinessTimeout + toFieldPath: spec.initProvider.waitForReadinessTimeout + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-cloud/Composition-StackServiceAccount.yaml b/packages/grafana-namespaced-cloud/Composition-StackServiceAccount.yaml index fffbda5..d800c6c 100644 --- a/packages/grafana-namespaced-cloud/Composition-StackServiceAccount.yaml +++ b/packages/grafana-namespaced-cloud/Composition-StackServiceAccount.yaml @@ -10,120 +10,128 @@ spec: compositeTypeRef: apiVersion: cloud.grafana.crossplane.io.namespaced/v1alpha1 kind: XStackServiceAccount - resources: - - base: - apiVersion: cloud.grafana.crossplane.io/v1alpha1 - kind: StackServiceAccount - name: stackserviceaccount - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name - toFieldPath: spec.forProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution - toFieldPath: spec.forProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve - toFieldPath: spec.forProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels - toFieldPath: spec.forProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.isDisabled - toFieldPath: spec.forProvider.isDisabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.role - toFieldPath: spec.forProvider.role - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.stackSlug - toFieldPath: spec.forProvider.stackSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name - toFieldPath: spec.initProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution - toFieldPath: spec.initProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve - toFieldPath: spec.initProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels - toFieldPath: spec.initProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.isDisabled - toFieldPath: spec.initProvider.isDisabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.role - toFieldPath: spec.initProvider.role - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.stackSlug - toFieldPath: spec.initProvider.stackSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: cloud.grafana.crossplane.io/v1alpha1 + kind: StackServiceAccount + name: stackserviceaccount + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name + toFieldPath: spec.forProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution + toFieldPath: spec.forProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve + toFieldPath: spec.forProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels + toFieldPath: spec.forProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.isDisabled + toFieldPath: spec.forProvider.isDisabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.role + toFieldPath: spec.forProvider.role + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.stackSlug + toFieldPath: spec.forProvider.stackSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name + toFieldPath: spec.initProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution + toFieldPath: spec.initProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve + toFieldPath: spec.initProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels + toFieldPath: spec.initProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.isDisabled + toFieldPath: spec.initProvider.isDisabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.role + toFieldPath: spec.initProvider.role + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.stackSlug + toFieldPath: spec.initProvider.stackSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-cloud/Composition-StackServiceAccountToken.yaml b/packages/grafana-namespaced-cloud/Composition-StackServiceAccountToken.yaml index a508e61..cb6a85f 100644 --- a/packages/grafana-namespaced-cloud/Composition-StackServiceAccountToken.yaml +++ b/packages/grafana-namespaced-cloud/Composition-StackServiceAccountToken.yaml @@ -10,162 +10,170 @@ spec: compositeTypeRef: apiVersion: cloud.grafana.crossplane.io.namespaced/v1alpha1 kind: XStackServiceAccountToken - resources: - - base: - apiVersion: cloud.grafana.crossplane.io/v1alpha1 - kind: StackServiceAccountToken - name: stackserviceaccounttoken - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name - toFieldPath: spec.forProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution - toFieldPath: spec.forProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve - toFieldPath: spec.forProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels - toFieldPath: spec.forProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.secondsToLive - toFieldPath: spec.forProvider.secondsToLive - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountId - toFieldPath: spec.forProvider.serviceAccountId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.name - toFieldPath: spec.forProvider.serviceAccountRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolution - toFieldPath: spec.forProvider.serviceAccountRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolve - toFieldPath: spec.forProvider.serviceAccountRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.stackSlug - toFieldPath: spec.forProvider.stackSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name - toFieldPath: spec.initProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution - toFieldPath: spec.initProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve - toFieldPath: spec.initProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels - toFieldPath: spec.initProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.secondsToLive - toFieldPath: spec.initProvider.secondsToLive - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountId - toFieldPath: spec.initProvider.serviceAccountId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.name - toFieldPath: spec.initProvider.serviceAccountRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolution - toFieldPath: spec.initProvider.serviceAccountRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolve - toFieldPath: spec.initProvider.serviceAccountRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.stackSlug - toFieldPath: spec.initProvider.stackSlug - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: cloud.grafana.crossplane.io/v1alpha1 + kind: StackServiceAccountToken + name: stackserviceaccounttoken + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name + toFieldPath: spec.forProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution + toFieldPath: spec.forProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve + toFieldPath: spec.forProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels + toFieldPath: spec.forProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.secondsToLive + toFieldPath: spec.forProvider.secondsToLive + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountId + toFieldPath: spec.forProvider.serviceAccountId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.name + toFieldPath: spec.forProvider.serviceAccountRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolution + toFieldPath: spec.forProvider.serviceAccountRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolve + toFieldPath: spec.forProvider.serviceAccountRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.stackSlug + toFieldPath: spec.forProvider.stackSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name + toFieldPath: spec.initProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution + toFieldPath: spec.initProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve + toFieldPath: spec.initProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels + toFieldPath: spec.initProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.secondsToLive + toFieldPath: spec.initProvider.secondsToLive + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountId + toFieldPath: spec.initProvider.serviceAccountId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.name + toFieldPath: spec.initProvider.serviceAccountRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolution + toFieldPath: spec.initProvider.serviceAccountRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolve + toFieldPath: spec.initProvider.serviceAccountRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.stackSlug + toFieldPath: spec.initProvider.stackSlug + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-enterprise/Composition-DataSourcePermission.yaml b/packages/grafana-namespaced-enterprise/Composition-DataSourcePermission.yaml index d9547ac..b21d5d7 100644 --- a/packages/grafana-namespaced-enterprise/Composition-DataSourcePermission.yaml +++ b/packages/grafana-namespaced-enterprise/Composition-DataSourcePermission.yaml @@ -10,114 +10,122 @@ spec: compositeTypeRef: apiVersion: enterprise.grafana.crossplane.io.namespaced/v1alpha1 kind: XDataSourcePermission - resources: - - base: - apiVersion: enterprise.grafana.crossplane.io/v1alpha1 - kind: DataSourcePermission - name: datasourcepermission - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.datasourceUid - toFieldPath: spec.forProvider.datasourceUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.permissions - toFieldPath: spec.forProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.datasourceUid - toFieldPath: spec.initProvider.datasourceUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.permissions - toFieldPath: spec.initProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: enterprise.grafana.crossplane.io/v1alpha1 + kind: DataSourcePermission + name: datasourcepermission + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.datasourceUid + toFieldPath: spec.forProvider.datasourceUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.permissions + toFieldPath: spec.forProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.datasourceUid + toFieldPath: spec.initProvider.datasourceUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.permissions + toFieldPath: spec.initProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-enterprise/Composition-Report.yaml b/packages/grafana-namespaced-enterprise/Composition-Report.yaml index 8dab710..f5fca15 100644 --- a/packages/grafana-namespaced-enterprise/Composition-Report.yaml +++ b/packages/grafana-namespaced-enterprise/Composition-Report.yaml @@ -10,168 +10,176 @@ spec: compositeTypeRef: apiVersion: enterprise.grafana.crossplane.io.namespaced/v1alpha1 kind: XReport - resources: - - base: - apiVersion: enterprise.grafana.crossplane.io/v1alpha1 - kind: Report - name: report - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboards - toFieldPath: spec.forProvider.dashboards - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.formats - toFieldPath: spec.forProvider.formats - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.includeDashboardLink - toFieldPath: spec.forProvider.includeDashboardLink - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.includeTableCsv - toFieldPath: spec.forProvider.includeTableCsv - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.layout - toFieldPath: spec.forProvider.layout - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.message - toFieldPath: spec.forProvider.message - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orientation - toFieldPath: spec.forProvider.orientation - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.recipients - toFieldPath: spec.forProvider.recipients - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.replyTo - toFieldPath: spec.forProvider.replyTo - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.schedule - toFieldPath: spec.forProvider.schedule - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboards - toFieldPath: spec.initProvider.dashboards - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.formats - toFieldPath: spec.initProvider.formats - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.includeDashboardLink - toFieldPath: spec.initProvider.includeDashboardLink - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.includeTableCsv - toFieldPath: spec.initProvider.includeTableCsv - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.layout - toFieldPath: spec.initProvider.layout - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.message - toFieldPath: spec.initProvider.message - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orientation - toFieldPath: spec.initProvider.orientation - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.recipients - toFieldPath: spec.initProvider.recipients - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.replyTo - toFieldPath: spec.initProvider.replyTo - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.schedule - toFieldPath: spec.initProvider.schedule - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: enterprise.grafana.crossplane.io/v1alpha1 + kind: Report + name: report + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboards + toFieldPath: spec.forProvider.dashboards + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.formats + toFieldPath: spec.forProvider.formats + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.includeDashboardLink + toFieldPath: spec.forProvider.includeDashboardLink + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.includeTableCsv + toFieldPath: spec.forProvider.includeTableCsv + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.layout + toFieldPath: spec.forProvider.layout + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.message + toFieldPath: spec.forProvider.message + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orientation + toFieldPath: spec.forProvider.orientation + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.recipients + toFieldPath: spec.forProvider.recipients + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.replyTo + toFieldPath: spec.forProvider.replyTo + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.schedule + toFieldPath: spec.forProvider.schedule + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboards + toFieldPath: spec.initProvider.dashboards + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.formats + toFieldPath: spec.initProvider.formats + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.includeDashboardLink + toFieldPath: spec.initProvider.includeDashboardLink + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.includeTableCsv + toFieldPath: spec.initProvider.includeTableCsv + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.layout + toFieldPath: spec.initProvider.layout + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.message + toFieldPath: spec.initProvider.message + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orientation + toFieldPath: spec.initProvider.orientation + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.recipients + toFieldPath: spec.initProvider.recipients + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.replyTo + toFieldPath: spec.initProvider.replyTo + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.schedule + toFieldPath: spec.initProvider.schedule + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-enterprise/Composition-Role.yaml b/packages/grafana-namespaced-enterprise/Composition-Role.yaml index d47aed8..329a9cf 100644 --- a/packages/grafana-namespaced-enterprise/Composition-Role.yaml +++ b/packages/grafana-namespaced-enterprise/Composition-Role.yaml @@ -10,162 +10,170 @@ spec: compositeTypeRef: apiVersion: enterprise.grafana.crossplane.io.namespaced/v1alpha1 kind: XRole - resources: - - base: - apiVersion: enterprise.grafana.crossplane.io/v1alpha1 - kind: Role - name: role - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.autoIncrementVersion - toFieldPath: spec.forProvider.autoIncrementVersion - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.description - toFieldPath: spec.forProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.displayName - toFieldPath: spec.forProvider.displayName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.global - toFieldPath: spec.forProvider.global - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.group - toFieldPath: spec.forProvider.group - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.hidden - toFieldPath: spec.forProvider.hidden - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.permissions - toFieldPath: spec.forProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.uid - toFieldPath: spec.forProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.version - toFieldPath: spec.forProvider.version - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.autoIncrementVersion - toFieldPath: spec.initProvider.autoIncrementVersion - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.description - toFieldPath: spec.initProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.displayName - toFieldPath: spec.initProvider.displayName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.global - toFieldPath: spec.initProvider.global - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.group - toFieldPath: spec.initProvider.group - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.hidden - toFieldPath: spec.initProvider.hidden - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.permissions - toFieldPath: spec.initProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.uid - toFieldPath: spec.initProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.version - toFieldPath: spec.initProvider.version - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: enterprise.grafana.crossplane.io/v1alpha1 + kind: Role + name: role + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.autoIncrementVersion + toFieldPath: spec.forProvider.autoIncrementVersion + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.description + toFieldPath: spec.forProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.displayName + toFieldPath: spec.forProvider.displayName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.global + toFieldPath: spec.forProvider.global + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.group + toFieldPath: spec.forProvider.group + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.hidden + toFieldPath: spec.forProvider.hidden + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.permissions + toFieldPath: spec.forProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.uid + toFieldPath: spec.forProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.version + toFieldPath: spec.forProvider.version + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.autoIncrementVersion + toFieldPath: spec.initProvider.autoIncrementVersion + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.description + toFieldPath: spec.initProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.displayName + toFieldPath: spec.initProvider.displayName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.global + toFieldPath: spec.initProvider.global + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.group + toFieldPath: spec.initProvider.group + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.hidden + toFieldPath: spec.initProvider.hidden + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.permissions + toFieldPath: spec.initProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.uid + toFieldPath: spec.initProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.version + toFieldPath: spec.initProvider.version + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-enterprise/Composition-RoleAssignment.yaml b/packages/grafana-namespaced-enterprise/Composition-RoleAssignment.yaml index 7d92764..ea4036e 100644 --- a/packages/grafana-namespaced-enterprise/Composition-RoleAssignment.yaml +++ b/packages/grafana-namespaced-enterprise/Composition-RoleAssignment.yaml @@ -10,258 +10,266 @@ spec: compositeTypeRef: apiVersion: enterprise.grafana.crossplane.io.namespaced/v1alpha1 kind: XRoleAssignment - resources: - - base: - apiVersion: enterprise.grafana.crossplane.io/v1alpha1 - kind: RoleAssignment - name: roleassignment - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleRef.name - toFieldPath: spec.forProvider.roleRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleRef.policy.resolution - toFieldPath: spec.forProvider.roleRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleRef.policy.resolve - toFieldPath: spec.forProvider.roleRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleSelector.matchControllerRef - toFieldPath: spec.forProvider.roleSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleSelector.matchLabels - toFieldPath: spec.forProvider.roleSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleSelector.policy.resolution - toFieldPath: spec.forProvider.roleSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleSelector.policy.resolve - toFieldPath: spec.forProvider.roleSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.roleUid - toFieldPath: spec.forProvider.roleUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRefs - toFieldPath: spec.forProvider.serviceAccountRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccounts - toFieldPath: spec.forProvider.serviceAccounts - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamRefs - toFieldPath: spec.forProvider.teamRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.matchControllerRef - toFieldPath: spec.forProvider.teamSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.matchLabels - toFieldPath: spec.forProvider.teamSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolution - toFieldPath: spec.forProvider.teamSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolve - toFieldPath: spec.forProvider.teamSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teams - toFieldPath: spec.forProvider.teams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.userRefs - toFieldPath: spec.forProvider.userRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.userSelector.matchControllerRef - toFieldPath: spec.forProvider.userSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.userSelector.matchLabels - toFieldPath: spec.forProvider.userSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.userSelector.policy.resolution - toFieldPath: spec.forProvider.userSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.userSelector.policy.resolve - toFieldPath: spec.forProvider.userSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.users - toFieldPath: spec.forProvider.users - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleRef.name - toFieldPath: spec.initProvider.roleRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleRef.policy.resolution - toFieldPath: spec.initProvider.roleRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleRef.policy.resolve - toFieldPath: spec.initProvider.roleRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleSelector.matchControllerRef - toFieldPath: spec.initProvider.roleSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleSelector.matchLabels - toFieldPath: spec.initProvider.roleSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleSelector.policy.resolution - toFieldPath: spec.initProvider.roleSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleSelector.policy.resolve - toFieldPath: spec.initProvider.roleSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.roleUid - toFieldPath: spec.initProvider.roleUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRefs - toFieldPath: spec.initProvider.serviceAccountRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccounts - toFieldPath: spec.initProvider.serviceAccounts - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamRefs - toFieldPath: spec.initProvider.teamRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.matchControllerRef - toFieldPath: spec.initProvider.teamSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.matchLabels - toFieldPath: spec.initProvider.teamSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolution - toFieldPath: spec.initProvider.teamSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolve - toFieldPath: spec.initProvider.teamSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teams - toFieldPath: spec.initProvider.teams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.userRefs - toFieldPath: spec.initProvider.userRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.userSelector.matchControllerRef - toFieldPath: spec.initProvider.userSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.userSelector.matchLabels - toFieldPath: spec.initProvider.userSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.userSelector.policy.resolution - toFieldPath: spec.initProvider.userSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.userSelector.policy.resolve - toFieldPath: spec.initProvider.userSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.users - toFieldPath: spec.initProvider.users - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: enterprise.grafana.crossplane.io/v1alpha1 + kind: RoleAssignment + name: roleassignment + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleRef.name + toFieldPath: spec.forProvider.roleRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleRef.policy.resolution + toFieldPath: spec.forProvider.roleRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleRef.policy.resolve + toFieldPath: spec.forProvider.roleRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleSelector.matchControllerRef + toFieldPath: spec.forProvider.roleSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleSelector.matchLabels + toFieldPath: spec.forProvider.roleSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleSelector.policy.resolution + toFieldPath: spec.forProvider.roleSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleSelector.policy.resolve + toFieldPath: spec.forProvider.roleSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.roleUid + toFieldPath: spec.forProvider.roleUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRefs + toFieldPath: spec.forProvider.serviceAccountRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccounts + toFieldPath: spec.forProvider.serviceAccounts + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamRefs + toFieldPath: spec.forProvider.teamRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.matchControllerRef + toFieldPath: spec.forProvider.teamSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.matchLabels + toFieldPath: spec.forProvider.teamSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolution + toFieldPath: spec.forProvider.teamSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolve + toFieldPath: spec.forProvider.teamSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teams + toFieldPath: spec.forProvider.teams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.userRefs + toFieldPath: spec.forProvider.userRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.userSelector.matchControllerRef + toFieldPath: spec.forProvider.userSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.userSelector.matchLabels + toFieldPath: spec.forProvider.userSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.userSelector.policy.resolution + toFieldPath: spec.forProvider.userSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.userSelector.policy.resolve + toFieldPath: spec.forProvider.userSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.users + toFieldPath: spec.forProvider.users + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleRef.name + toFieldPath: spec.initProvider.roleRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleRef.policy.resolution + toFieldPath: spec.initProvider.roleRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleRef.policy.resolve + toFieldPath: spec.initProvider.roleRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleSelector.matchControllerRef + toFieldPath: spec.initProvider.roleSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleSelector.matchLabels + toFieldPath: spec.initProvider.roleSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleSelector.policy.resolution + toFieldPath: spec.initProvider.roleSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleSelector.policy.resolve + toFieldPath: spec.initProvider.roleSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.roleUid + toFieldPath: spec.initProvider.roleUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRefs + toFieldPath: spec.initProvider.serviceAccountRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccounts + toFieldPath: spec.initProvider.serviceAccounts + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamRefs + toFieldPath: spec.initProvider.teamRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.matchControllerRef + toFieldPath: spec.initProvider.teamSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.matchLabels + toFieldPath: spec.initProvider.teamSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolution + toFieldPath: spec.initProvider.teamSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolve + toFieldPath: spec.initProvider.teamSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teams + toFieldPath: spec.initProvider.teams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.userRefs + toFieldPath: spec.initProvider.userRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.userSelector.matchControllerRef + toFieldPath: spec.initProvider.userSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.userSelector.matchLabels + toFieldPath: spec.initProvider.userSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.userSelector.policy.resolution + toFieldPath: spec.initProvider.userSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.userSelector.policy.resolve + toFieldPath: spec.initProvider.userSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.users + toFieldPath: spec.initProvider.users + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-enterprise/Composition-TeamExternalGroup.yaml b/packages/grafana-namespaced-enterprise/Composition-TeamExternalGroup.yaml index 8c4f049..71df806 100644 --- a/packages/grafana-namespaced-enterprise/Composition-TeamExternalGroup.yaml +++ b/packages/grafana-namespaced-enterprise/Composition-TeamExternalGroup.yaml @@ -10,108 +10,116 @@ spec: compositeTypeRef: apiVersion: enterprise.grafana.crossplane.io.namespaced/v1alpha1 kind: XTeamExternalGroup - resources: - - base: - apiVersion: enterprise.grafana.crossplane.io/v1alpha1 - kind: TeamExternalGroup - name: teamexternalgroup - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.groups - toFieldPath: spec.forProvider.groups - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamId - toFieldPath: spec.forProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamRef.name - toFieldPath: spec.forProvider.teamRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamRef.policy.resolution - toFieldPath: spec.forProvider.teamRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamRef.policy.resolve - toFieldPath: spec.forProvider.teamRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.matchControllerRef - toFieldPath: spec.forProvider.teamSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.matchLabels - toFieldPath: spec.forProvider.teamSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolution - toFieldPath: spec.forProvider.teamSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolve - toFieldPath: spec.forProvider.teamSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.groups - toFieldPath: spec.initProvider.groups - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamId - toFieldPath: spec.initProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamRef.name - toFieldPath: spec.initProvider.teamRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamRef.policy.resolution - toFieldPath: spec.initProvider.teamRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamRef.policy.resolve - toFieldPath: spec.initProvider.teamRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.matchControllerRef - toFieldPath: spec.initProvider.teamSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.matchLabels - toFieldPath: spec.initProvider.teamSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolution - toFieldPath: spec.initProvider.teamSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolve - toFieldPath: spec.initProvider.teamSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: enterprise.grafana.crossplane.io/v1alpha1 + kind: TeamExternalGroup + name: teamexternalgroup + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.groups + toFieldPath: spec.forProvider.groups + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamId + toFieldPath: spec.forProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamRef.name + toFieldPath: spec.forProvider.teamRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamRef.policy.resolution + toFieldPath: spec.forProvider.teamRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamRef.policy.resolve + toFieldPath: spec.forProvider.teamRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.matchControllerRef + toFieldPath: spec.forProvider.teamSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.matchLabels + toFieldPath: spec.forProvider.teamSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolution + toFieldPath: spec.forProvider.teamSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSelector.policy.resolve + toFieldPath: spec.forProvider.teamSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.groups + toFieldPath: spec.initProvider.groups + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamId + toFieldPath: spec.initProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamRef.name + toFieldPath: spec.initProvider.teamRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamRef.policy.resolution + toFieldPath: spec.initProvider.teamRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamRef.policy.resolve + toFieldPath: spec.initProvider.teamRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.matchControllerRef + toFieldPath: spec.initProvider.teamSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.matchLabels + toFieldPath: spec.initProvider.teamSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolution + toFieldPath: spec.initProvider.teamSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSelector.policy.resolve + toFieldPath: spec.initProvider.teamSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-ml/Composition-Holiday.yaml b/packages/grafana-namespaced-ml/Composition-Holiday.yaml index 05a2c8f..e4d3368 100644 --- a/packages/grafana-namespaced-ml/Composition-Holiday.yaml +++ b/packages/grafana-namespaced-ml/Composition-Holiday.yaml @@ -10,84 +10,92 @@ spec: compositeTypeRef: apiVersion: ml.grafana.crossplane.io.namespaced/v1alpha1 kind: XHoliday - resources: - - base: - apiVersion: ml.grafana.crossplane.io/v1alpha1 - kind: Holiday - name: holiday - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.customPeriods - toFieldPath: spec.forProvider.customPeriods - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.description - toFieldPath: spec.forProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.icalTimezone - toFieldPath: spec.forProvider.icalTimezone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.icalUrl - toFieldPath: spec.forProvider.icalUrl - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.customPeriods - toFieldPath: spec.initProvider.customPeriods - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.description - toFieldPath: spec.initProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.icalTimezone - toFieldPath: spec.initProvider.icalTimezone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.icalUrl - toFieldPath: spec.initProvider.icalUrl - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: ml.grafana.crossplane.io/v1alpha1 + kind: Holiday + name: holiday + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.customPeriods + toFieldPath: spec.forProvider.customPeriods + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.description + toFieldPath: spec.forProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.icalTimezone + toFieldPath: spec.forProvider.icalTimezone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.icalUrl + toFieldPath: spec.forProvider.icalUrl + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.customPeriods + toFieldPath: spec.initProvider.customPeriods + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.description + toFieldPath: spec.initProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.icalTimezone + toFieldPath: spec.initProvider.icalTimezone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.icalUrl + toFieldPath: spec.initProvider.icalUrl + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-ml/Composition-Job.yaml b/packages/grafana-namespaced-ml/Composition-Job.yaml index 6d29d43..15c9711 100644 --- a/packages/grafana-namespaced-ml/Composition-Job.yaml +++ b/packages/grafana-namespaced-ml/Composition-Job.yaml @@ -10,162 +10,170 @@ spec: compositeTypeRef: apiVersion: ml.grafana.crossplane.io.namespaced/v1alpha1 kind: XJob - resources: - - base: - apiVersion: ml.grafana.crossplane.io/v1alpha1 - kind: Job - name: job - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.customLabels - toFieldPath: spec.forProvider.customLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceRef.name - toFieldPath: spec.forProvider.dataSourceRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolution - toFieldPath: spec.forProvider.dataSourceRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolve - toFieldPath: spec.forProvider.dataSourceRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchControllerRef - toFieldPath: spec.forProvider.dataSourceSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchLabels - toFieldPath: spec.forProvider.dataSourceSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolution - toFieldPath: spec.forProvider.dataSourceSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolve - toFieldPath: spec.forProvider.dataSourceSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.datasourceType - toFieldPath: spec.forProvider.datasourceType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.datasourceUid - toFieldPath: spec.forProvider.datasourceUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.description - toFieldPath: spec.forProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.holidays - toFieldPath: spec.forProvider.holidays - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.hyperParams - toFieldPath: spec.forProvider.hyperParams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.interval - toFieldPath: spec.forProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.metric - toFieldPath: spec.forProvider.metric - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.queryParams - toFieldPath: spec.forProvider.queryParams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.trainingWindow - toFieldPath: spec.forProvider.trainingWindow - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.customLabels - toFieldPath: spec.initProvider.customLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceRef.name - toFieldPath: spec.initProvider.dataSourceRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolution - toFieldPath: spec.initProvider.dataSourceRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolve - toFieldPath: spec.initProvider.dataSourceRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchControllerRef - toFieldPath: spec.initProvider.dataSourceSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchLabels - toFieldPath: spec.initProvider.dataSourceSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolution - toFieldPath: spec.initProvider.dataSourceSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolve - toFieldPath: spec.initProvider.dataSourceSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.datasourceType - toFieldPath: spec.initProvider.datasourceType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.datasourceUid - toFieldPath: spec.initProvider.datasourceUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.description - toFieldPath: spec.initProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.holidays - toFieldPath: spec.initProvider.holidays - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.hyperParams - toFieldPath: spec.initProvider.hyperParams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.interval - toFieldPath: spec.initProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.metric - toFieldPath: spec.initProvider.metric - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.queryParams - toFieldPath: spec.initProvider.queryParams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.trainingWindow - toFieldPath: spec.initProvider.trainingWindow - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: ml.grafana.crossplane.io/v1alpha1 + kind: Job + name: job + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.customLabels + toFieldPath: spec.forProvider.customLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceRef.name + toFieldPath: spec.forProvider.dataSourceRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolution + toFieldPath: spec.forProvider.dataSourceRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolve + toFieldPath: spec.forProvider.dataSourceRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchControllerRef + toFieldPath: spec.forProvider.dataSourceSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchLabels + toFieldPath: spec.forProvider.dataSourceSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolution + toFieldPath: spec.forProvider.dataSourceSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolve + toFieldPath: spec.forProvider.dataSourceSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.datasourceType + toFieldPath: spec.forProvider.datasourceType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.datasourceUid + toFieldPath: spec.forProvider.datasourceUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.description + toFieldPath: spec.forProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.holidays + toFieldPath: spec.forProvider.holidays + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.hyperParams + toFieldPath: spec.forProvider.hyperParams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.interval + toFieldPath: spec.forProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.metric + toFieldPath: spec.forProvider.metric + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.queryParams + toFieldPath: spec.forProvider.queryParams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.trainingWindow + toFieldPath: spec.forProvider.trainingWindow + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.customLabels + toFieldPath: spec.initProvider.customLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceRef.name + toFieldPath: spec.initProvider.dataSourceRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolution + toFieldPath: spec.initProvider.dataSourceRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolve + toFieldPath: spec.initProvider.dataSourceRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchControllerRef + toFieldPath: spec.initProvider.dataSourceSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchLabels + toFieldPath: spec.initProvider.dataSourceSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolution + toFieldPath: spec.initProvider.dataSourceSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolve + toFieldPath: spec.initProvider.dataSourceSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.datasourceType + toFieldPath: spec.initProvider.datasourceType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.datasourceUid + toFieldPath: spec.initProvider.datasourceUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.description + toFieldPath: spec.initProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.holidays + toFieldPath: spec.initProvider.holidays + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.hyperParams + toFieldPath: spec.initProvider.hyperParams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.interval + toFieldPath: spec.initProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.metric + toFieldPath: spec.initProvider.metric + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.queryParams + toFieldPath: spec.initProvider.queryParams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.trainingWindow + toFieldPath: spec.initProvider.trainingWindow + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-ml/Composition-OutlierDetector.yaml b/packages/grafana-namespaced-ml/Composition-OutlierDetector.yaml index ad8f176..ce03791 100644 --- a/packages/grafana-namespaced-ml/Composition-OutlierDetector.yaml +++ b/packages/grafana-namespaced-ml/Composition-OutlierDetector.yaml @@ -10,144 +10,152 @@ spec: compositeTypeRef: apiVersion: ml.grafana.crossplane.io.namespaced/v1alpha1 kind: XOutlierDetector - resources: - - base: - apiVersion: ml.grafana.crossplane.io/v1alpha1 - kind: OutlierDetector - name: outlierdetector - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.algorithm - toFieldPath: spec.forProvider.algorithm - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceRef.name - toFieldPath: spec.forProvider.dataSourceRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolution - toFieldPath: spec.forProvider.dataSourceRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolve - toFieldPath: spec.forProvider.dataSourceRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchControllerRef - toFieldPath: spec.forProvider.dataSourceSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchLabels - toFieldPath: spec.forProvider.dataSourceSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolution - toFieldPath: spec.forProvider.dataSourceSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolve - toFieldPath: spec.forProvider.dataSourceSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.datasourceType - toFieldPath: spec.forProvider.datasourceType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.datasourceUid - toFieldPath: spec.forProvider.datasourceUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.description - toFieldPath: spec.forProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.interval - toFieldPath: spec.forProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.metric - toFieldPath: spec.forProvider.metric - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.queryParams - toFieldPath: spec.forProvider.queryParams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.algorithm - toFieldPath: spec.initProvider.algorithm - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceRef.name - toFieldPath: spec.initProvider.dataSourceRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolution - toFieldPath: spec.initProvider.dataSourceRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolve - toFieldPath: spec.initProvider.dataSourceRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchControllerRef - toFieldPath: spec.initProvider.dataSourceSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchLabels - toFieldPath: spec.initProvider.dataSourceSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolution - toFieldPath: spec.initProvider.dataSourceSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolve - toFieldPath: spec.initProvider.dataSourceSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.datasourceType - toFieldPath: spec.initProvider.datasourceType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.datasourceUid - toFieldPath: spec.initProvider.datasourceUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.description - toFieldPath: spec.initProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.interval - toFieldPath: spec.initProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.metric - toFieldPath: spec.initProvider.metric - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.queryParams - toFieldPath: spec.initProvider.queryParams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: ml.grafana.crossplane.io/v1alpha1 + kind: OutlierDetector + name: outlierdetector + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.algorithm + toFieldPath: spec.forProvider.algorithm + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceRef.name + toFieldPath: spec.forProvider.dataSourceRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolution + toFieldPath: spec.forProvider.dataSourceRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceRef.policy.resolve + toFieldPath: spec.forProvider.dataSourceRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchControllerRef + toFieldPath: spec.forProvider.dataSourceSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.matchLabels + toFieldPath: spec.forProvider.dataSourceSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolution + toFieldPath: spec.forProvider.dataSourceSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dataSourceSelector.policy.resolve + toFieldPath: spec.forProvider.dataSourceSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.datasourceType + toFieldPath: spec.forProvider.datasourceType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.datasourceUid + toFieldPath: spec.forProvider.datasourceUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.description + toFieldPath: spec.forProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.interval + toFieldPath: spec.forProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.metric + toFieldPath: spec.forProvider.metric + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.queryParams + toFieldPath: spec.forProvider.queryParams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.algorithm + toFieldPath: spec.initProvider.algorithm + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceRef.name + toFieldPath: spec.initProvider.dataSourceRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolution + toFieldPath: spec.initProvider.dataSourceRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceRef.policy.resolve + toFieldPath: spec.initProvider.dataSourceRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchControllerRef + toFieldPath: spec.initProvider.dataSourceSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.matchLabels + toFieldPath: spec.initProvider.dataSourceSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolution + toFieldPath: spec.initProvider.dataSourceSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dataSourceSelector.policy.resolve + toFieldPath: spec.initProvider.dataSourceSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.datasourceType + toFieldPath: spec.initProvider.datasourceType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.datasourceUid + toFieldPath: spec.initProvider.datasourceUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.description + toFieldPath: spec.initProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.interval + toFieldPath: spec.initProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.metric + toFieldPath: spec.initProvider.metric + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.queryParams + toFieldPath: spec.initProvider.queryParams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-Escalation.yaml b/packages/grafana-namespaced-oncall/Composition-Escalation.yaml index 0635a21..7563cb8 100644 --- a/packages/grafana-namespaced-oncall/Composition-Escalation.yaml +++ b/packages/grafana-namespaced-oncall/Composition-Escalation.yaml @@ -10,264 +10,272 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XEscalation - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: Escalation - name: escalation - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTrigger - toFieldPath: spec.forProvider.actionToTrigger - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerRef.name - toFieldPath: spec.forProvider.actionToTriggerRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerRef.policy.resolution - toFieldPath: spec.forProvider.actionToTriggerRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerRef.policy.resolve - toFieldPath: spec.forProvider.actionToTriggerRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.matchControllerRef - toFieldPath: spec.forProvider.actionToTriggerSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.matchLabels - toFieldPath: spec.forProvider.actionToTriggerSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.policy.resolution - toFieldPath: spec.forProvider.actionToTriggerSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.policy.resolve - toFieldPath: spec.forProvider.actionToTriggerSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.duration - toFieldPath: spec.forProvider.duration - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainId - toFieldPath: spec.forProvider.escalationChainId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainRef.name - toFieldPath: spec.forProvider.escalationChainRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolution - toFieldPath: spec.forProvider.escalationChainRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolve - toFieldPath: spec.forProvider.escalationChainRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchControllerRef - toFieldPath: spec.forProvider.escalationChainSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchLabels - toFieldPath: spec.forProvider.escalationChainSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolution - toFieldPath: spec.forProvider.escalationChainSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolve - toFieldPath: spec.forProvider.escalationChainSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.groupToNotify - toFieldPath: spec.forProvider.groupToNotify - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.important - toFieldPath: spec.forProvider.important - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyIfTimeFrom - toFieldPath: spec.forProvider.notifyIfTimeFrom - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyIfTimeTo - toFieldPath: spec.forProvider.notifyIfTimeTo - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromSchedule - toFieldPath: spec.forProvider.notifyOnCallFromSchedule - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleRef.name - toFieldPath: spec.forProvider.notifyOnCallFromScheduleRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleRef.policy.resolution - toFieldPath: spec.forProvider.notifyOnCallFromScheduleRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleRef.policy.resolve - toFieldPath: spec.forProvider.notifyOnCallFromScheduleRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.matchControllerRef - toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.matchLabels - toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.policy.resolution - toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.policy.resolve - toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.notifyToTeamMembers - toFieldPath: spec.forProvider.notifyToTeamMembers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.personsToNotify - toFieldPath: spec.forProvider.personsToNotify - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.personsToNotifyNextEachTime - toFieldPath: spec.forProvider.personsToNotifyNextEachTime - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.position - toFieldPath: spec.forProvider.position - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.severity - toFieldPath: spec.forProvider.severity - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.type - toFieldPath: spec.forProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTrigger - toFieldPath: spec.initProvider.actionToTrigger - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerRef.name - toFieldPath: spec.initProvider.actionToTriggerRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerRef.policy.resolution - toFieldPath: spec.initProvider.actionToTriggerRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerRef.policy.resolve - toFieldPath: spec.initProvider.actionToTriggerRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.matchControllerRef - toFieldPath: spec.initProvider.actionToTriggerSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.matchLabels - toFieldPath: spec.initProvider.actionToTriggerSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.policy.resolution - toFieldPath: spec.initProvider.actionToTriggerSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.policy.resolve - toFieldPath: spec.initProvider.actionToTriggerSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.duration - toFieldPath: spec.initProvider.duration - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainId - toFieldPath: spec.initProvider.escalationChainId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainRef.name - toFieldPath: spec.initProvider.escalationChainRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolution - toFieldPath: spec.initProvider.escalationChainRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolve - toFieldPath: spec.initProvider.escalationChainRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchControllerRef - toFieldPath: spec.initProvider.escalationChainSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchLabels - toFieldPath: spec.initProvider.escalationChainSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolution - toFieldPath: spec.initProvider.escalationChainSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolve - toFieldPath: spec.initProvider.escalationChainSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.groupToNotify - toFieldPath: spec.initProvider.groupToNotify - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.important - toFieldPath: spec.initProvider.important - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyIfTimeFrom - toFieldPath: spec.initProvider.notifyIfTimeFrom - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyIfTimeTo - toFieldPath: spec.initProvider.notifyIfTimeTo - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromSchedule - toFieldPath: spec.initProvider.notifyOnCallFromSchedule - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleRef.name - toFieldPath: spec.initProvider.notifyOnCallFromScheduleRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleRef.policy.resolution - toFieldPath: spec.initProvider.notifyOnCallFromScheduleRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleRef.policy.resolve - toFieldPath: spec.initProvider.notifyOnCallFromScheduleRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.matchControllerRef - toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.matchLabels - toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.policy.resolution - toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.policy.resolve - toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.notifyToTeamMembers - toFieldPath: spec.initProvider.notifyToTeamMembers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.personsToNotify - toFieldPath: spec.initProvider.personsToNotify - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.personsToNotifyNextEachTime - toFieldPath: spec.initProvider.personsToNotifyNextEachTime - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.position - toFieldPath: spec.initProvider.position - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.severity - toFieldPath: spec.initProvider.severity - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.type - toFieldPath: spec.initProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: Escalation + name: escalation + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTrigger + toFieldPath: spec.forProvider.actionToTrigger + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerRef.name + toFieldPath: spec.forProvider.actionToTriggerRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerRef.policy.resolution + toFieldPath: spec.forProvider.actionToTriggerRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerRef.policy.resolve + toFieldPath: spec.forProvider.actionToTriggerRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.matchControllerRef + toFieldPath: spec.forProvider.actionToTriggerSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.matchLabels + toFieldPath: spec.forProvider.actionToTriggerSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.policy.resolution + toFieldPath: spec.forProvider.actionToTriggerSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.actionToTriggerSelector.policy.resolve + toFieldPath: spec.forProvider.actionToTriggerSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.duration + toFieldPath: spec.forProvider.duration + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainId + toFieldPath: spec.forProvider.escalationChainId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainRef.name + toFieldPath: spec.forProvider.escalationChainRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolution + toFieldPath: spec.forProvider.escalationChainRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolve + toFieldPath: spec.forProvider.escalationChainRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchControllerRef + toFieldPath: spec.forProvider.escalationChainSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchLabels + toFieldPath: spec.forProvider.escalationChainSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolution + toFieldPath: spec.forProvider.escalationChainSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolve + toFieldPath: spec.forProvider.escalationChainSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.groupToNotify + toFieldPath: spec.forProvider.groupToNotify + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.important + toFieldPath: spec.forProvider.important + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyIfTimeFrom + toFieldPath: spec.forProvider.notifyIfTimeFrom + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyIfTimeTo + toFieldPath: spec.forProvider.notifyIfTimeTo + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromSchedule + toFieldPath: spec.forProvider.notifyOnCallFromSchedule + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleRef.name + toFieldPath: spec.forProvider.notifyOnCallFromScheduleRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleRef.policy.resolution + toFieldPath: spec.forProvider.notifyOnCallFromScheduleRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleRef.policy.resolve + toFieldPath: spec.forProvider.notifyOnCallFromScheduleRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.matchControllerRef + toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.matchLabels + toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.policy.resolution + toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyOnCallFromScheduleSelector.policy.resolve + toFieldPath: spec.forProvider.notifyOnCallFromScheduleSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.notifyToTeamMembers + toFieldPath: spec.forProvider.notifyToTeamMembers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.personsToNotify + toFieldPath: spec.forProvider.personsToNotify + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.personsToNotifyNextEachTime + toFieldPath: spec.forProvider.personsToNotifyNextEachTime + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.position + toFieldPath: spec.forProvider.position + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.severity + toFieldPath: spec.forProvider.severity + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.type + toFieldPath: spec.forProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTrigger + toFieldPath: spec.initProvider.actionToTrigger + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerRef.name + toFieldPath: spec.initProvider.actionToTriggerRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerRef.policy.resolution + toFieldPath: spec.initProvider.actionToTriggerRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerRef.policy.resolve + toFieldPath: spec.initProvider.actionToTriggerRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.matchControllerRef + toFieldPath: spec.initProvider.actionToTriggerSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.matchLabels + toFieldPath: spec.initProvider.actionToTriggerSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.policy.resolution + toFieldPath: spec.initProvider.actionToTriggerSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.actionToTriggerSelector.policy.resolve + toFieldPath: spec.initProvider.actionToTriggerSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.duration + toFieldPath: spec.initProvider.duration + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainId + toFieldPath: spec.initProvider.escalationChainId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainRef.name + toFieldPath: spec.initProvider.escalationChainRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolution + toFieldPath: spec.initProvider.escalationChainRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolve + toFieldPath: spec.initProvider.escalationChainRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchControllerRef + toFieldPath: spec.initProvider.escalationChainSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchLabels + toFieldPath: spec.initProvider.escalationChainSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolution + toFieldPath: spec.initProvider.escalationChainSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolve + toFieldPath: spec.initProvider.escalationChainSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.groupToNotify + toFieldPath: spec.initProvider.groupToNotify + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.important + toFieldPath: spec.initProvider.important + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyIfTimeFrom + toFieldPath: spec.initProvider.notifyIfTimeFrom + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyIfTimeTo + toFieldPath: spec.initProvider.notifyIfTimeTo + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromSchedule + toFieldPath: spec.initProvider.notifyOnCallFromSchedule + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleRef.name + toFieldPath: spec.initProvider.notifyOnCallFromScheduleRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleRef.policy.resolution + toFieldPath: spec.initProvider.notifyOnCallFromScheduleRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleRef.policy.resolve + toFieldPath: spec.initProvider.notifyOnCallFromScheduleRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.matchControllerRef + toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.matchLabels + toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.policy.resolution + toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyOnCallFromScheduleSelector.policy.resolve + toFieldPath: spec.initProvider.notifyOnCallFromScheduleSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.notifyToTeamMembers + toFieldPath: spec.initProvider.notifyToTeamMembers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.personsToNotify + toFieldPath: spec.initProvider.personsToNotify + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.personsToNotifyNextEachTime + toFieldPath: spec.initProvider.personsToNotifyNextEachTime + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.position + toFieldPath: spec.initProvider.position + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.severity + toFieldPath: spec.initProvider.severity + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.type + toFieldPath: spec.initProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-EscalationChain.yaml b/packages/grafana-namespaced-oncall/Composition-EscalationChain.yaml index 1c521e0..546d01f 100644 --- a/packages/grafana-namespaced-oncall/Composition-EscalationChain.yaml +++ b/packages/grafana-namespaced-oncall/Composition-EscalationChain.yaml @@ -10,66 +10,74 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XEscalationChain - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: EscalationChain - name: escalationchain - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamId - toFieldPath: spec.forProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamId - toFieldPath: spec.initProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: EscalationChain + name: escalationchain + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamId + toFieldPath: spec.forProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamId + toFieldPath: spec.initProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-Integration.yaml b/packages/grafana-namespaced-oncall/Composition-Integration.yaml index d15da39..43dfe0d 100644 --- a/packages/grafana-namespaced-oncall/Composition-Integration.yaml +++ b/packages/grafana-namespaced-oncall/Composition-Integration.yaml @@ -10,84 +10,92 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XIntegration - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: Integration - name: integration - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.defaultRoute - toFieldPath: spec.forProvider.defaultRoute - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamId - toFieldPath: spec.forProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.templates - toFieldPath: spec.forProvider.templates - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.type - toFieldPath: spec.forProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.defaultRoute - toFieldPath: spec.initProvider.defaultRoute - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamId - toFieldPath: spec.initProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.templates - toFieldPath: spec.initProvider.templates - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.type - toFieldPath: spec.initProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: Integration + name: integration + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.defaultRoute + toFieldPath: spec.forProvider.defaultRoute + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamId + toFieldPath: spec.forProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.templates + toFieldPath: spec.forProvider.templates + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.type + toFieldPath: spec.forProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.defaultRoute + toFieldPath: spec.initProvider.defaultRoute + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamId + toFieldPath: spec.initProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.templates + toFieldPath: spec.initProvider.templates + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.type + toFieldPath: spec.initProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-OnCallShift.yaml b/packages/grafana-namespaced-oncall/Composition-OnCallShift.yaml index 9210f10..a3f4f61 100644 --- a/packages/grafana-namespaced-oncall/Composition-OnCallShift.yaml +++ b/packages/grafana-namespaced-oncall/Composition-OnCallShift.yaml @@ -10,156 +10,164 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XOnCallShift - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: OnCallShift - name: oncallshift - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.byDay - toFieldPath: spec.forProvider.byDay - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.byMonth - toFieldPath: spec.forProvider.byMonth - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.byMonthday - toFieldPath: spec.forProvider.byMonthday - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.duration - toFieldPath: spec.forProvider.duration - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.frequency - toFieldPath: spec.forProvider.frequency - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.interval - toFieldPath: spec.forProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.level - toFieldPath: spec.forProvider.level - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.rollingUsers - toFieldPath: spec.forProvider.rollingUsers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.start - toFieldPath: spec.forProvider.start - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.startRotationFromUserIndex - toFieldPath: spec.forProvider.startRotationFromUserIndex - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamId - toFieldPath: spec.forProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.timeZone - toFieldPath: spec.forProvider.timeZone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.type - toFieldPath: spec.forProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.until - toFieldPath: spec.forProvider.until - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.users - toFieldPath: spec.forProvider.users - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.weekStart - toFieldPath: spec.forProvider.weekStart - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.byDay - toFieldPath: spec.initProvider.byDay - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.byMonth - toFieldPath: spec.initProvider.byMonth - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.byMonthday - toFieldPath: spec.initProvider.byMonthday - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.duration - toFieldPath: spec.initProvider.duration - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.frequency - toFieldPath: spec.initProvider.frequency - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.interval - toFieldPath: spec.initProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.level - toFieldPath: spec.initProvider.level - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.rollingUsers - toFieldPath: spec.initProvider.rollingUsers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.start - toFieldPath: spec.initProvider.start - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.startRotationFromUserIndex - toFieldPath: spec.initProvider.startRotationFromUserIndex - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamId - toFieldPath: spec.initProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.timeZone - toFieldPath: spec.initProvider.timeZone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.type - toFieldPath: spec.initProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.until - toFieldPath: spec.initProvider.until - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.users - toFieldPath: spec.initProvider.users - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.weekStart - toFieldPath: spec.initProvider.weekStart - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: OnCallShift + name: oncallshift + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.byDay + toFieldPath: spec.forProvider.byDay + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.byMonth + toFieldPath: spec.forProvider.byMonth + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.byMonthday + toFieldPath: spec.forProvider.byMonthday + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.duration + toFieldPath: spec.forProvider.duration + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.frequency + toFieldPath: spec.forProvider.frequency + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.interval + toFieldPath: spec.forProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.level + toFieldPath: spec.forProvider.level + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.rollingUsers + toFieldPath: spec.forProvider.rollingUsers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.start + toFieldPath: spec.forProvider.start + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.startRotationFromUserIndex + toFieldPath: spec.forProvider.startRotationFromUserIndex + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamId + toFieldPath: spec.forProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.timeZone + toFieldPath: spec.forProvider.timeZone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.type + toFieldPath: spec.forProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.until + toFieldPath: spec.forProvider.until + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.users + toFieldPath: spec.forProvider.users + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.weekStart + toFieldPath: spec.forProvider.weekStart + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.byDay + toFieldPath: spec.initProvider.byDay + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.byMonth + toFieldPath: spec.initProvider.byMonth + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.byMonthday + toFieldPath: spec.initProvider.byMonthday + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.duration + toFieldPath: spec.initProvider.duration + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.frequency + toFieldPath: spec.initProvider.frequency + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.interval + toFieldPath: spec.initProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.level + toFieldPath: spec.initProvider.level + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.rollingUsers + toFieldPath: spec.initProvider.rollingUsers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.start + toFieldPath: spec.initProvider.start + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.startRotationFromUserIndex + toFieldPath: spec.initProvider.startRotationFromUserIndex + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamId + toFieldPath: spec.initProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.timeZone + toFieldPath: spec.initProvider.timeZone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.type + toFieldPath: spec.initProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.until + toFieldPath: spec.initProvider.until + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.users + toFieldPath: spec.initProvider.users + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.weekStart + toFieldPath: spec.initProvider.weekStart + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-OutgoingWebhook.yaml b/packages/grafana-namespaced-oncall/Composition-OutgoingWebhook.yaml index ce5a0a3..f9012cf 100644 --- a/packages/grafana-namespaced-oncall/Composition-OutgoingWebhook.yaml +++ b/packages/grafana-namespaced-oncall/Composition-OutgoingWebhook.yaml @@ -10,162 +10,170 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XOutgoingWebhook - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: OutgoingWebhook - name: outgoingwebhook - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.authorizationHeaderSecretRef.key - toFieldPath: spec.forProvider.authorizationHeaderSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.authorizationHeaderSecretRef.name - toFieldPath: spec.forProvider.authorizationHeaderSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.authorizationHeaderSecretRef.namespace - toFieldPath: spec.forProvider.authorizationHeaderSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.data - toFieldPath: spec.forProvider.data - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.forwardWholePayload - toFieldPath: spec.forProvider.forwardWholePayload - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.headers - toFieldPath: spec.forProvider.headers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.httpMethod - toFieldPath: spec.forProvider.httpMethod - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationFilter - toFieldPath: spec.forProvider.integrationFilter - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.isWebhookEnabled - toFieldPath: spec.forProvider.isWebhookEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.key - toFieldPath: spec.forProvider.passwordSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.name - toFieldPath: spec.forProvider.passwordSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.namespace - toFieldPath: spec.forProvider.passwordSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamId - toFieldPath: spec.forProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.triggerTemplate - toFieldPath: spec.forProvider.triggerTemplate - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.triggerType - toFieldPath: spec.forProvider.triggerType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.url - toFieldPath: spec.forProvider.url - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.user - toFieldPath: spec.forProvider.user - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.authorizationHeaderSecretRef.key - toFieldPath: spec.initProvider.authorizationHeaderSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.authorizationHeaderSecretRef.name - toFieldPath: spec.initProvider.authorizationHeaderSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.authorizationHeaderSecretRef.namespace - toFieldPath: spec.initProvider.authorizationHeaderSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.data - toFieldPath: spec.initProvider.data - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.forwardWholePayload - toFieldPath: spec.initProvider.forwardWholePayload - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.headers - toFieldPath: spec.initProvider.headers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.httpMethod - toFieldPath: spec.initProvider.httpMethod - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationFilter - toFieldPath: spec.initProvider.integrationFilter - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.isWebhookEnabled - toFieldPath: spec.initProvider.isWebhookEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.key - toFieldPath: spec.initProvider.passwordSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.name - toFieldPath: spec.initProvider.passwordSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.namespace - toFieldPath: spec.initProvider.passwordSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamId - toFieldPath: spec.initProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.triggerTemplate - toFieldPath: spec.initProvider.triggerTemplate - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.triggerType - toFieldPath: spec.initProvider.triggerType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.url - toFieldPath: spec.initProvider.url - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.user - toFieldPath: spec.initProvider.user - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: OutgoingWebhook + name: outgoingwebhook + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.authorizationHeaderSecretRef.key + toFieldPath: spec.forProvider.authorizationHeaderSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.authorizationHeaderSecretRef.name + toFieldPath: spec.forProvider.authorizationHeaderSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.authorizationHeaderSecretRef.namespace + toFieldPath: spec.forProvider.authorizationHeaderSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.data + toFieldPath: spec.forProvider.data + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.forwardWholePayload + toFieldPath: spec.forProvider.forwardWholePayload + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.headers + toFieldPath: spec.forProvider.headers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.httpMethod + toFieldPath: spec.forProvider.httpMethod + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationFilter + toFieldPath: spec.forProvider.integrationFilter + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.isWebhookEnabled + toFieldPath: spec.forProvider.isWebhookEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.key + toFieldPath: spec.forProvider.passwordSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.name + toFieldPath: spec.forProvider.passwordSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.namespace + toFieldPath: spec.forProvider.passwordSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamId + toFieldPath: spec.forProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.triggerTemplate + toFieldPath: spec.forProvider.triggerTemplate + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.triggerType + toFieldPath: spec.forProvider.triggerType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.url + toFieldPath: spec.forProvider.url + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.user + toFieldPath: spec.forProvider.user + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.authorizationHeaderSecretRef.key + toFieldPath: spec.initProvider.authorizationHeaderSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.authorizationHeaderSecretRef.name + toFieldPath: spec.initProvider.authorizationHeaderSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.authorizationHeaderSecretRef.namespace + toFieldPath: spec.initProvider.authorizationHeaderSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.data + toFieldPath: spec.initProvider.data + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.forwardWholePayload + toFieldPath: spec.initProvider.forwardWholePayload + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.headers + toFieldPath: spec.initProvider.headers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.httpMethod + toFieldPath: spec.initProvider.httpMethod + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationFilter + toFieldPath: spec.initProvider.integrationFilter + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.isWebhookEnabled + toFieldPath: spec.initProvider.isWebhookEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.key + toFieldPath: spec.initProvider.passwordSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.name + toFieldPath: spec.initProvider.passwordSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.namespace + toFieldPath: spec.initProvider.passwordSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamId + toFieldPath: spec.initProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.triggerTemplate + toFieldPath: spec.initProvider.triggerTemplate + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.triggerType + toFieldPath: spec.initProvider.triggerType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.url + toFieldPath: spec.initProvider.url + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.user + toFieldPath: spec.initProvider.user + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-Route.yaml b/packages/grafana-namespaced-oncall/Composition-Route.yaml index ef6343f..987a5e2 100644 --- a/packages/grafana-namespaced-oncall/Composition-Route.yaml +++ b/packages/grafana-namespaced-oncall/Composition-Route.yaml @@ -10,186 +10,194 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XRoute - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: Route - name: route - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainId - toFieldPath: spec.forProvider.escalationChainId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainRef.name - toFieldPath: spec.forProvider.escalationChainRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolution - toFieldPath: spec.forProvider.escalationChainRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolve - toFieldPath: spec.forProvider.escalationChainRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchControllerRef - toFieldPath: spec.forProvider.escalationChainSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchLabels - toFieldPath: spec.forProvider.escalationChainSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolution - toFieldPath: spec.forProvider.escalationChainSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolve - toFieldPath: spec.forProvider.escalationChainSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationId - toFieldPath: spec.forProvider.integrationId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationRef.name - toFieldPath: spec.forProvider.integrationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationRef.policy.resolution - toFieldPath: spec.forProvider.integrationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationRef.policy.resolve - toFieldPath: spec.forProvider.integrationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationSelector.matchControllerRef - toFieldPath: spec.forProvider.integrationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationSelector.matchLabels - toFieldPath: spec.forProvider.integrationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationSelector.policy.resolution - toFieldPath: spec.forProvider.integrationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.integrationSelector.policy.resolve - toFieldPath: spec.forProvider.integrationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.msteams - toFieldPath: spec.forProvider.msteams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.position - toFieldPath: spec.forProvider.position - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.routingRegex - toFieldPath: spec.forProvider.routingRegex - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.routingType - toFieldPath: spec.forProvider.routingType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.slack - toFieldPath: spec.forProvider.slack - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.telegram - toFieldPath: spec.forProvider.telegram - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainId - toFieldPath: spec.initProvider.escalationChainId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainRef.name - toFieldPath: spec.initProvider.escalationChainRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolution - toFieldPath: spec.initProvider.escalationChainRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolve - toFieldPath: spec.initProvider.escalationChainRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchControllerRef - toFieldPath: spec.initProvider.escalationChainSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchLabels - toFieldPath: spec.initProvider.escalationChainSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolution - toFieldPath: spec.initProvider.escalationChainSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolve - toFieldPath: spec.initProvider.escalationChainSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationId - toFieldPath: spec.initProvider.integrationId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationRef.name - toFieldPath: spec.initProvider.integrationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationRef.policy.resolution - toFieldPath: spec.initProvider.integrationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationRef.policy.resolve - toFieldPath: spec.initProvider.integrationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationSelector.matchControllerRef - toFieldPath: spec.initProvider.integrationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationSelector.matchLabels - toFieldPath: spec.initProvider.integrationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationSelector.policy.resolution - toFieldPath: spec.initProvider.integrationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.integrationSelector.policy.resolve - toFieldPath: spec.initProvider.integrationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.msteams - toFieldPath: spec.initProvider.msteams - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.position - toFieldPath: spec.initProvider.position - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.routingRegex - toFieldPath: spec.initProvider.routingRegex - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.routingType - toFieldPath: spec.initProvider.routingType - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.slack - toFieldPath: spec.initProvider.slack - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.telegram - toFieldPath: spec.initProvider.telegram - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: Route + name: route + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainId + toFieldPath: spec.forProvider.escalationChainId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainRef.name + toFieldPath: spec.forProvider.escalationChainRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolution + toFieldPath: spec.forProvider.escalationChainRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainRef.policy.resolve + toFieldPath: spec.forProvider.escalationChainRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchControllerRef + toFieldPath: spec.forProvider.escalationChainSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.matchLabels + toFieldPath: spec.forProvider.escalationChainSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolution + toFieldPath: spec.forProvider.escalationChainSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.escalationChainSelector.policy.resolve + toFieldPath: spec.forProvider.escalationChainSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationId + toFieldPath: spec.forProvider.integrationId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationRef.name + toFieldPath: spec.forProvider.integrationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationRef.policy.resolution + toFieldPath: spec.forProvider.integrationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationRef.policy.resolve + toFieldPath: spec.forProvider.integrationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationSelector.matchControllerRef + toFieldPath: spec.forProvider.integrationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationSelector.matchLabels + toFieldPath: spec.forProvider.integrationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationSelector.policy.resolution + toFieldPath: spec.forProvider.integrationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.integrationSelector.policy.resolve + toFieldPath: spec.forProvider.integrationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.msteams + toFieldPath: spec.forProvider.msteams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.position + toFieldPath: spec.forProvider.position + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.routingRegex + toFieldPath: spec.forProvider.routingRegex + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.routingType + toFieldPath: spec.forProvider.routingType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.slack + toFieldPath: spec.forProvider.slack + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.telegram + toFieldPath: spec.forProvider.telegram + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainId + toFieldPath: spec.initProvider.escalationChainId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainRef.name + toFieldPath: spec.initProvider.escalationChainRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolution + toFieldPath: spec.initProvider.escalationChainRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainRef.policy.resolve + toFieldPath: spec.initProvider.escalationChainRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchControllerRef + toFieldPath: spec.initProvider.escalationChainSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.matchLabels + toFieldPath: spec.initProvider.escalationChainSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolution + toFieldPath: spec.initProvider.escalationChainSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.escalationChainSelector.policy.resolve + toFieldPath: spec.initProvider.escalationChainSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationId + toFieldPath: spec.initProvider.integrationId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationRef.name + toFieldPath: spec.initProvider.integrationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationRef.policy.resolution + toFieldPath: spec.initProvider.integrationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationRef.policy.resolve + toFieldPath: spec.initProvider.integrationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationSelector.matchControllerRef + toFieldPath: spec.initProvider.integrationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationSelector.matchLabels + toFieldPath: spec.initProvider.integrationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationSelector.policy.resolution + toFieldPath: spec.initProvider.integrationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.integrationSelector.policy.resolve + toFieldPath: spec.initProvider.integrationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.msteams + toFieldPath: spec.initProvider.msteams + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.position + toFieldPath: spec.initProvider.position + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.routingRegex + toFieldPath: spec.initProvider.routingRegex + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.routingType + toFieldPath: spec.initProvider.routingType + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.slack + toFieldPath: spec.initProvider.slack + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.telegram + toFieldPath: spec.initProvider.telegram + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-Schedule.yaml b/packages/grafana-namespaced-oncall/Composition-Schedule.yaml index f3ebafe..a3d0db7 100644 --- a/packages/grafana-namespaced-oncall/Composition-Schedule.yaml +++ b/packages/grafana-namespaced-oncall/Composition-Schedule.yaml @@ -10,138 +10,146 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XSchedule - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: Schedule - name: schedule - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.enableWebOverrides - toFieldPath: spec.forProvider.enableWebOverrides - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.icalUrlOverrides - toFieldPath: spec.forProvider.icalUrlOverrides - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.icalUrlPrimary - toFieldPath: spec.forProvider.icalUrlPrimary - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.shifts - toFieldPath: spec.forProvider.shifts - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.shiftsRef - toFieldPath: spec.forProvider.shiftsRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.shiftsSelector.matchControllerRef - toFieldPath: spec.forProvider.shiftsSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.shiftsSelector.matchLabels - toFieldPath: spec.forProvider.shiftsSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.shiftsSelector.policy.resolution - toFieldPath: spec.forProvider.shiftsSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.shiftsSelector.policy.resolve - toFieldPath: spec.forProvider.shiftsSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.slack - toFieldPath: spec.forProvider.slack - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamId - toFieldPath: spec.forProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.timeZone - toFieldPath: spec.forProvider.timeZone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.type - toFieldPath: spec.forProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.enableWebOverrides - toFieldPath: spec.initProvider.enableWebOverrides - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.icalUrlOverrides - toFieldPath: spec.initProvider.icalUrlOverrides - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.icalUrlPrimary - toFieldPath: spec.initProvider.icalUrlPrimary - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.shifts - toFieldPath: spec.initProvider.shifts - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.shiftsRef - toFieldPath: spec.initProvider.shiftsRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.shiftsSelector.matchControllerRef - toFieldPath: spec.initProvider.shiftsSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.shiftsSelector.matchLabels - toFieldPath: spec.initProvider.shiftsSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.shiftsSelector.policy.resolution - toFieldPath: spec.initProvider.shiftsSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.shiftsSelector.policy.resolve - toFieldPath: spec.initProvider.shiftsSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.slack - toFieldPath: spec.initProvider.slack - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamId - toFieldPath: spec.initProvider.teamId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.timeZone - toFieldPath: spec.initProvider.timeZone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.type - toFieldPath: spec.initProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: Schedule + name: schedule + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.enableWebOverrides + toFieldPath: spec.forProvider.enableWebOverrides + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.icalUrlOverrides + toFieldPath: spec.forProvider.icalUrlOverrides + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.icalUrlPrimary + toFieldPath: spec.forProvider.icalUrlPrimary + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.shifts + toFieldPath: spec.forProvider.shifts + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.shiftsRef + toFieldPath: spec.forProvider.shiftsRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.shiftsSelector.matchControllerRef + toFieldPath: spec.forProvider.shiftsSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.shiftsSelector.matchLabels + toFieldPath: spec.forProvider.shiftsSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.shiftsSelector.policy.resolution + toFieldPath: spec.forProvider.shiftsSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.shiftsSelector.policy.resolve + toFieldPath: spec.forProvider.shiftsSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.slack + toFieldPath: spec.forProvider.slack + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamId + toFieldPath: spec.forProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.timeZone + toFieldPath: spec.forProvider.timeZone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.type + toFieldPath: spec.forProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.enableWebOverrides + toFieldPath: spec.initProvider.enableWebOverrides + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.icalUrlOverrides + toFieldPath: spec.initProvider.icalUrlOverrides + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.icalUrlPrimary + toFieldPath: spec.initProvider.icalUrlPrimary + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.shifts + toFieldPath: spec.initProvider.shifts + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.shiftsRef + toFieldPath: spec.initProvider.shiftsRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.shiftsSelector.matchControllerRef + toFieldPath: spec.initProvider.shiftsSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.shiftsSelector.matchLabels + toFieldPath: spec.initProvider.shiftsSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.shiftsSelector.policy.resolution + toFieldPath: spec.initProvider.shiftsSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.shiftsSelector.policy.resolve + toFieldPath: spec.initProvider.shiftsSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.slack + toFieldPath: spec.initProvider.slack + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamId + toFieldPath: spec.initProvider.teamId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.timeZone + toFieldPath: spec.initProvider.timeZone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.type + toFieldPath: spec.initProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oncall/Composition-UserNotificationRule.yaml b/packages/grafana-namespaced-oncall/Composition-UserNotificationRule.yaml index 56fe822..bf6b503 100644 --- a/packages/grafana-namespaced-oncall/Composition-UserNotificationRule.yaml +++ b/packages/grafana-namespaced-oncall/Composition-UserNotificationRule.yaml @@ -10,84 +10,92 @@ spec: compositeTypeRef: apiVersion: oncall.grafana.crossplane.io.namespaced/v1alpha1 kind: XUserNotificationRule - resources: - - base: - apiVersion: oncall.grafana.crossplane.io/v1alpha1 - kind: UserNotificationRule - name: usernotificationrule - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.duration - toFieldPath: spec.forProvider.duration - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.important - toFieldPath: spec.forProvider.important - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.position - toFieldPath: spec.forProvider.position - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.type - toFieldPath: spec.forProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.userId - toFieldPath: spec.forProvider.userId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.duration - toFieldPath: spec.initProvider.duration - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.important - toFieldPath: spec.initProvider.important - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.position - toFieldPath: spec.initProvider.position - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.type - toFieldPath: spec.initProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.userId - toFieldPath: spec.initProvider.userId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oncall.grafana.crossplane.io/v1alpha1 + kind: UserNotificationRule + name: usernotificationrule + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.duration + toFieldPath: spec.forProvider.duration + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.important + toFieldPath: spec.forProvider.important + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.position + toFieldPath: spec.forProvider.position + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.type + toFieldPath: spec.forProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.userId + toFieldPath: spec.forProvider.userId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.duration + toFieldPath: spec.initProvider.duration + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.important + toFieldPath: spec.initProvider.important + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.position + toFieldPath: spec.initProvider.position + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.type + toFieldPath: spec.initProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.userId + toFieldPath: spec.initProvider.userId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-Annotation.yaml b/packages/grafana-namespaced-oss/Composition-Annotation.yaml index 1265dc5..3730ade 100644 --- a/packages/grafana-namespaced-oss/Composition-Annotation.yaml +++ b/packages/grafana-namespaced-oss/Composition-Annotation.yaml @@ -10,180 +10,188 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XAnnotation - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: Annotation - name: annotation - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.name - toFieldPath: spec.forProvider.dashboardRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolution - toFieldPath: spec.forProvider.dashboardRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolve - toFieldPath: spec.forProvider.dashboardRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchControllerRef - toFieldPath: spec.forProvider.dashboardSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchLabels - toFieldPath: spec.forProvider.dashboardSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolution - toFieldPath: spec.forProvider.dashboardSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolve - toFieldPath: spec.forProvider.dashboardSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardUid - toFieldPath: spec.forProvider.dashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.panelId - toFieldPath: spec.forProvider.panelId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.tags - toFieldPath: spec.forProvider.tags - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.text - toFieldPath: spec.forProvider.text - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.time - toFieldPath: spec.forProvider.time - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.timeEnd - toFieldPath: spec.forProvider.timeEnd - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.name - toFieldPath: spec.initProvider.dashboardRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolution - toFieldPath: spec.initProvider.dashboardRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolve - toFieldPath: spec.initProvider.dashboardRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchControllerRef - toFieldPath: spec.initProvider.dashboardSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchLabels - toFieldPath: spec.initProvider.dashboardSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolution - toFieldPath: spec.initProvider.dashboardSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolve - toFieldPath: spec.initProvider.dashboardSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardUid - toFieldPath: spec.initProvider.dashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.panelId - toFieldPath: spec.initProvider.panelId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.tags - toFieldPath: spec.initProvider.tags - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.text - toFieldPath: spec.initProvider.text - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.time - toFieldPath: spec.initProvider.time - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.timeEnd - toFieldPath: spec.initProvider.timeEnd - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: Annotation + name: annotation + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.name + toFieldPath: spec.forProvider.dashboardRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolution + toFieldPath: spec.forProvider.dashboardRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolve + toFieldPath: spec.forProvider.dashboardRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchControllerRef + toFieldPath: spec.forProvider.dashboardSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchLabels + toFieldPath: spec.forProvider.dashboardSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolution + toFieldPath: spec.forProvider.dashboardSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolve + toFieldPath: spec.forProvider.dashboardSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardUid + toFieldPath: spec.forProvider.dashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.panelId + toFieldPath: spec.forProvider.panelId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.tags + toFieldPath: spec.forProvider.tags + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.text + toFieldPath: spec.forProvider.text + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.time + toFieldPath: spec.forProvider.time + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.timeEnd + toFieldPath: spec.forProvider.timeEnd + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.name + toFieldPath: spec.initProvider.dashboardRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolution + toFieldPath: spec.initProvider.dashboardRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolve + toFieldPath: spec.initProvider.dashboardRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchControllerRef + toFieldPath: spec.initProvider.dashboardSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchLabels + toFieldPath: spec.initProvider.dashboardSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolution + toFieldPath: spec.initProvider.dashboardSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolve + toFieldPath: spec.initProvider.dashboardSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardUid + toFieldPath: spec.initProvider.dashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.panelId + toFieldPath: spec.initProvider.panelId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.tags + toFieldPath: spec.initProvider.tags + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.text + toFieldPath: spec.initProvider.text + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.time + toFieldPath: spec.initProvider.time + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.timeEnd + toFieldPath: spec.initProvider.timeEnd + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-Dashboard.yaml b/packages/grafana-namespaced-oss/Composition-Dashboard.yaml index afab022..e738f9b 100644 --- a/packages/grafana-namespaced-oss/Composition-Dashboard.yaml +++ b/packages/grafana-namespaced-oss/Composition-Dashboard.yaml @@ -10,168 +10,176 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XDashboard - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: Dashboard - name: dashboard - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.configJson - toFieldPath: spec.forProvider.configJson - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folder - toFieldPath: spec.forProvider.folder - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.name - toFieldPath: spec.forProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution - toFieldPath: spec.forProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve - toFieldPath: spec.forProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef - toFieldPath: spec.forProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels - toFieldPath: spec.forProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution - toFieldPath: spec.forProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve - toFieldPath: spec.forProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.message - toFieldPath: spec.forProvider.message - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.overwrite - toFieldPath: spec.forProvider.overwrite - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.configJson - toFieldPath: spec.initProvider.configJson - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folder - toFieldPath: spec.initProvider.folder - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.name - toFieldPath: spec.initProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution - toFieldPath: spec.initProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve - toFieldPath: spec.initProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef - toFieldPath: spec.initProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels - toFieldPath: spec.initProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution - toFieldPath: spec.initProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve - toFieldPath: spec.initProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.message - toFieldPath: spec.initProvider.message - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.overwrite - toFieldPath: spec.initProvider.overwrite - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: Dashboard + name: dashboard + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.configJson + toFieldPath: spec.forProvider.configJson + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folder + toFieldPath: spec.forProvider.folder + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.name + toFieldPath: spec.forProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution + toFieldPath: spec.forProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve + toFieldPath: spec.forProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef + toFieldPath: spec.forProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels + toFieldPath: spec.forProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution + toFieldPath: spec.forProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve + toFieldPath: spec.forProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.message + toFieldPath: spec.forProvider.message + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.overwrite + toFieldPath: spec.forProvider.overwrite + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.configJson + toFieldPath: spec.initProvider.configJson + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folder + toFieldPath: spec.initProvider.folder + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.name + toFieldPath: spec.initProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution + toFieldPath: spec.initProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve + toFieldPath: spec.initProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef + toFieldPath: spec.initProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels + toFieldPath: spec.initProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution + toFieldPath: spec.initProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve + toFieldPath: spec.initProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.message + toFieldPath: spec.initProvider.message + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.overwrite + toFieldPath: spec.initProvider.overwrite + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-DashboardPermission.yaml b/packages/grafana-namespaced-oss/Composition-DashboardPermission.yaml index 19aab9e..46a7b1a 100644 --- a/packages/grafana-namespaced-oss/Composition-DashboardPermission.yaml +++ b/packages/grafana-namespaced-oss/Composition-DashboardPermission.yaml @@ -10,156 +10,164 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XDashboardPermission - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: DashboardPermission - name: dashboardpermission - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.name - toFieldPath: spec.forProvider.dashboardRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolution - toFieldPath: spec.forProvider.dashboardRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolve - toFieldPath: spec.forProvider.dashboardRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchControllerRef - toFieldPath: spec.forProvider.dashboardSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchLabels - toFieldPath: spec.forProvider.dashboardSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolution - toFieldPath: spec.forProvider.dashboardSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolve - toFieldPath: spec.forProvider.dashboardSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardUid - toFieldPath: spec.forProvider.dashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.permissions - toFieldPath: spec.forProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.name - toFieldPath: spec.initProvider.dashboardRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolution - toFieldPath: spec.initProvider.dashboardRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolve - toFieldPath: spec.initProvider.dashboardRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchControllerRef - toFieldPath: spec.initProvider.dashboardSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchLabels - toFieldPath: spec.initProvider.dashboardSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolution - toFieldPath: spec.initProvider.dashboardSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolve - toFieldPath: spec.initProvider.dashboardSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardUid - toFieldPath: spec.initProvider.dashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.permissions - toFieldPath: spec.initProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: DashboardPermission + name: dashboardpermission + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.name + toFieldPath: spec.forProvider.dashboardRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolution + toFieldPath: spec.forProvider.dashboardRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolve + toFieldPath: spec.forProvider.dashboardRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchControllerRef + toFieldPath: spec.forProvider.dashboardSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchLabels + toFieldPath: spec.forProvider.dashboardSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolution + toFieldPath: spec.forProvider.dashboardSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolve + toFieldPath: spec.forProvider.dashboardSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardUid + toFieldPath: spec.forProvider.dashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.permissions + toFieldPath: spec.forProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.name + toFieldPath: spec.initProvider.dashboardRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolution + toFieldPath: spec.initProvider.dashboardRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolve + toFieldPath: spec.initProvider.dashboardRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchControllerRef + toFieldPath: spec.initProvider.dashboardSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchLabels + toFieldPath: spec.initProvider.dashboardSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolution + toFieldPath: spec.initProvider.dashboardSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolve + toFieldPath: spec.initProvider.dashboardSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardUid + toFieldPath: spec.initProvider.dashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.permissions + toFieldPath: spec.initProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-DashboardPublic.yaml b/packages/grafana-namespaced-oss/Composition-DashboardPublic.yaml index f6653b3..807dceb 100644 --- a/packages/grafana-namespaced-oss/Composition-DashboardPublic.yaml +++ b/packages/grafana-namespaced-oss/Composition-DashboardPublic.yaml @@ -10,186 +10,194 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XDashboardPublic - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: DashboardPublic - name: dashboardpublic - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessToken - toFieldPath: spec.forProvider.accessToken - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.annotationsEnabled - toFieldPath: spec.forProvider.annotationsEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.name - toFieldPath: spec.forProvider.dashboardRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolution - toFieldPath: spec.forProvider.dashboardRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolve - toFieldPath: spec.forProvider.dashboardRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchControllerRef - toFieldPath: spec.forProvider.dashboardSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchLabels - toFieldPath: spec.forProvider.dashboardSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolution - toFieldPath: spec.forProvider.dashboardSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolve - toFieldPath: spec.forProvider.dashboardSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.dashboardUid - toFieldPath: spec.forProvider.dashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.isEnabled - toFieldPath: spec.forProvider.isEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.share - toFieldPath: spec.forProvider.share - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.timeSelectionEnabled - toFieldPath: spec.forProvider.timeSelectionEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.uid - toFieldPath: spec.forProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessToken - toFieldPath: spec.initProvider.accessToken - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.annotationsEnabled - toFieldPath: spec.initProvider.annotationsEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.name - toFieldPath: spec.initProvider.dashboardRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolution - toFieldPath: spec.initProvider.dashboardRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolve - toFieldPath: spec.initProvider.dashboardRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchControllerRef - toFieldPath: spec.initProvider.dashboardSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchLabels - toFieldPath: spec.initProvider.dashboardSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolution - toFieldPath: spec.initProvider.dashboardSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolve - toFieldPath: spec.initProvider.dashboardSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.dashboardUid - toFieldPath: spec.initProvider.dashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.isEnabled - toFieldPath: spec.initProvider.isEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.share - toFieldPath: spec.initProvider.share - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.timeSelectionEnabled - toFieldPath: spec.initProvider.timeSelectionEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.uid - toFieldPath: spec.initProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: DashboardPublic + name: dashboardpublic + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessToken + toFieldPath: spec.forProvider.accessToken + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.annotationsEnabled + toFieldPath: spec.forProvider.annotationsEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.name + toFieldPath: spec.forProvider.dashboardRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolution + toFieldPath: spec.forProvider.dashboardRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardRef.policy.resolve + toFieldPath: spec.forProvider.dashboardRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchControllerRef + toFieldPath: spec.forProvider.dashboardSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.matchLabels + toFieldPath: spec.forProvider.dashboardSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolution + toFieldPath: spec.forProvider.dashboardSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardSelector.policy.resolve + toFieldPath: spec.forProvider.dashboardSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.dashboardUid + toFieldPath: spec.forProvider.dashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.isEnabled + toFieldPath: spec.forProvider.isEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.share + toFieldPath: spec.forProvider.share + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.timeSelectionEnabled + toFieldPath: spec.forProvider.timeSelectionEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.uid + toFieldPath: spec.forProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessToken + toFieldPath: spec.initProvider.accessToken + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.annotationsEnabled + toFieldPath: spec.initProvider.annotationsEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.name + toFieldPath: spec.initProvider.dashboardRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolution + toFieldPath: spec.initProvider.dashboardRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardRef.policy.resolve + toFieldPath: spec.initProvider.dashboardRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchControllerRef + toFieldPath: spec.initProvider.dashboardSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.matchLabels + toFieldPath: spec.initProvider.dashboardSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolution + toFieldPath: spec.initProvider.dashboardSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardSelector.policy.resolve + toFieldPath: spec.initProvider.dashboardSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.dashboardUid + toFieldPath: spec.initProvider.dashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.isEnabled + toFieldPath: spec.initProvider.isEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.share + toFieldPath: spec.initProvider.share + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.timeSelectionEnabled + toFieldPath: spec.initProvider.timeSelectionEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.uid + toFieldPath: spec.initProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-DataSource.yaml b/packages/grafana-namespaced-oss/Composition-DataSource.yaml index 20a377b..eca5d1b 100644 --- a/packages/grafana-namespaced-oss/Composition-DataSource.yaml +++ b/packages/grafana-namespaced-oss/Composition-DataSource.yaml @@ -10,195 +10,203 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XDataSource - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: DataSource - name: datasource - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.accessMode - toFieldPath: spec.forProvider.accessMode - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.basicAuthEnabled - toFieldPath: spec.forProvider.basicAuthEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.basicAuthUsername - toFieldPath: spec.forProvider.basicAuthUsername - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.databaseName - toFieldPath: spec.forProvider.databaseName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.httpHeadersSecretRef.name - toFieldPath: spec.forProvider.httpHeadersSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.httpHeadersSecretRef.namespace - toFieldPath: spec.forProvider.httpHeadersSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.isDefault - toFieldPath: spec.forProvider.isDefault - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.jsonDataEncoded - toFieldPath: spec.forProvider.jsonDataEncoded - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.secureJsonDataEncodedSecretRef.key - toFieldPath: spec.forProvider.secureJsonDataEncodedSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.secureJsonDataEncodedSecretRef.name - toFieldPath: spec.forProvider.secureJsonDataEncodedSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.secureJsonDataEncodedSecretRef.namespace - toFieldPath: spec.forProvider.secureJsonDataEncodedSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.type - toFieldPath: spec.forProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.uid - toFieldPath: spec.forProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.url - toFieldPath: spec.forProvider.url - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.username - toFieldPath: spec.forProvider.username - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.accessMode - toFieldPath: spec.initProvider.accessMode - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.basicAuthEnabled - toFieldPath: spec.initProvider.basicAuthEnabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.basicAuthUsername - toFieldPath: spec.initProvider.basicAuthUsername - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.databaseName - toFieldPath: spec.initProvider.databaseName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.httpHeadersSecretRef - toFieldPath: spec.initProvider.httpHeadersSecretRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.isDefault - toFieldPath: spec.initProvider.isDefault - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.jsonDataEncoded - toFieldPath: spec.initProvider.jsonDataEncoded - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.secureJsonDataEncodedSecretRef.key - toFieldPath: spec.initProvider.secureJsonDataEncodedSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.secureJsonDataEncodedSecretRef.name - toFieldPath: spec.initProvider.secureJsonDataEncodedSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.secureJsonDataEncodedSecretRef.namespace - toFieldPath: spec.initProvider.secureJsonDataEncodedSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.type - toFieldPath: spec.initProvider.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.uid - toFieldPath: spec.initProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.url - toFieldPath: spec.initProvider.url - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.username - toFieldPath: spec.initProvider.username - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: DataSource + name: datasource + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.accessMode + toFieldPath: spec.forProvider.accessMode + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.basicAuthEnabled + toFieldPath: spec.forProvider.basicAuthEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.basicAuthUsername + toFieldPath: spec.forProvider.basicAuthUsername + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.databaseName + toFieldPath: spec.forProvider.databaseName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.httpHeadersSecretRef.name + toFieldPath: spec.forProvider.httpHeadersSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.httpHeadersSecretRef.namespace + toFieldPath: spec.forProvider.httpHeadersSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.isDefault + toFieldPath: spec.forProvider.isDefault + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.jsonDataEncoded + toFieldPath: spec.forProvider.jsonDataEncoded + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.secureJsonDataEncodedSecretRef.key + toFieldPath: spec.forProvider.secureJsonDataEncodedSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.secureJsonDataEncodedSecretRef.name + toFieldPath: spec.forProvider.secureJsonDataEncodedSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.secureJsonDataEncodedSecretRef.namespace + toFieldPath: spec.forProvider.secureJsonDataEncodedSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.type + toFieldPath: spec.forProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.uid + toFieldPath: spec.forProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.url + toFieldPath: spec.forProvider.url + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.username + toFieldPath: spec.forProvider.username + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.accessMode + toFieldPath: spec.initProvider.accessMode + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.basicAuthEnabled + toFieldPath: spec.initProvider.basicAuthEnabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.basicAuthUsername + toFieldPath: spec.initProvider.basicAuthUsername + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.databaseName + toFieldPath: spec.initProvider.databaseName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.httpHeadersSecretRef + toFieldPath: spec.initProvider.httpHeadersSecretRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.isDefault + toFieldPath: spec.initProvider.isDefault + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.jsonDataEncoded + toFieldPath: spec.initProvider.jsonDataEncoded + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.secureJsonDataEncodedSecretRef.key + toFieldPath: spec.initProvider.secureJsonDataEncodedSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.secureJsonDataEncodedSecretRef.name + toFieldPath: spec.initProvider.secureJsonDataEncodedSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.secureJsonDataEncodedSecretRef.namespace + toFieldPath: spec.initProvider.secureJsonDataEncodedSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.type + toFieldPath: spec.initProvider.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.uid + toFieldPath: spec.initProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.url + toFieldPath: spec.initProvider.url + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.username + toFieldPath: spec.initProvider.username + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-Folder.yaml b/packages/grafana-namespaced-oss/Composition-Folder.yaml index 0247a5e..07aee36 100644 --- a/packages/grafana-namespaced-oss/Composition-Folder.yaml +++ b/packages/grafana-namespaced-oss/Composition-Folder.yaml @@ -10,168 +10,176 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XFolder - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: Folder - name: folder - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.name - toFieldPath: spec.forProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution - toFieldPath: spec.forProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve - toFieldPath: spec.forProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef - toFieldPath: spec.forProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels - toFieldPath: spec.forProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution - toFieldPath: spec.forProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve - toFieldPath: spec.forProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.parentFolderUid - toFieldPath: spec.forProvider.parentFolderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.preventDestroyIfNotEmpty - toFieldPath: spec.forProvider.preventDestroyIfNotEmpty - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.title - toFieldPath: spec.forProvider.title - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.uid - toFieldPath: spec.forProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.name - toFieldPath: spec.initProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution - toFieldPath: spec.initProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve - toFieldPath: spec.initProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef - toFieldPath: spec.initProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels - toFieldPath: spec.initProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution - toFieldPath: spec.initProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve - toFieldPath: spec.initProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.parentFolderUid - toFieldPath: spec.initProvider.parentFolderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.preventDestroyIfNotEmpty - toFieldPath: spec.initProvider.preventDestroyIfNotEmpty - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.title - toFieldPath: spec.initProvider.title - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.uid - toFieldPath: spec.initProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: Folder + name: folder + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.name + toFieldPath: spec.forProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution + toFieldPath: spec.forProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve + toFieldPath: spec.forProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef + toFieldPath: spec.forProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels + toFieldPath: spec.forProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution + toFieldPath: spec.forProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve + toFieldPath: spec.forProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.parentFolderUid + toFieldPath: spec.forProvider.parentFolderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.preventDestroyIfNotEmpty + toFieldPath: spec.forProvider.preventDestroyIfNotEmpty + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.title + toFieldPath: spec.forProvider.title + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.uid + toFieldPath: spec.forProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.name + toFieldPath: spec.initProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution + toFieldPath: spec.initProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve + toFieldPath: spec.initProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef + toFieldPath: spec.initProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels + toFieldPath: spec.initProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution + toFieldPath: spec.initProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve + toFieldPath: spec.initProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.parentFolderUid + toFieldPath: spec.initProvider.parentFolderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.preventDestroyIfNotEmpty + toFieldPath: spec.initProvider.preventDestroyIfNotEmpty + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.title + toFieldPath: spec.initProvider.title + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.uid + toFieldPath: spec.initProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-FolderPermission.yaml b/packages/grafana-namespaced-oss/Composition-FolderPermission.yaml index 4f41740..4073501 100644 --- a/packages/grafana-namespaced-oss/Composition-FolderPermission.yaml +++ b/packages/grafana-namespaced-oss/Composition-FolderPermission.yaml @@ -10,156 +10,164 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XFolderPermission - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: FolderPermission - name: folderpermission - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.name - toFieldPath: spec.forProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution - toFieldPath: spec.forProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve - toFieldPath: spec.forProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef - toFieldPath: spec.forProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels - toFieldPath: spec.forProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution - toFieldPath: spec.forProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve - toFieldPath: spec.forProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderUid - toFieldPath: spec.forProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.permissions - toFieldPath: spec.forProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.name - toFieldPath: spec.initProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution - toFieldPath: spec.initProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve - toFieldPath: spec.initProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef - toFieldPath: spec.initProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels - toFieldPath: spec.initProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution - toFieldPath: spec.initProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve - toFieldPath: spec.initProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderUid - toFieldPath: spec.initProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.permissions - toFieldPath: spec.initProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: FolderPermission + name: folderpermission + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.name + toFieldPath: spec.forProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution + toFieldPath: spec.forProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve + toFieldPath: spec.forProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef + toFieldPath: spec.forProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels + toFieldPath: spec.forProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution + toFieldPath: spec.forProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve + toFieldPath: spec.forProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderUid + toFieldPath: spec.forProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.permissions + toFieldPath: spec.forProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.name + toFieldPath: spec.initProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution + toFieldPath: spec.initProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve + toFieldPath: spec.initProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef + toFieldPath: spec.initProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels + toFieldPath: spec.initProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution + toFieldPath: spec.initProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve + toFieldPath: spec.initProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderUid + toFieldPath: spec.initProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.permissions + toFieldPath: spec.initProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-LibraryPanel.yaml b/packages/grafana-namespaced-oss/Composition-LibraryPanel.yaml index 1b8ee9e..9d28db7 100644 --- a/packages/grafana-namespaced-oss/Composition-LibraryPanel.yaml +++ b/packages/grafana-namespaced-oss/Composition-LibraryPanel.yaml @@ -10,168 +10,176 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XLibraryPanel - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: LibraryPanel - name: librarypanel - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.name - toFieldPath: spec.forProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution - toFieldPath: spec.forProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve - toFieldPath: spec.forProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef - toFieldPath: spec.forProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels - toFieldPath: spec.forProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution - toFieldPath: spec.forProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve - toFieldPath: spec.forProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderUid - toFieldPath: spec.forProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.modelJson - toFieldPath: spec.forProvider.modelJson - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.uid - toFieldPath: spec.forProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.name - toFieldPath: spec.initProvider.folderRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution - toFieldPath: spec.initProvider.folderRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve - toFieldPath: spec.initProvider.folderRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef - toFieldPath: spec.initProvider.folderSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels - toFieldPath: spec.initProvider.folderSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution - toFieldPath: spec.initProvider.folderSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve - toFieldPath: spec.initProvider.folderSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderUid - toFieldPath: spec.initProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.modelJson - toFieldPath: spec.initProvider.modelJson - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.uid - toFieldPath: spec.initProvider.uid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: LibraryPanel + name: librarypanel + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.name + toFieldPath: spec.forProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolution + toFieldPath: spec.forProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderRef.policy.resolve + toFieldPath: spec.forProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchControllerRef + toFieldPath: spec.forProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.matchLabels + toFieldPath: spec.forProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolution + toFieldPath: spec.forProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderSelector.policy.resolve + toFieldPath: spec.forProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderUid + toFieldPath: spec.forProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.modelJson + toFieldPath: spec.forProvider.modelJson + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.uid + toFieldPath: spec.forProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.name + toFieldPath: spec.initProvider.folderRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolution + toFieldPath: spec.initProvider.folderRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderRef.policy.resolve + toFieldPath: spec.initProvider.folderRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchControllerRef + toFieldPath: spec.initProvider.folderSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.matchLabels + toFieldPath: spec.initProvider.folderSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolution + toFieldPath: spec.initProvider.folderSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderSelector.policy.resolve + toFieldPath: spec.initProvider.folderSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderUid + toFieldPath: spec.initProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.modelJson + toFieldPath: spec.initProvider.modelJson + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.uid + toFieldPath: spec.initProvider.uid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-Organization.yaml b/packages/grafana-namespaced-oss/Composition-Organization.yaml index 07fd05c..c3b39d8 100644 --- a/packages/grafana-namespaced-oss/Composition-Organization.yaml +++ b/packages/grafana-namespaced-oss/Composition-Organization.yaml @@ -10,96 +10,104 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XOrganization - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: Organization - name: organization - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.adminUser - toFieldPath: spec.forProvider.adminUser - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.admins - toFieldPath: spec.forProvider.admins - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.createUsers - toFieldPath: spec.forProvider.createUsers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.editors - toFieldPath: spec.forProvider.editors - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.usersWithoutAccess - toFieldPath: spec.forProvider.usersWithoutAccess - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.viewers - toFieldPath: spec.forProvider.viewers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.adminUser - toFieldPath: spec.initProvider.adminUser - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.admins - toFieldPath: spec.initProvider.admins - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.createUsers - toFieldPath: spec.initProvider.createUsers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.editors - toFieldPath: spec.initProvider.editors - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.usersWithoutAccess - toFieldPath: spec.initProvider.usersWithoutAccess - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.viewers - toFieldPath: spec.initProvider.viewers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: Organization + name: organization + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.adminUser + toFieldPath: spec.forProvider.adminUser + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.admins + toFieldPath: spec.forProvider.admins + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.createUsers + toFieldPath: spec.forProvider.createUsers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.editors + toFieldPath: spec.forProvider.editors + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.usersWithoutAccess + toFieldPath: spec.forProvider.usersWithoutAccess + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.viewers + toFieldPath: spec.forProvider.viewers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.adminUser + toFieldPath: spec.initProvider.adminUser + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.admins + toFieldPath: spec.initProvider.admins + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.createUsers + toFieldPath: spec.initProvider.createUsers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.editors + toFieldPath: spec.initProvider.editors + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.usersWithoutAccess + toFieldPath: spec.initProvider.usersWithoutAccess + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.viewers + toFieldPath: spec.initProvider.viewers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-OrganizationPreferences.yaml b/packages/grafana-namespaced-oss/Composition-OrganizationPreferences.yaml index a9ac2ac..18049b2 100644 --- a/packages/grafana-namespaced-oss/Composition-OrganizationPreferences.yaml +++ b/packages/grafana-namespaced-oss/Composition-OrganizationPreferences.yaml @@ -10,126 +10,134 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XOrganizationPreferences - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: OrganizationPreferences - name: organizationpreferences - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.homeDashboardUid - toFieldPath: spec.forProvider.homeDashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.theme - toFieldPath: spec.forProvider.theme - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.timezone - toFieldPath: spec.forProvider.timezone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.weekStart - toFieldPath: spec.forProvider.weekStart - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.homeDashboardUid - toFieldPath: spec.initProvider.homeDashboardUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.theme - toFieldPath: spec.initProvider.theme - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.timezone - toFieldPath: spec.initProvider.timezone - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.weekStart - toFieldPath: spec.initProvider.weekStart - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: OrganizationPreferences + name: organizationpreferences + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.homeDashboardUid + toFieldPath: spec.forProvider.homeDashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.theme + toFieldPath: spec.forProvider.theme + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.timezone + toFieldPath: spec.forProvider.timezone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.weekStart + toFieldPath: spec.forProvider.weekStart + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.homeDashboardUid + toFieldPath: spec.initProvider.homeDashboardUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.theme + toFieldPath: spec.initProvider.theme + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.timezone + toFieldPath: spec.initProvider.timezone + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.weekStart + toFieldPath: spec.initProvider.weekStart + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-Playlist.yaml b/packages/grafana-namespaced-oss/Composition-Playlist.yaml index 07baaeb..60b7e96 100644 --- a/packages/grafana-namespaced-oss/Composition-Playlist.yaml +++ b/packages/grafana-namespaced-oss/Composition-Playlist.yaml @@ -10,120 +10,128 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XPlaylist - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: Playlist - name: playlist - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.interval - toFieldPath: spec.forProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.item - toFieldPath: spec.forProvider.item - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.interval - toFieldPath: spec.initProvider.interval - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.item - toFieldPath: spec.initProvider.item - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: Playlist + name: playlist + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.interval + toFieldPath: spec.forProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.item + toFieldPath: spec.forProvider.item + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.interval + toFieldPath: spec.initProvider.interval + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.item + toFieldPath: spec.initProvider.item + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-ServiceAccount.yaml b/packages/grafana-namespaced-oss/Composition-ServiceAccount.yaml index 3c8b120..6fad55e 100644 --- a/packages/grafana-namespaced-oss/Composition-ServiceAccount.yaml +++ b/packages/grafana-namespaced-oss/Composition-ServiceAccount.yaml @@ -10,120 +10,128 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XServiceAccount - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: ServiceAccount - name: serviceaccount - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.isDisabled - toFieldPath: spec.forProvider.isDisabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.role - toFieldPath: spec.forProvider.role - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.isDisabled - toFieldPath: spec.initProvider.isDisabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.role - toFieldPath: spec.initProvider.role - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: ServiceAccount + name: serviceaccount + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.isDisabled + toFieldPath: spec.forProvider.isDisabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.role + toFieldPath: spec.forProvider.role + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.isDisabled + toFieldPath: spec.initProvider.isDisabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.role + toFieldPath: spec.initProvider.role + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-ServiceAccountPermission.yaml b/packages/grafana-namespaced-oss/Composition-ServiceAccountPermission.yaml index a2cc07a..00b1e9b 100644 --- a/packages/grafana-namespaced-oss/Composition-ServiceAccountPermission.yaml +++ b/packages/grafana-namespaced-oss/Composition-ServiceAccountPermission.yaml @@ -10,156 +10,164 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XServiceAccountPermission - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: ServiceAccountPermission - name: serviceaccountpermission - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.permissions - toFieldPath: spec.forProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountId - toFieldPath: spec.forProvider.serviceAccountId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.name - toFieldPath: spec.forProvider.serviceAccountRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolution - toFieldPath: spec.forProvider.serviceAccountRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolve - toFieldPath: spec.forProvider.serviceAccountRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.permissions - toFieldPath: spec.initProvider.permissions - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountId - toFieldPath: spec.initProvider.serviceAccountId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.name - toFieldPath: spec.initProvider.serviceAccountRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolution - toFieldPath: spec.initProvider.serviceAccountRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolve - toFieldPath: spec.initProvider.serviceAccountRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: ServiceAccountPermission + name: serviceaccountpermission + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.permissions + toFieldPath: spec.forProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountId + toFieldPath: spec.forProvider.serviceAccountId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.name + toFieldPath: spec.forProvider.serviceAccountRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolution + toFieldPath: spec.forProvider.serviceAccountRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolve + toFieldPath: spec.forProvider.serviceAccountRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.permissions + toFieldPath: spec.initProvider.permissions + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountId + toFieldPath: spec.initProvider.serviceAccountId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.name + toFieldPath: spec.initProvider.serviceAccountRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolution + toFieldPath: spec.initProvider.serviceAccountRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolve + toFieldPath: spec.initProvider.serviceAccountRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-ServiceAccountToken.yaml b/packages/grafana-namespaced-oss/Composition-ServiceAccountToken.yaml index 0fc8917..d96f0c8 100644 --- a/packages/grafana-namespaced-oss/Composition-ServiceAccountToken.yaml +++ b/packages/grafana-namespaced-oss/Composition-ServiceAccountToken.yaml @@ -10,114 +10,122 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XServiceAccountToken - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: ServiceAccountToken - name: serviceaccounttoken - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.secondsToLive - toFieldPath: spec.forProvider.secondsToLive - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountId - toFieldPath: spec.forProvider.serviceAccountId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.name - toFieldPath: spec.forProvider.serviceAccountRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolution - toFieldPath: spec.forProvider.serviceAccountRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolve - toFieldPath: spec.forProvider.serviceAccountRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.secondsToLive - toFieldPath: spec.initProvider.secondsToLive - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountId - toFieldPath: spec.initProvider.serviceAccountId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.name - toFieldPath: spec.initProvider.serviceAccountRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolution - toFieldPath: spec.initProvider.serviceAccountRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolve - toFieldPath: spec.initProvider.serviceAccountRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef - toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels - toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve - toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: ServiceAccountToken + name: serviceaccounttoken + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.secondsToLive + toFieldPath: spec.forProvider.secondsToLive + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountId + toFieldPath: spec.forProvider.serviceAccountId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.name + toFieldPath: spec.forProvider.serviceAccountRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolution + toFieldPath: spec.forProvider.serviceAccountRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountRef.policy.resolve + toFieldPath: spec.forProvider.serviceAccountRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.forProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.forProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.forProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.secondsToLive + toFieldPath: spec.initProvider.secondsToLive + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountId + toFieldPath: spec.initProvider.serviceAccountId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.name + toFieldPath: spec.initProvider.serviceAccountRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolution + toFieldPath: spec.initProvider.serviceAccountRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountRef.policy.resolve + toFieldPath: spec.initProvider.serviceAccountRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchControllerRef + toFieldPath: spec.initProvider.serviceAccountSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.matchLabels + toFieldPath: spec.initProvider.serviceAccountSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolution + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.serviceAccountSelector.policy.resolve + toFieldPath: spec.initProvider.serviceAccountSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-SsoSettings.yaml b/packages/grafana-namespaced-oss/Composition-SsoSettings.yaml index 6c32672..a957b13 100644 --- a/packages/grafana-namespaced-oss/Composition-SsoSettings.yaml +++ b/packages/grafana-namespaced-oss/Composition-SsoSettings.yaml @@ -10,78 +10,86 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XSsoSettings - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: SsoSettings - name: ssosettings - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.ldapSettings - toFieldPath: spec.forProvider.ldapSettings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.oauth2Settings - toFieldPath: spec.forProvider.oauth2Settings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.providerName - toFieldPath: spec.forProvider.providerName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.samlSettings - toFieldPath: spec.forProvider.samlSettings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.ldapSettings - toFieldPath: spec.initProvider.ldapSettings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.oauth2Settings - toFieldPath: spec.initProvider.oauth2Settings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.providerName - toFieldPath: spec.initProvider.providerName - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.samlSettings - toFieldPath: spec.initProvider.samlSettings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: SsoSettings + name: ssosettings + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.ldapSettings + toFieldPath: spec.forProvider.ldapSettings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.oauth2Settings + toFieldPath: spec.forProvider.oauth2Settings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.providerName + toFieldPath: spec.forProvider.providerName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.samlSettings + toFieldPath: spec.forProvider.samlSettings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.ldapSettings + toFieldPath: spec.initProvider.ldapSettings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.oauth2Settings + toFieldPath: spec.initProvider.oauth2Settings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.providerName + toFieldPath: spec.initProvider.providerName + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.samlSettings + toFieldPath: spec.initProvider.samlSettings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-Team.yaml b/packages/grafana-namespaced-oss/Composition-Team.yaml index 0ac2e04..d7e71ef 100644 --- a/packages/grafana-namespaced-oss/Composition-Team.yaml +++ b/packages/grafana-namespaced-oss/Composition-Team.yaml @@ -10,168 +10,176 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XTeam - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: Team - name: team - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.email - toFieldPath: spec.forProvider.email - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.ignoreExternallySyncedMembers - toFieldPath: spec.forProvider.ignoreExternallySyncedMembers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.memberRefs - toFieldPath: spec.forProvider.memberRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.memberSelector.matchControllerRef - toFieldPath: spec.forProvider.memberSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.memberSelector.matchLabels - toFieldPath: spec.forProvider.memberSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.memberSelector.policy.resolution - toFieldPath: spec.forProvider.memberSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.memberSelector.policy.resolve - toFieldPath: spec.forProvider.memberSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.members - toFieldPath: spec.forProvider.members - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.orgId - toFieldPath: spec.forProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.name - toFieldPath: spec.forProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution - toFieldPath: spec.forProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve - toFieldPath: spec.forProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef - toFieldPath: spec.forProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels - toFieldPath: spec.forProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution - toFieldPath: spec.forProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve - toFieldPath: spec.forProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.preferences - toFieldPath: spec.forProvider.preferences - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.teamSync - toFieldPath: spec.forProvider.teamSync - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.email - toFieldPath: spec.initProvider.email - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.ignoreExternallySyncedMembers - toFieldPath: spec.initProvider.ignoreExternallySyncedMembers - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.memberRefs - toFieldPath: spec.initProvider.memberRefs - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.memberSelector.matchControllerRef - toFieldPath: spec.initProvider.memberSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.memberSelector.matchLabels - toFieldPath: spec.initProvider.memberSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.memberSelector.policy.resolution - toFieldPath: spec.initProvider.memberSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.memberSelector.policy.resolve - toFieldPath: spec.initProvider.memberSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.members - toFieldPath: spec.initProvider.members - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.orgId - toFieldPath: spec.initProvider.orgId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.name - toFieldPath: spec.initProvider.organizationRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution - toFieldPath: spec.initProvider.organizationRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve - toFieldPath: spec.initProvider.organizationRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef - toFieldPath: spec.initProvider.organizationSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels - toFieldPath: spec.initProvider.organizationSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution - toFieldPath: spec.initProvider.organizationSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve - toFieldPath: spec.initProvider.organizationSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.preferences - toFieldPath: spec.initProvider.preferences - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.teamSync - toFieldPath: spec.initProvider.teamSync - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: Team + name: team + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.email + toFieldPath: spec.forProvider.email + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.ignoreExternallySyncedMembers + toFieldPath: spec.forProvider.ignoreExternallySyncedMembers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.memberRefs + toFieldPath: spec.forProvider.memberRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.memberSelector.matchControllerRef + toFieldPath: spec.forProvider.memberSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.memberSelector.matchLabels + toFieldPath: spec.forProvider.memberSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.memberSelector.policy.resolution + toFieldPath: spec.forProvider.memberSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.memberSelector.policy.resolve + toFieldPath: spec.forProvider.memberSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.members + toFieldPath: spec.forProvider.members + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.orgId + toFieldPath: spec.forProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.name + toFieldPath: spec.forProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolution + toFieldPath: spec.forProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationRef.policy.resolve + toFieldPath: spec.forProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchControllerRef + toFieldPath: spec.forProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.matchLabels + toFieldPath: spec.forProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolution + toFieldPath: spec.forProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.organizationSelector.policy.resolve + toFieldPath: spec.forProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.preferences + toFieldPath: spec.forProvider.preferences + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.teamSync + toFieldPath: spec.forProvider.teamSync + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.email + toFieldPath: spec.initProvider.email + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.ignoreExternallySyncedMembers + toFieldPath: spec.initProvider.ignoreExternallySyncedMembers + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.memberRefs + toFieldPath: spec.initProvider.memberRefs + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.memberSelector.matchControllerRef + toFieldPath: spec.initProvider.memberSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.memberSelector.matchLabels + toFieldPath: spec.initProvider.memberSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.memberSelector.policy.resolution + toFieldPath: spec.initProvider.memberSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.memberSelector.policy.resolve + toFieldPath: spec.initProvider.memberSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.members + toFieldPath: spec.initProvider.members + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.orgId + toFieldPath: spec.initProvider.orgId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.name + toFieldPath: spec.initProvider.organizationRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolution + toFieldPath: spec.initProvider.organizationRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationRef.policy.resolve + toFieldPath: spec.initProvider.organizationRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchControllerRef + toFieldPath: spec.initProvider.organizationSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.matchLabels + toFieldPath: spec.initProvider.organizationSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolution + toFieldPath: spec.initProvider.organizationSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.organizationSelector.policy.resolve + toFieldPath: spec.initProvider.organizationSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.preferences + toFieldPath: spec.initProvider.preferences + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.teamSync + toFieldPath: spec.initProvider.teamSync + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-oss/Composition-User.yaml b/packages/grafana-namespaced-oss/Composition-User.yaml index 8645a17..5e99c10 100644 --- a/packages/grafana-namespaced-oss/Composition-User.yaml +++ b/packages/grafana-namespaced-oss/Composition-User.yaml @@ -10,96 +10,104 @@ spec: compositeTypeRef: apiVersion: oss.grafana.crossplane.io.namespaced/v1alpha1 kind: XUser - resources: - - base: - apiVersion: oss.grafana.crossplane.io/v1alpha1 - kind: User - name: user - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.email - toFieldPath: spec.forProvider.email - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.isAdmin - toFieldPath: spec.forProvider.isAdmin - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.login - toFieldPath: spec.forProvider.login - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.key - toFieldPath: spec.forProvider.passwordSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.name - toFieldPath: spec.forProvider.passwordSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.namespace - toFieldPath: spec.forProvider.passwordSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.email - toFieldPath: spec.initProvider.email - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.isAdmin - toFieldPath: spec.initProvider.isAdmin - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.login - toFieldPath: spec.initProvider.login - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.key - toFieldPath: spec.initProvider.passwordSecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.name - toFieldPath: spec.initProvider.passwordSecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.namespace - toFieldPath: spec.initProvider.passwordSecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: oss.grafana.crossplane.io/v1alpha1 + kind: User + name: user + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.email + toFieldPath: spec.forProvider.email + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.isAdmin + toFieldPath: spec.forProvider.isAdmin + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.login + toFieldPath: spec.forProvider.login + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.key + toFieldPath: spec.forProvider.passwordSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.name + toFieldPath: spec.forProvider.passwordSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.passwordSecretRef.namespace + toFieldPath: spec.forProvider.passwordSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.email + toFieldPath: spec.initProvider.email + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.isAdmin + toFieldPath: spec.initProvider.isAdmin + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.login + toFieldPath: spec.initProvider.login + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.key + toFieldPath: spec.initProvider.passwordSecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.name + toFieldPath: spec.initProvider.passwordSecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.passwordSecretRef.namespace + toFieldPath: spec.initProvider.passwordSecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-slo/Composition-SLO.yaml b/packages/grafana-namespaced-slo/Composition-SLO.yaml index a85a073..ca17908 100644 --- a/packages/grafana-namespaced-slo/Composition-SLO.yaml +++ b/packages/grafana-namespaced-slo/Composition-SLO.yaml @@ -10,108 +10,116 @@ spec: compositeTypeRef: apiVersion: slo.grafana.crossplane.io.namespaced/v1alpha1 kind: XSLO - resources: - - base: - apiVersion: slo.grafana.crossplane.io/v1alpha1 - kind: SLO - name: slo - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.alerting - toFieldPath: spec.forProvider.alerting - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.description - toFieldPath: spec.forProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.destinationDatasource - toFieldPath: spec.forProvider.destinationDatasource - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.folderUid - toFieldPath: spec.forProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.label - toFieldPath: spec.forProvider.label - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.objectives - toFieldPath: spec.forProvider.objectives - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.query - toFieldPath: spec.forProvider.query - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.searchExpression - toFieldPath: spec.forProvider.searchExpression - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.alerting - toFieldPath: spec.initProvider.alerting - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.description - toFieldPath: spec.initProvider.description - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.destinationDatasource - toFieldPath: spec.initProvider.destinationDatasource - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.folderUid - toFieldPath: spec.initProvider.folderUid - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.label - toFieldPath: spec.initProvider.label - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.objectives - toFieldPath: spec.initProvider.objectives - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.query - toFieldPath: spec.initProvider.query - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.searchExpression - toFieldPath: spec.initProvider.searchExpression - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: slo.grafana.crossplane.io/v1alpha1 + kind: SLO + name: slo + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.alerting + toFieldPath: spec.forProvider.alerting + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.description + toFieldPath: spec.forProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.destinationDatasource + toFieldPath: spec.forProvider.destinationDatasource + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.folderUid + toFieldPath: spec.forProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.label + toFieldPath: spec.forProvider.label + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.objectives + toFieldPath: spec.forProvider.objectives + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.query + toFieldPath: spec.forProvider.query + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.searchExpression + toFieldPath: spec.forProvider.searchExpression + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.alerting + toFieldPath: spec.initProvider.alerting + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.description + toFieldPath: spec.initProvider.description + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.destinationDatasource + toFieldPath: spec.initProvider.destinationDatasource + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.folderUid + toFieldPath: spec.initProvider.folderUid + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.label + toFieldPath: spec.initProvider.label + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.objectives + toFieldPath: spec.initProvider.objectives + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.query + toFieldPath: spec.initProvider.query + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.searchExpression + toFieldPath: spec.initProvider.searchExpression + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-sm/Composition-Check.yaml b/packages/grafana-namespaced-sm/Composition-Check.yaml index d37ed6e..5283145 100644 --- a/packages/grafana-namespaced-sm/Composition-Check.yaml +++ b/packages/grafana-namespaced-sm/Composition-Check.yaml @@ -10,114 +10,122 @@ spec: compositeTypeRef: apiVersion: sm.grafana.crossplane.io.namespaced/v1alpha1 kind: XCheck - resources: - - base: - apiVersion: sm.grafana.crossplane.io/v1alpha1 - kind: Check - name: check - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.alertSensitivity - toFieldPath: spec.forProvider.alertSensitivity - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.basicMetricsOnly - toFieldPath: spec.forProvider.basicMetricsOnly - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.enabled - toFieldPath: spec.forProvider.enabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.frequency - toFieldPath: spec.forProvider.frequency - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.job - toFieldPath: spec.forProvider.job - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.labels - toFieldPath: spec.forProvider.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.probes - toFieldPath: spec.forProvider.probes - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.settings - toFieldPath: spec.forProvider.settings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.target - toFieldPath: spec.forProvider.target - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.timeout - toFieldPath: spec.forProvider.timeout - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.alertSensitivity - toFieldPath: spec.initProvider.alertSensitivity - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.basicMetricsOnly - toFieldPath: spec.initProvider.basicMetricsOnly - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.enabled - toFieldPath: spec.initProvider.enabled - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.frequency - toFieldPath: spec.initProvider.frequency - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.job - toFieldPath: spec.initProvider.job - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.labels - toFieldPath: spec.initProvider.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.probes - toFieldPath: spec.initProvider.probes - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.settings - toFieldPath: spec.initProvider.settings - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.target - toFieldPath: spec.initProvider.target - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.timeout - toFieldPath: spec.initProvider.timeout - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: sm.grafana.crossplane.io/v1alpha1 + kind: Check + name: check + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.alertSensitivity + toFieldPath: spec.forProvider.alertSensitivity + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.basicMetricsOnly + toFieldPath: spec.forProvider.basicMetricsOnly + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.enabled + toFieldPath: spec.forProvider.enabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.frequency + toFieldPath: spec.forProvider.frequency + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.job + toFieldPath: spec.forProvider.job + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.labels + toFieldPath: spec.forProvider.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.probes + toFieldPath: spec.forProvider.probes + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.settings + toFieldPath: spec.forProvider.settings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.target + toFieldPath: spec.forProvider.target + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.timeout + toFieldPath: spec.forProvider.timeout + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.alertSensitivity + toFieldPath: spec.initProvider.alertSensitivity + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.basicMetricsOnly + toFieldPath: spec.initProvider.basicMetricsOnly + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.enabled + toFieldPath: spec.initProvider.enabled + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.frequency + toFieldPath: spec.initProvider.frequency + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.job + toFieldPath: spec.initProvider.job + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.labels + toFieldPath: spec.initProvider.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.probes + toFieldPath: spec.initProvider.probes + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.settings + toFieldPath: spec.initProvider.settings + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.target + toFieldPath: spec.initProvider.target + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.timeout + toFieldPath: spec.initProvider.timeout + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-sm/Composition-Installation.yaml b/packages/grafana-namespaced-sm/Composition-Installation.yaml index f06434e..4f3b302 100644 --- a/packages/grafana-namespaced-sm/Composition-Installation.yaml +++ b/packages/grafana-namespaced-sm/Composition-Installation.yaml @@ -10,126 +10,134 @@ spec: compositeTypeRef: apiVersion: sm.grafana.crossplane.io.namespaced/v1alpha1 kind: XInstallation - resources: - - base: - apiVersion: sm.grafana.crossplane.io/v1alpha1 - kind: Installation - name: installation - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name - toFieldPath: spec.forProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution - toFieldPath: spec.forProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve - toFieldPath: spec.forProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels - toFieldPath: spec.forProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.metricsPublisherKeySecretRef.key - toFieldPath: spec.forProvider.metricsPublisherKeySecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.metricsPublisherKeySecretRef.name - toFieldPath: spec.forProvider.metricsPublisherKeySecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.metricsPublisherKeySecretRef.namespace - toFieldPath: spec.forProvider.metricsPublisherKeySecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.stackId - toFieldPath: spec.forProvider.stackId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.stackSmApiUrl - toFieldPath: spec.forProvider.stackSmApiUrl - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name - toFieldPath: spec.initProvider.cloudStackRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution - toFieldPath: spec.initProvider.cloudStackRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve - toFieldPath: spec.initProvider.cloudStackRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef - toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels - toFieldPath: spec.initProvider.cloudStackSelector.matchLabels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve - toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.metricsPublisherKeySecretRef.key - toFieldPath: spec.initProvider.metricsPublisherKeySecretRef.key - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.metricsPublisherKeySecretRef.name - toFieldPath: spec.initProvider.metricsPublisherKeySecretRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.metricsPublisherKeySecretRef.namespace - toFieldPath: spec.initProvider.metricsPublisherKeySecretRef.namespace - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.stackId - toFieldPath: spec.initProvider.stackId - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.stackSmApiUrl - toFieldPath: spec.initProvider.stackSmApiUrl - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: sm.grafana.crossplane.io/v1alpha1 + kind: Installation + name: installation + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.name + toFieldPath: spec.forProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolution + toFieldPath: spec.forProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackRef.policy.resolve + toFieldPath: spec.forProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.forProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.matchLabels + toFieldPath: spec.forProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.forProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.metricsPublisherKeySecretRef.key + toFieldPath: spec.forProvider.metricsPublisherKeySecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.metricsPublisherKeySecretRef.name + toFieldPath: spec.forProvider.metricsPublisherKeySecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.metricsPublisherKeySecretRef.namespace + toFieldPath: spec.forProvider.metricsPublisherKeySecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.stackId + toFieldPath: spec.forProvider.stackId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.stackSmApiUrl + toFieldPath: spec.forProvider.stackSmApiUrl + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.name + toFieldPath: spec.initProvider.cloudStackRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolution + toFieldPath: spec.initProvider.cloudStackRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackRef.policy.resolve + toFieldPath: spec.initProvider.cloudStackRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchControllerRef + toFieldPath: spec.initProvider.cloudStackSelector.matchControllerRef + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.matchLabels + toFieldPath: spec.initProvider.cloudStackSelector.matchLabels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolution + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.cloudStackSelector.policy.resolve + toFieldPath: spec.initProvider.cloudStackSelector.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.metricsPublisherKeySecretRef.key + toFieldPath: spec.initProvider.metricsPublisherKeySecretRef.key + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.metricsPublisherKeySecretRef.name + toFieldPath: spec.initProvider.metricsPublisherKeySecretRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.metricsPublisherKeySecretRef.namespace + toFieldPath: spec.initProvider.metricsPublisherKeySecretRef.namespace + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.stackId + toFieldPath: spec.initProvider.stackId + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.stackSmApiUrl + toFieldPath: spec.initProvider.stackSmApiUrl + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file diff --git a/packages/grafana-namespaced-sm/Composition-Probe.yaml b/packages/grafana-namespaced-sm/Composition-Probe.yaml index 95b837b..b931526 100644 --- a/packages/grafana-namespaced-sm/Composition-Probe.yaml +++ b/packages/grafana-namespaced-sm/Composition-Probe.yaml @@ -10,96 +10,104 @@ spec: compositeTypeRef: apiVersion: sm.grafana.crossplane.io.namespaced/v1alpha1 kind: XProbe - resources: - - base: - apiVersion: sm.grafana.crossplane.io/v1alpha1 - kind: Probe - name: probe - patches: - - fromFieldPath: spec.parameters.externalName - toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.deletionPolicy - toFieldPath: spec.deletionPolicy - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.disableScriptedChecks - toFieldPath: spec.forProvider.disableScriptedChecks - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.labels - toFieldPath: spec.forProvider.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.latitude - toFieldPath: spec.forProvider.latitude - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.longitude - toFieldPath: spec.forProvider.longitude - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.name - toFieldPath: spec.forProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.public - toFieldPath: spec.forProvider.public - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.forProvider.region - toFieldPath: spec.forProvider.region - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.disableScriptedChecks - toFieldPath: spec.initProvider.disableScriptedChecks - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.labels - toFieldPath: spec.initProvider.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.latitude - toFieldPath: spec.initProvider.latitude - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.longitude - toFieldPath: spec.initProvider.longitude - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.name - toFieldPath: spec.initProvider.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.public - toFieldPath: spec.initProvider.public - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.initProvider.region - toFieldPath: spec.initProvider.region - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.managementPolicies - toFieldPath: spec.managementPolicies - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.name - toFieldPath: spec.providerConfigRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution - toFieldPath: spec.providerConfigRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve - toFieldPath: spec.providerConfigRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name - toFieldPath: spec.publishConnectionDetailsTo.configRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve - toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations - toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels - toFieldPath: spec.publishConnectionDetailsTo.metadata.labels - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type - toFieldPath: spec.publishConnectionDetailsTo.metadata.type - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name - toFieldPath: spec.publishConnectionDetailsTo.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name - toFieldPath: spec.writeConnectionSecretToRef.name - type: FromCompositeFieldPath - - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace - toFieldPath: spec.writeConnectionSecretToRef.namespace - type: FromCompositeFieldPath \ No newline at end of file + mode: Pipeline + pipeline: + - functionRef: + name: function-patch-and-transform + input: + apiVersion: pt.fn.crossplane.io/v1beta1 + kind: Resources + resources: + - base: + apiVersion: sm.grafana.crossplane.io/v1alpha1 + kind: Probe + name: probe + patches: + - fromFieldPath: spec.parameters.externalName + toFieldPath: "metadata.annotations[\"crossplane.io/external-name\"]" + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.deletionPolicy + toFieldPath: spec.deletionPolicy + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.disableScriptedChecks + toFieldPath: spec.forProvider.disableScriptedChecks + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.labels + toFieldPath: spec.forProvider.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.latitude + toFieldPath: spec.forProvider.latitude + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.longitude + toFieldPath: spec.forProvider.longitude + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.name + toFieldPath: spec.forProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.public + toFieldPath: spec.forProvider.public + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.forProvider.region + toFieldPath: spec.forProvider.region + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.disableScriptedChecks + toFieldPath: spec.initProvider.disableScriptedChecks + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.labels + toFieldPath: spec.initProvider.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.latitude + toFieldPath: spec.initProvider.latitude + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.longitude + toFieldPath: spec.initProvider.longitude + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.name + toFieldPath: spec.initProvider.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.public + toFieldPath: spec.initProvider.public + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.initProvider.region + toFieldPath: spec.initProvider.region + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.managementPolicies + toFieldPath: spec.managementPolicies + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.name + toFieldPath: spec.providerConfigRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolution + toFieldPath: spec.providerConfigRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.providerConfigRef.policy.resolve + toFieldPath: spec.providerConfigRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.name + toFieldPath: spec.publishConnectionDetailsTo.configRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolution + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolution + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.configRef.policy.resolve + toFieldPath: spec.publishConnectionDetailsTo.configRef.policy.resolve + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.annotations + toFieldPath: spec.publishConnectionDetailsTo.metadata.annotations + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.labels + toFieldPath: spec.publishConnectionDetailsTo.metadata.labels + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.metadata.type + toFieldPath: spec.publishConnectionDetailsTo.metadata.type + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.publishConnectionDetailsTo.name + toFieldPath: spec.publishConnectionDetailsTo.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.name + toFieldPath: spec.writeConnectionSecretToRef.name + type: FromCompositeFieldPath + - fromFieldPath: spec.parameters.writeConnectionSecretToRef.namespace + toFieldPath: spec.writeConnectionSecretToRef.namespace + type: FromCompositeFieldPath + step: patch-and-transform \ No newline at end of file