Skip to content

Instantly share code, notes, and snippets.

View ncdc's full-sized avatar

Andy Goldstein ncdc

View GitHub Profile
time="2017-10-03T19:51:24Z" level=error msg="Error getting backup" backup=this-doesnt-exist error="storage: service returned error: StatusCode=404, ErrorCode=BlobNotFound, ErrorMessage=The specified blob does not exist.
RequestId:20c1a6b5-001e-0009-2a80-3c4f4f000000
Time:2017-10-03T19:51:24.7488134Z, RequestInitiated=Tue, 03 Oct 2017 19:51:24 GMT, RequestId=20c1a6b5-001e-0009-2a80-3c4f4f000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
github.com/heptio/ark/pkg/cloudprovider/azure.(*objectStorageAdapter).GetObject
/go/src/github.com/heptio/ark/pkg/cloudprovider/azure/object_storage_adapter.go:93
github.com/heptio/ark/pkg/cloudprovider.(*backupService).GetBackup
/go/src/github.com/heptio/ark/pkg/cloudprovider/backup_service.go:171
github.com/heptio/ark/pkg/cloudprovider.(*cachedBackupService).GetBackup
<autogenerated>:18
github.com/heptio/ark/pkg/controller.(*restoreController).fetchBackup
diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go
index 18c6c2b745..3e57720b12 100644
--- a/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go
+++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go
@@ -18,12 +18,12 @@ package customresource
import (
"fmt"
+ "reflect"
@ncdc
ncdc / foo.patch
Created September 27, 2017 21:02
@ helpers.go:41 @ func ParseDockerTimestamp(s string) (time.Time, error) {
// (`foo`), tag references (`foo:bar`), and manifest digest references
// (`foo@sha256:xyz`).
func matchImageTagOrSHA(inspected dockertypes.ImageInspect, image string) bool {
glog.Errorf("ANDY matchImageTagOrSHA, image=%s", image)
// The image string follows the grammar specified here
// https://github.com/docker/distribution/blob/master/reference/reference.go#L4
named, err := dockerref.ParseNormalizedNamed(image)
@ helpers.go:62 @ func matchImageTagOrSHA(inspected dockertypes.ImageInspect, image string) bool {
// An image name (without the tag/digest) can be [hostname '/'] component ['/' component]*
@ncdc
ncdc / foo.diff
Created September 27, 2017 21:02
@ helpers.go:41 @ func ParseDockerTimestamp(s string) (time.Time, error) {
// (`foo`), tag references (`foo:bar`), and manifest digest references
// (`foo@sha256:xyz`).
func matchImageTagOrSHA(inspected dockertypes.ImageInspect, image string) bool {
glog.Errorf("ANDY matchImageTagOrSHA, image=%s", image)
// The image string follows the grammar specified here
// https://github.com/docker/distribution/blob/master/reference/reference.go#L4
named, err := dockerref.ParseNormalizedNamed(image)
@ helpers.go:62 @ func matchImageTagOrSHA(inspected dockertypes.ImageInspect, image string) bool {
// An image name (without the tag/digest) can be [hostname '/'] component ['/' component]*
@ncdc
ncdc / ark-config.yaml
Last active September 7, 2017 20:17
Partial ark-config.yaml for "Ephemeral CI Testing Environments with Heptio Ark — #HeptioProTip"
apiVersion: ark.heptio.com/v1
kind: Config
metadata:
namespace: heptio-ark
name: default
# other fields omitted for brevity
backupStorageProvider:
bucket: <staging cluster bucket>
restoreOnlyMode: true
@ncdc
ncdc / main.go
Created August 11, 2017 14:50
Simple Kubernetes client-go example code
package main
import (
"flag"
"fmt"
"os"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
@ncdc
ncdc / kube-proxy.txt
Last active March 8, 2019 05:40
Example `kube-proxy --help` output showing the default config file and describing all config fields
$ kube-proxy --help
The Kubernetes network proxy runs on each node. This
reflects services as defined in the Kubernetes API on each node and can do simple
TCP,UDP stream forwarding or round robin TCP,UDP forwarding across a set of backends.
Service cluster ips and ports are currently found through Docker-links-compatible
environment variables specifying ports opened by the service proxy. There is an optional
addon that provides cluster DNS for these cluster IPs. The user must create a service
with the apiserver API to configure the proxy.
Usage:
skipping build
using source _output/bin
skipped the build.
Kubelet cgroup driver defaulted to use: systemd
API SERVER insecure port is free, proceeding...
API SERVER secure port is free, proceeding...
Detected host and ready to start services. Doing some housekeeping first...
Using GO_OUT _output/bin
Starting services now!
Starting etcd
@ncdc
ncdc / -
Created June 29, 2017 17:27
ANDY
types.Universe{"k8s.io/apimachinery/pkg/conversion":(*types.Package)(0xc42bc65c00), "net/url":(*types.Package)(0xc42bd05080), "path/filepath":(*types.Package)(0xc42bde8880), "k8s.io/kubernetes/pkg/kubelet/apis":(*types.Package)(0xc42bde8900), "github.com/go-openapi/spec":(*types.Package)(0xc42bd04f80), "github.com/go-openapi/jsonpointer":(*types.Package)(0xc42bd05100), "io":(*types.Package)(0xc42bd05b00), "runtime":(*types.Package)(0xc42bde8580), "strings":(*types.Package)(0xc42bde8980), "k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1":(*types.Package)(0xc42bc65680), "k8s.io/apimachinery/pkg/runtime/schema":(*types.Package)(0xc42bc65a80), "github.com/google/gofuzz":(*types.Package)(0xc42bd05280), "fmt":(*types.Package)(0xc42bde8600), "github.com/go-openapi/jsonreference":(*types.Package)(0xc42bd05000), "":(*types.Package)(0xc42bc65780), "reflect":(*types.Package)(0xc42bc65880), "unsafe":(*types.Package)(0xc42bc65980), "k8s.io/apimachinery/pkg/apis/meta/v1":(*types.Package)(0xc42bd04200), "k8s.io/ku
@ncdc
ncdc / -
Last active June 29, 2017 16:03
$ kube-proxy --help
The Kubernetes network proxy runs on each node. This
reflects services as defined in the Kubernetes API on each node and can do simple
TCP,UDP stream forwarding or round robin TCP,UDP forwarding across a set of backends.
Service cluster ips and ports are currently found through Docker-links-compatible
environment variables specifying ports opened by the service proxy. There is an optional
addon that provides cluster DNS for these cluster IPs. The user must create a service
with the apiserver API to configure the proxy.
Usage: