sparse-intern-71089
08/13/2021, 12:30 PMmammoth-honey-6147
08/13/2021, 12:31 PMmammoth-honey-6147
08/13/2021, 12:34 PMgreen-motorcycle-58080
08/13/2021, 12:34 PMmammoth-honey-6147
08/13/2021, 12:39 PMgreen-motorcycle-58080
08/13/2021, 12:42 PMgreen-motorcycle-58080
08/13/2021, 12:44 PMif err = monitoring(ctx, k8sProvider); err != nil {
	return err
}mammoth-honey-6147
08/13/2021, 12:53 PMmammoth-honey-6147
08/13/2021, 12:53 PMgreen-motorcycle-58080
08/13/2021, 12:54 PMns := pulumi.String("monitoring")
	_, err := corev1.NewNamespace(ctx, "monitoring", &corev1.NamespaceArgs{
		Metadata: &metav1.ObjectMetaArgs{
			Name: ns,
		},
	}, pulumi.Provider(k8sProvider))
	if err != nil {
		return err
	}
	prom, err := helm.NewChart(ctx, "prometheus", helm.ChartArgs{
		Chart: pulumi.Sprintf("prometheus"),
		FetchArgs: helm.FetchArgs{
			Repo: pulumi.Sprintf("<https://prometheus-community.github.io/helm-charts>"),
		},
		Namespace: ns,
	},
		pulumi.Provider(k8sProvider),
	)
	if err != nil {
		return err
	}green-motorcycle-58080
08/13/2021, 12:56 PMmammoth-honey-6147
08/13/2021, 1:05 PMmammoth-honey-6147
08/13/2021, 1:05 PMgreen-motorcycle-58080
08/13/2021, 1:22 PMgreen-motorcycle-58080
08/13/2021, 1:23 PMmammoth-honey-6147
08/13/2021, 1:29 PM