todays puzzle…. working with kustomize directories...
# kubernetes
p
todays puzzle…. working with kustomize directories like :-
Copy code
# setup EFS CSI driver
    k8s_k_efscsi = k8s.kustomize.Directory(
        "itplat-kust-efs-driver",
        directory="<https://github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/ecr/?ref=release-1.1>",
        resource_prefix="itplat-kust-efs-driver",
        opts=pulumi.ResourceOptions(provider=k8s_use1_provider),
    )
works fine the first time but every subsequent
pulumi up
i get
Copy code
Diagnostics:
  pulumi:pulumi:Stack (aws_eks-itplat-aws-eks):
    error: update failed

  <kubernetes:storage.k8s.io/v1beta1:CSIDriver> (<http://itplat-kust-efs-driver-efs.csi.aws.com|itplat-kust-efs-driver-efs.csi.aws.com>):
    warning: This resource contains Helm hooks that are not currently supported by Pulumi. The resource will be created, but any hooks will not be executed. Hooks support is tracked at <https://github.com/pulumi/pulumi-kubernetes/issues/555>
    warning: <http://storage.k8s.io/v1beta1/CSIDriver|storage.k8s.io/v1beta1/CSIDriver> is deprecated by <http://storage.k8s.io/v1/CSIDriver|storage.k8s.io/v1/CSIDriver>.
    error: resource <http://efs.csi.aws.com|efs.csi.aws.com> was not successfully created by the Kubernetes API server : <http://csidrivers.storage.k8s.io|csidrivers.storage.k8s.io> "<http://efs.csi.aws.com|efs.csi.aws.com>" already exists
i am presuming this is a logical vs physical name thing, but i cant see how to give the k8s.kustomize.Directory an absolute physical name
so it will be recognised as pre-existing