sparse-intern-71089
03/28/2023, 6:26 PMcurved-kitchen-24115
03/28/2023, 6:29 PMcurved-kitchen-24115
03/28/2023, 6:31 PMpulumi.all([clusterCore.kubeconfig]).apply(([config]) => {
// this leaves some trash around; gitignore manages this.
// not clear if this is nasty; but without updating k8sProvider
// to understand local.Command
const filename = `kubeconfig.${hash(stack)}.json`;
writeFileSync(filename, JSON.stringify(config));
[
"<http://alertmanagerconfigs.monitoring.coreos.com|alertmanagerconfigs.monitoring.coreos.com>",
"<http://alertmanagers.monitoring.coreos.com|alertmanagers.monitoring.coreos.com>",
"<http://podmonitors.monitoring.coreos.com|podmonitors.monitoring.coreos.com>",
"<http://probes.monitoring.coreos.com|probes.monitoring.coreos.com>",
"<http://prometheuses.monitoring.coreos.com|prometheuses.monitoring.coreos.com>",
"<http://prometheusrules.monitoring.coreos.com|prometheusrules.monitoring.coreos.com>",
"<http://servicemonitors.monitoring.coreos.com|servicemonitors.monitoring.coreos.com>",
"<http://thanosrulers.monitoring.coreos.com|thanosrulers.monitoring.coreos.com>",
].forEach(
(crd) =>
new local.Command(
`${stack}-cleanupcrd-${hash(crd)}`,
{
delete: `kubectl delete crd ${crd}`,
environment: {
KUBECONFIG: filename,
},
}
)
);
});
clusterCore is an eks.ClusterCore
type from the @pulumi/eks
package.stocky-restaurant-98004
03/28/2023, 6:50 PMcommand.local.Command
can only take an explicit CommandProvider, not a K8s provider.stocky-restaurant-98004
03/28/2023, 6:52 PMstocky-restaurant-98004
03/28/2023, 6:53 PMcurved-kitchen-24115
03/28/2023, 8:02 PMstocky-restaurant-98004
03/29/2023, 4:05 PMcurved-kitchen-24115
04/02/2023, 10:09 PMNo 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