magnificent-student-85498
02/11/2021, 4:20 PMkubernetes:core/v1:ConfigMap redis-configuration create replacement [diff: ~metadata]; error: Duplicate resource URN 'urn:pulumi:staging::kubernetes-deployment::kubernetes:core/v1:ConfigMap::redis-configuration'; try giving it a uniqu
e name
Why URN doesn’t have namespace in it? Is it a bug ?gorgeous-egg-16927
02/11/2021, 5:15 PMresourcePrefix
option. https://www.pulumi.com/docs/reference/pkg/kubernetes/yaml/configgroup/#resourceprefix_nodejs
This most often happens if you are deploying the same manifest to multiple clusters in the same stack.magnificent-student-85498
02/11/2021, 5:19 PMredis_config = Path("./redis-config").read_text()
redis_configmap = f"redis-config-{tenant_name}"
ConfigMap(
redis_configmap,
metadata={"name": redis_configmap, "namespace": namespace},
data={"redis-config": redis_config},
)
namespace are different but name is samegorgeous-egg-16927
02/11/2021, 5:38 PMmagnificent-student-85498
02/11/2021, 5:40 PMnamespace: str = f"ns-{tenant_name}"
gorgeous-egg-16927
02/11/2021, 7:44 PMmagnificent-student-85498
02/12/2021, 7:27 AMgorgeous-egg-16927
02/12/2021, 5:27 PMmagnificent-student-85498
02/12/2021, 5:39 PMgorgeous-egg-16927
02/12/2021, 5:46 PMmagnificent-student-85498
02/12/2021, 5:53 PMgorgeous-egg-16927
02/12/2021, 6:01 PMWhere can i get the list of resource who works like configmap ?For k8s, every resource except for
yaml
, helm
, and kustomize
, which are ComponentResource
types.magnificent-student-85498
02/12/2021, 6:14 PM