colossal-rose-51845
10/21/2024, 6:37 PMcleanup-addons:
type: command:local:Command
properties:
interpreter: ["/bin/bash", "-c"]
environment:
KUBECONFIG_DATA: "${cluster.kubeconfigJson}"
AWS_PROFILE: my-profile
update: "true" # Do nothing on updates.
create: |
kubectl --kubeconfig <(echo "$KUBECONFIG_DATA") delete -n kube-system deployments/coredns daemonset/aws-node daemonset/kube-proxy
options:
dependsOn:
- ${cluster}
I would expect the kubectl delete
command to only run one time but it runs on every pulumi up
which fails because the add-ons are gone. I do not want the command to run after that initial step as I redeploy the add-ons by hand.
What am I missing?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by