sparse-intern-71089
06/17/2022, 12:42 PMquiet-wolf-18467
nice-secretary-23177
06/17/2022, 2:00 PMnice-secretary-23177
06/17/2022, 5:53 PMnice-secretary-23177
06/17/2022, 5:54 PMnice-secretary-23177
06/17/2022, 5:55 PMquiet-wolf-18467
nice-secretary-23177
06/17/2022, 5:56 PMnice-secretary-23177
06/17/2022, 5:56 PMnice-secretary-23177
06/17/2022, 5:57 PMquiet-wolf-18467
quiet-wolf-18467
quiet-wolf-18467
quiet-wolf-18467
new k8s.yaml.ConfigFile(
"cert-manager",
{
file: "k8s/cert-manager.yaml",
},
{ provider: this.cluster.provider }
);
quiet-wolf-18467
this.cluster.provider
quiet-wolf-18467
const provider = new k8s.Provider("eks", { kubeconfig: this.cluster.kubeconfig });
quiet-wolf-18467
nice-secretary-23177
06/20/2022, 11:01 AMk8s.Provider
but then I saw cluster.provider
and thought āoh how convenient, Iāll use thatā š¤¦āāļøquiet-wolf-18467
cluster.provider
is the AWS provider used to spin up the cluster šquiet-wolf-18467
nice-secretary-23177
06/20/2022, 11:02 AMnice-secretary-23177
06/20/2022, 11:02 AMnice-secretary-23177
06/20/2022, 11:03 AMnice-secretary-23177
06/20/2022, 11:46 AMeks.Cluster.provider
class led me to attempt to use it. Itās also typed as k8s.Provider
, which is probably why TypeScript didnāt complain
/**
* A Kubernetes resource provider that can be used to deploy into this cluster. For example, the code below will
* create a new Pod in the EKS cluster.
*
* let eks = new Cluster("eks");
* let pod = new kubernetes.core.v1.Pod("pod", { ... }, { provider: eks.provider });
*
*/
nice-secretary-23177
06/20/2022, 12:21 PMk8s.rbac.v1.RoleBinding
that use it in repro repo) worked when using this.cluster.provider
nice-secretary-23177
06/20/2022, 12:26 PMkube2pulumi
doesnāt either; it gave me a hint to use the crd2pulumi
tool instead)nice-secretary-23177
06/20/2022, 12:27 PMnice-secretary-23177
06/20/2022, 12:45 PMnice-secretary-23177
06/20/2022, 12:46 PMnice-secretary-23177
06/21/2022, 9:37 AMnice-secretary-23177
06/21/2022, 9:37 AMnice-secretary-23177
06/21/2022, 9:54 AMSo I made a workaround that usesš I was refactoring/renaming a few things, and there was a typo that slipped through because of anand settinglocal.Command
, but now that stopped working too for some reason. It seems to ignore the environment variable (and it tries to use the default kubeconfig file, but luckily Iāve added some guardrails to avoid disasters in case such a bug pops up).args.environment.KUBECONFIG
any
quiet-wolf-18467
.provider
was supposed to be a Kubernetes providerquiet-wolf-18467
nice-secretary-23177
06/21/2022, 10:07 AMnice-secretary-23177
06/21/2022, 10:08 AMnice-secretary-23177
06/21/2022, 10:09 AMnice-secretary-23177
06/21/2022, 10:10 AMnice-secretary-23177
06/21/2022, 10:10 AM