Skip to content

Instantly share code, notes, and snippets.

@kibbles-n-bytes
kibbles-n-bytes / pubsub.go
Last active July 18, 2019 21:49
Pub/Sub subscription GET after PUT not showing updated resource
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os/exec"
"strings"
@kibbles-n-bytes
kibbles-n-bytes / fun_v1alpha1_toy.expected.yaml
Created December 13, 2018 17:59
Toy CRD w/ Description (expected)
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
name: services.fun.k8s.io
spec:
additionalPrinterColumns:
- JSONPath: .status.conditions[?(@.type==\"Ready\")].status
@kibbles-n-bytes
kibbles-n-bytes / fun_v1alpha1_toy.current.yaml
Last active December 13, 2018 17:57
Toy CRD w/ Descriptions (as exists today)
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
name: services.fun.k8s.io
spec:
additionalPrinterColumns:
- JSONPath: .status.conditions[?(@.type==\"Ready\")].status
@kibbles-n-bytes
kibbles-n-bytes / toy_types.go
Last active December 13, 2018 17:55
Toy Go Types w/ Descriptions
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,