Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
o
orange-autumn-61493
05/15/2021, 8:11 AM
Is this something that Pulumi can internalise? Is Pulumi clever enough to determine which k8s APIs to use based on k8s server version?
s
straight-cartoon-24485
05/16/2021, 6:46 AM
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
orange-autumn-61493
05/17/2021, 10:08 AM
Thanks for the heads up, I’ll read thorough these.
4 Views
#kubernetes
Join Slack