From bcc3f730118b578662d09ac3532ece13b1d7059b Mon Sep 17 00:00:00 2001 From: Duologic Date: Tue, 22 Oct 2024 00:20:00 +0200 Subject: [PATCH] fix: set claim-name to match metadata.name --- grafanaplane/main.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grafanaplane/main.libsonnet b/grafanaplane/main.libsonnet index e3db711..d82f6f2 100644 --- a/grafanaplane/main.libsonnet +++ b/grafanaplane/main.libsonnet @@ -99,7 +99,7 @@ local raw = import './raw.libsonnet'; + raw.cloud.v1alpha1.stackServiceAccount.spec.parameters.forProvider.withName('crossplaneManagementKey') + raw.cloud.v1alpha1.stackServiceAccount.spec.parameters.forProvider.withRole('Admin') + raw.cloud.v1alpha1.stackServiceAccount.spec.parameters.forProvider.cloudStackSelector.withMatchLabels({ - 'crossplane.io/claim-name': stackResource.spec.parameters.forProvider.name, + 'crossplane.io/claim-name': stackResource.metadata.name, 'crossplane.io/claim-namespace': namespace, }) + raw.cloud.v1alpha1.stackServiceAccount.spec.parameters.withProviderConfigRef( @@ -113,7 +113,7 @@ local raw = import './raw.libsonnet'; + raw.cloud.v1alpha1.stackServiceAccountToken.spec.parameters.writeConnectionSecretToRef.withName(secretName) + raw.cloud.v1alpha1.stackServiceAccountToken.spec.parameters.writeConnectionSecretToRef.withNamespace(namespace) + raw.cloud.v1alpha1.stackServiceAccountToken.spec.parameters.forProvider.serviceAccountSelector.withMatchLabels({ - 'crossplane.io/claim-name': stackServiceAccountResource.spec.parameters.forProvider.name, + 'crossplane.io/claim-name': stackServiceAccountResource.metadata.name, 'crossplane.io/claim-namespace': namespace, }) + raw.cloud.v1alpha1.stackServiceAccountToken.spec.parameters.forProvider.withCloudStackSelector(