https://pulumi.com logo
Title
a

adorable-action-51248

03/16/2021, 3:28 PM
Hi ! What is currently the best way to create a
BackendConfig
(
apiVersion: <http://cloud.google.com/v1|cloud.google.com/v1>
, also see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#direct_health ) with pulumi ? would
k8s.yaml.ConfigFile
work ?
l

limited-rainbow-51650

03/22/2021, 7:11 PM
@adorable-action-51248 did you get an answer on this? I need exactly the same. If you found a solution, would you mind sharing? This would save me some cycles. 🙏🏼
a

adorable-action-51248

03/22/2021, 7:13 PM
soo. what i did was pretty ugly…
i created a yaml
with 0 variables. i.e. it didn’t need any processing of variables.
and then loaded that in with ConfigFile and applied it.
i tried preprocess it.
but that wasn’t straight forward.
l

limited-rainbow-51650

03/22/2021, 7:15 PM
You haven’t tested/tried this then? https://www.pulumi.com/blog/introducing-crd2pulumi/
a

adorable-action-51248

03/22/2021, 7:15 PM
so that works
i used it for used for credentials manager crds
but
for backendservice there aren’t any crd yaml files to import
at least i could not find them
l

limited-rainbow-51650

03/22/2021, 7:17 PM
schema you mean?
a

adorable-action-51248

03/22/2021, 7:17 PM
yeah
these are built in gke
and not explicitly exposed
hence i needed to apply a yaml file as is
mmh. now that i am thinking about this…
ConfigFile has transformation hooks to postprocess the yaml
mmh
i used these for other things….
i think that could have worked for the backend yaml file as well potentially.
but haven’t done it yet.
l

limited-rainbow-51650

03/22/2021, 7:23 PM
Thanks for the info. Will have a look at the k8s.yaml.ConfigFile like you did.
👍 1