Is this something that Pulumi can internalise? Is ...
# kubernetes
o
Is this something that Pulumi can internalise? Is Pulumi clever enough to determine which k8s APIs to use based on k8s server version?
s
Hm, you can get the stack name programmatically, that might be a start: https://www.pulumi.com/docs/intro/concepts/stack/#getting-the-current-stack-programmatically You then have this operator, so if I understand correctly, you might be able to know the k8s version, and alter your deployments accordingly https://www.pulumi.com/docs/guides/continuous-delivery/pulumi-kubernetes-operator/ I suppose you're going to use a feature-flag-like programming model for all that if'ing between API versions...
o
Thanks for the heads up, I’ll read thorough these.