numerous-eye-91601
09/06/2023, 7:50 PMtry giving it a unique name
billowy-army-68599
numerous-eye-91601
09/06/2023, 8:18 PMcluster_name
to inject the specific eks cluster name
eso = Chart(
f"{cluster_name}-eso-chart",
config=ChartOpts(
chart="external-secrets",
version="0.9.2",
namespace="external-secrets",
fetch_opts=FetchOpts(
repo="<https://charts.external-secrets.io>",
),
values={"fullnameOverride": "eso"},
),
opts=pulumi.ResourceOptions(
depends_on=[namespace],
provider=self.cluster_provider,
deleted_with=namespace,
),
)
billowy-army-68599
numerous-eye-91601
09/06/2023, 8:19 PMDiagnostics:
kubernetes:core/v1:ServiceAccount (external-secrets/external-secrets-cert-controller):
error: Duplicate resource URN 'urn:pulumi:tst::aws-eks::kubernetes:<http://helm.sh/v3:Chart$kubernetes:core/v1:ServiceAccount::external-secrets/external-secrets-cert-controller';|helm.sh/v3:Chart$kubernetes:core/v1:ServiceAccount::external-secrets/external-secrets-cert-controller';> try giving it a unique name
billowy-army-68599
helm.Release
instead, which doesn’t suffer from this issuenumerous-eye-91601
09/06/2023, 8:26 PMClusterSecretStore
for ESO but having that renamed to specifically prefix the cluster name messes up a lot of things that use that in the codebasebillowy-army-68599
numerous-eye-91601
09/06/2023, 8:29 PMResourceTransformationResult
only deals with inputs and outputs, not internal attributes. tried to hack around that but no success. thanks anyways though!secretstore = CustomResource(
f"{cluster_name}-doppler-secret-store",
api_version="<http://external-secrets.io/v1beta1|external-secrets.io/v1beta1>",
kind="ClusterSecretStore",
metadata=ObjectMetaArgs(
name="doppler-auth",
namespace="external-secrets",
),
spec={
"provider": {
"doppler": {
"auth": {
"secretRef": {
"dopplerToken": {
"name": "doppler-secret-token",
"key": "dopplerToken",
"namespace": "external-secrets"
}
}
},
"project": doppler_project,
"config": doppler_config
}
}
},
opts=pulumi.ResourceOptions(
depends_on=[eso, doppler_secret_token],
provider=self.cluster_provider,
)
)