#!/usr/bin/make -f

%:
	dh $@ --builddirectory=_build --buildsystem=golang

execute_after_dh_auto_build:
	# these tests fail because they need to load a big swagger.json file
	# that is found in github.com/kubernetes/kubernetes
	find _build/src/k8s.io/apimachinery/pkg/util/managedfields -name "*_test.go" -delete

override_dh_auto_test:
	# Skip TestIsConnectionReset: it relies on HTTP/2 keepalive ping/timeout
	# timing to surface a "client connection lost" error, which races with
	# the request completing and fails intermittently on busy buildds.
	dh_auto_test -- -skip='TestIsConnectionReset'
