How to parse a Kubernetes YAML in Go?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • yaml

    A better way to marshal and unmarshal YAML in Golang (by kubernetes-sigs)

    Note that kubernetes types don't have `yaml` tags but `json`, so everything is handled with json first then converted to yaml. It uses this lib https://github.com/kubernetes-sigs/yaml

  • lingon

    Discontinued Lingon is a collection of libraries and tools for building platforms using Go.

    Shameless plug: We had tons of yaml to convert to Go so we built a library for it, here is an example on how to use it with CRDs https://github.com/volvo-cars/lingon/tree/main/docs/kubernetes/crd. If you are in a rush or it's more of a one-off, you can use this webapp to convert it from yaml to Go https://lingonweb.bisconti.cloud There might be a bit of documentation to read and not all CRDs are currently supported, open an issue if that is the case.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • JSON-to-Go

    Translates JSON into a Go type in your browser instantly (original)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts