Skip to content

Commit

Permalink
Update our registry to dockerhub and use our latest kind-node (#927)
Browse files Browse the repository at this point in the history
New Dockerhub org for sonobuoy so we will start moving our
image publishing there. As of now we do not have our main images
published there (another PR will do that) but I've manually
built/pushed kind-node:v1.16.0 and so we can use it in our CI.

 - updates makefile to make/build based on the sonobuoy repo
 - updates the default repo to grab the sonobuoy image from
 - updates our test to use the custom kind image
 - updates our makefile to build the custom kind image

Fixes #913

Signed-off-by: John Schnake <[email protected]>
  • Loading branch information
johnSchnake authored Oct 2, 2019
1 parent c799770 commit 15ab7f3
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ script:
- ./scripts/run_integration_tests.sh
- ./travis-ci.sh
before_install:
- curl -L https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64
- curl -L https://github.com/kubernetes-sigs/kind/releases/download/v0.5.1/kind-linux-amd64
--output $HOME/bin/kind && chmod +x $HOME/bin/kind
- kind create cluster --config kind-config.yaml
- export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
Expand Down
25 changes: 24 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BINARY = sonobuoy
TARGET = sonobuoy
GOTARGET = github.com/vmware-tanzu/$(TARGET)
GOPATH = $(shell go env GOPATH)
REGISTRY ?= gcr.io/heptio-images
REGISTRY ?= sonobuoy
IMAGE = $(REGISTRY)/$(TARGET)
DIR := ${CURDIR}
DOCKER ?= docker
Expand Down Expand Up @@ -73,6 +73,10 @@ DOCKER_FLAGS =
DOCKER_BUILD ?= $(DOCKER) run --rm -v $(DIR):$(BUILDMNT) $(DOCKER_FLAGS) -w $(BUILDMNT) $(BUILD_IMAGE) /bin/sh -c
GO_BUILD ?= CGO_ENABLED=0 $(GO_SYSTEM_FLAGS) go build -o $(BINARY) $(VERBOSE_FLAG) -ldflags="-s -w -X $(GOTARGET)/pkg/buildinfo.Version=$(GIT_VERSION) -X $(GOTARGET)/pkg/buildinfo.GitSHA=$(GIT_REF_LONG)" $(GOTARGET)

# Kind images
K8S_PATH ?= $(GOPATH)/src/github.com/kubernetes/kubernetes
KIND_K8S_TAG ?= $(shell cd $(K8S_PATH) && git describe)

.PHONY: all container push clean test local-test local generate plugins int

all: container
Expand Down Expand Up @@ -188,5 +192,24 @@ clean:
deploy_kind: container
kind load docker-image --name $(KIND_CLUSTER) $(REGISTRY)/$(TARGET):$(IMAGE_VERSION) || true

# kind_images will build the kind-node image. Generally building the base image is not necessary
# and we can use the upstream kindest/base image.
kind_images: check-kind-env
kind build node-image --kube-root=$(K8S_PATH) --image $(REGISTRY)/kind-node:$(KIND_K8S_TAG)

# push_kind_images will push the same image kind_images just built our registry.
push_kind_images:
docker push $(REGISTRY)/kind-node:$(KIND_K8S_TAG)

# check-kind-env will show you what will be built/tagged before doing so with kind_images
check-kind-env:
ifndef K8S_PATH
$(error K8S_PATH is undefined)
endif
ifndef KIND_K8S_TAG
$(error KIND_K8S_TAG is undefined)
endif
echo --kube-root=$(K8S_PATH) tagging as --image $(REGISTRY)/kind-node:$(KIND_K8S_TAG)

native:
$(GO_BUILD)
14 changes: 7 additions & 7 deletions cmd/sonobuoy/app/gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestResolveConfig(t *testing.T) {
input: "",
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent", // default
PluginSelections: []plugin.Selection{
{Name: "e2e"},
Expand All @@ -136,7 +136,7 @@ func TestResolveConfig(t *testing.T) {
configFileContents: `{"Server":{"bindaddress":"10.0.0.1"}}`,
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent", // default
PluginSelections: []plugin.Selection{
{Name: "e2e"},
Expand All @@ -158,7 +158,7 @@ func TestResolveConfig(t *testing.T) {
configFileContents: `{"Plugins":[{"name":"systemd-logs"}]}`,
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent", // default
PluginSelections: []plugin.Selection{
{Name: "systemd-logs"},
Expand Down Expand Up @@ -236,7 +236,7 @@ func TestResolveConfig(t *testing.T) {
input: "--plugin e2e",
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent",
PluginSelections: nil,
PluginSearchPath: defaultPluginSearchPath,
Expand All @@ -251,7 +251,7 @@ func TestResolveConfig(t *testing.T) {
input: "--config testdata/emptyQueryAndPlugins.conf",
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent",
PluginSearchPath: defaultPluginSearchPath,
Aggregation: defaultAggr,
Expand All @@ -264,7 +264,7 @@ func TestResolveConfig(t *testing.T) {
input: "--plugin testdata/testPluginDir",
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent",
PluginSelections: nil,
PluginSearchPath: defaultPluginSearchPath,
Expand All @@ -282,7 +282,7 @@ func TestResolveConfig(t *testing.T) {
input: "--plugin e2e --plugin testdata/testPluginDir --plugin testdata/testPluginDir/pluginNotYAML.ext",
expected: &config.Config{
Namespace: "sonobuoy",
WorkerImage: "gcr.io/heptio-images/sonobuoy:" + buildinfo.Version,
WorkerImage: "sonobuoy/sonobuoy:" + buildinfo.Version,
ImagePullPolicy: "IfNotPresent",
PluginSelections: nil,
PluginSearchPath: defaultPluginSearchPath,
Expand Down
4 changes: 2 additions & 2 deletions kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
image: kindest/node:v1.15.0
image: sonobuoy/kind-node:v1.16.0
- role: worker
replicas: 2
image: kindest/node:v1.15.0
image: sonobuoy/kind-node:v1.16.0
4 changes: 2 additions & 2 deletions pkg/client/testdata/default-plugins-via-nil-selection.golden
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
apiVersion: v1
data:
config.json: |
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":null,"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"gcr.io/heptio-images/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":null,"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"sonobuoy/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -101,7 +101,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
image: gcr.io/heptio-images/sonobuoy:static-version-for-testing
image: sonobuoy/sonobuoy:static-version-for-testing
imagePullPolicy: IfNotPresent
name: kube-sonobuoy
volumeMounts:
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/testdata/default.golden
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
apiVersion: v1
data:
config.json: |
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":null,"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"gcr.io/heptio-images/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":null,"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"sonobuoy/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -101,7 +101,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
image: gcr.io/heptio-images/sonobuoy:static-version-for-testing
image: sonobuoy/sonobuoy:static-version-for-testing
imagePullPolicy: IfNotPresent
name: kube-sonobuoy
volumeMounts:
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/testdata/e2e-default.golden
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
apiVersion: v1
data:
config.json: |
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":[{"name":"e2e"}],"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"gcr.io/heptio-images/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":[{"name":"e2e"}],"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"sonobuoy/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -72,7 +72,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
image: gcr.io/heptio-images/sonobuoy:static-version-for-testing
image: sonobuoy/sonobuoy:static-version-for-testing
imagePullPolicy: IfNotPresent
name: kube-sonobuoy
volumeMounts:
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/testdata/no-plugins-via-selection.golden
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
apiVersion: v1
data:
config.json: |
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":[],"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"gcr.io/heptio-images/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
{"Description":"DEFAULT","UUID":"","Version":"static-version-for-testing","ResultsDir":"/tmp/sonobuoy","Resources":["apiservices","certificatesigningrequests","clusterrolebindings","clusterroles","componentstatuses","configmaps","controllerrevisions","cronjobs","customresourcedefinitions","daemonsets","deployments","endpoints","ingresses","jobs","leases","limitranges","mutatingwebhookconfigurations","namespaces","networkpolicies","nodes","persistentvolumeclaims","persistentvolumes","poddisruptionbudgets","pods","podlogs","podsecuritypolicies","podtemplates","priorityclasses","replicasets","replicationcontrollers","resourcequotas","rolebindings","roles","servergroups","serverversion","serviceaccounts","services","statefulsets","storageclasses","validatingwebhookconfigurations","volumeattachments"],"Filters":{"Namespaces":".*","LabelSelector":""},"Limits":{"PodLogs":{"Namespaces":"","SonobuoyNamespace":true,"FieldSelectors":[],"LabelSelector":"","Previous":false,"SinceSeconds":null,"SinceTime":null,"Timestamps":false,"TailLines":null,"LimitBytes":null,"LimitSize":"","LimitTime":""}},"QPS":30,"Burst":50,"Server":{"bindaddress":"0.0.0.0","bindport":8080,"advertiseaddress":"","timeoutseconds":10800},"Plugins":[],"PluginSearchPath":["./plugins.d","/etc/sonobuoy/plugins.d","~/sonobuoy/plugins.d"],"Namespace":"sonobuoy","WorkerImage":"sonobuoy/sonobuoy:static-version-for-testing","ImagePullPolicy":"IfNotPresent","ImagePullSecrets":"","ProgressUpdatesPort":"8099"}
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -52,7 +52,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
image: gcr.io/heptio-images/sonobuoy:static-version-for-testing
image: sonobuoy/sonobuoy:static-version-for-testing
imagePullPolicy: IfNotPresent
name: kube-sonobuoy
volumeMounts:
Expand Down
Loading

1 comment on commit 15ab7f3

@DamianKusz
Copy link

@DamianKusz DamianKusz commented on 15ab7f3 Oct 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I've faced problem connected with this commit. During the docs default steps:

go get -u -v github.com/vmware-tanzu/sonobuoy
sonobuoy run

should download and run sonouboy image from registry - now docker registry sonobuoy/sonobuoy.

But no image exists there :

k describe pod -n sonobuoy 
.
.
.
Events:
  Type     Reason     Age   From                  Message
  ----     ------     ----  ----                  -------
  Normal   Scheduled  11s   default-scheduler     Successfully assigned sonobuoy/sonobuoy to ksb-w2.grey
  Normal   Pulling    10s   kubelet, ksb-w2.grey  Pulling image "sonobuoy/sonobuoy:v0.16.1"
  Warning  Failed     9s    kubelet, ksb-w2.grey  Failed to pull image "sonobuoy/sonobuoy:v0.16.1": rpc error: code = Unknown desc = Error response from daemon: manifest for sonobuoy/sonobuoy:v0.16.1 not found
  Warning  Failed     9s    kubelet, ksb-w2.grey  Error: ErrImagePull
  Normal   BackOff    9s    kubelet, ksb-w2.grey  Back-off pulling image "sonobuoy/sonobuoy:v0.16.1"
  Warning  Failed     9s    kubelet, ksb-w2.grey  Error: ImagePullBackOff

after pointing old registry manually :
sonobuoy run --sonobuoy-image gcr.io/heptio-images/sonobuoy

image has been pulled properly:

Events:
  Type    Reason     Age   From                  Message
  ----    ------     ----  ----                  -------
  Normal  Scheduled  10s   default-scheduler     Successfully assigned sonobuoy/sonobuoy to ksb-w2.grey
  Normal  Pulling    9s    kubelet, ksb-w2.grey  Pulling image "gcr.io/heptio-images/sonobuoy"
  Normal  Pulled     1s    kubelet, ksb-w2.grey  Successfully pulled image "gcr.io/heptio-images/sonobuoy"
  Normal  Created    0s    kubelet, ksb-w2.grey  Created container kube-sonobuoy
  Normal  Started    0s    kubelet, ksb-w2.grey  Started container kube-sonobuoy

Please sign in to comment.