Skip to content

Instantly share code, notes, and snippets.

View kevincantu's full-sized avatar

Kevin Cantú kevincantu

  • Palo Alto Networks
  • Oakland, California
View GitHub Profile
@kevincantu
kevincantu / deserializing-k8s-objects.go
Last active March 17, 2021 02:03 — forked from nownabe/deployment.yaml
Deserialize Kubernetes objects in Go
package main
import (
"fmt"
"io/ioutil"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"