Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#kubernetes
Title
b
bumpy-summer-9075
09/22/2021, 3:26 PM
Is there a way to import all resources created by
https://www.pulumi.com/docs/reference/pkg/kubernetes/yaml/configfile/
? I've already applied the yaml file by hand and would now like pulumi to manage it.
b
billowy-army-68599
09/22/2021, 3:33 PM
you would need to iterate though the yaml file and get the resource names, you can't import directly
b
brave-ambulance-98491
09/22/2021, 5:47 PM
You should be able to use
ConfigGroup
with a
transformations
to set the
import
field on each object's options.
❤️ 1
Oof, Slack ate my links! Try:
https://www.pulumi.com/docs/reference/pkg/kubernetes/yaml/configgroup/#yaml-with-transformations
https://www.pulumi.com/docs/intro/concepts/resources/#import
b
bumpy-summer-9075
09/22/2021, 6:40 PM
Alright, thanks 🙂
4 Views
Post