kpt live apply and yaml/json files which aren't kubernetes kind but are into the kpt package

48 views
Skip to first unread message

christ...@gmail.com

unread,
Jun 23, 2020, 2:36:02 PM6/23/20
to kpt-users
Hi guys,

first: Congratulations for this amazing tool!

Recently I've been working with kpt in order to package a bundle of tools to monitoring Kubernetes: https://github.com/slashdevops/kube-visibility  (the kpt implementation is inside pkg folder)

This is like kube-prometheus but instead of use jsonnnet I used kustomize and since 2 days ago kpt.

I was trying to implement a "bluerprint" as you mention here: https://googlecontainertools.github.io/kpt/guides/producer/blueprint/ with amazing results.

But I notice a problem into my package with "kpt live apply" command,  this is because I used a lot of "json" and "yaml" files in conjunction with kustomize generators (configMaps and secrets)

see:

in the beginning, I started to refactor all the "yaml" files implementing the technique of change the name of files on the fly:

        - name: config
          configMap:
            name: prometheus-adapter-configuration
            items:
            - key: config-yaml.txt
              path: config.yaml    

see: 

But I notice that this is not exactly what I want to do, works but it is not clear at all.

so, Are you thinking about how to manage this problem?

what I mean, how to identify yaml/json files that are some kind of kubernetes element and not kubernetes elements?

Thanks again for this amazing tool!

Christian




Sean Sullivan

unread,
Jun 23, 2020, 2:50:59 PM6/23/20
to christ...@gmail.com, kpt-users
Hi Christian,

Thanks for your enthusiasm about kpt. I'm going to do some research before answering your question. But I wanted to let you know that I've seen it, and I will be responding soon.

Cheers,

Sean Sullivan

--
You received this message because you are subscribed to the Google Groups "kpt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kpt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kpt-users/aaa358ec-c186-484b-9e7b-5b7b4edd0dcco%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages