Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Correct (my own) spelling of integrations #2312

Merged
merged 4 commits into from
Jul 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
version: 2
jobs:
build:
working_directory: ~/flux
working_directory: /home/circleci/go/src/github.com/weaveworks/flux
machine:
image: ubuntu-1604:201903-01
environment:
GO_VERSION: 1.12.5
# We don't need a GOPATH but CircleCI defines it, so we override it
GOPATH: /home/circleci/go
GO111MODULE: 'on'
PATH: /bin:/usr/bin:/usr/local/go/bin:/home/circleci/go/bin
steps:
- checkout
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ install/generated_templates.gogen.go: install/templates/*

check-generated: generate-deploy install/generated_templates.gogen.go
./bin/helm/update_codegen.sh
git diff --exit-code -- integrations/apis intergrations/client install/generated_templates.gogen.go
git diff --exit-code -- integrations/apis integrations/client install/generated_templates.gogen.go

build-docs:
@cd docs && docker build -t flux-docs .
Expand Down
22 changes: 18 additions & 4 deletions bin/helm/update_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,26 @@ set -o errexit
set -o nounset
set -o pipefail

# This corresponds to the tag kubernetes-1.14.4, and to the pinned version in go.mod
CODEGEN_VERSION="code-generator@v0.0.0-20190311093542-50b561225d70"
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../..
CODEGEN_PKG=${CODEGEN_PKG:-$(echo `go env GOPATH`'/pkg/mod/k8s.io/code-generator@v0.0.0-20190511023357-639c964206c2')}

go mod download # make sure the code-generator is downloaded
env GOPATH=`go env GOPATH` bash ${CODEGEN_PKG}/generate-groups.sh all github.com/weaveworks/flux/integrations/client \
# Chosen to line up with the ./build directory used in the Makefile
CODEGEN_ROOT=./build/codegen
# make sure this exists ...
mkdir -p ./build
# ... but not this
rm -rf ${CODEGEN_ROOT}

echo Using codegen in ${CODEGEN_ROOT}

export GO111MODULE=on
# make sure the codegen module has been fetched
go mod download
cp -R $(echo `go env GOPATH`)'/pkg/mod/k8s.io/'${CODEGEN_VERSION} ${CODEGEN_ROOT}
chmod -R u+w ${CODEGEN_ROOT}

bash "${CODEGEN_ROOT}/generate-groups.sh" all github.com/weaveworks/flux/integrations/client \
github.com/weaveworks/flux/integrations/apis \
"flux.weave.works:v1beta1 helm.integrations.flux.weave.works:v1alpha2" \
--go-header-file "${SCRIPT_ROOT}/bin/helm/custom-boilerplate.go.txt"

25 changes: 19 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ require (
github.com/weaveworks/go-checkpoint v0.0.0-20170503165305-ebbb8b0518ab
github.com/weaveworks/promrus v1.2.0 // indirect
github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a // indirect
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 // indirect
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a // indirect
golang.org/x/sys v0.0.0-20190411185658-b44545bcd369
golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
google.golang.org/api v0.3.2 // indirect
google.golang.org/appengine v1.5.0 // indirect
Expand All @@ -76,10 +74,25 @@ require (
k8s.io/apiextensions-apiserver v0.0.0-20190315093550-53c4693659ed
k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
k8s.io/client-go v11.0.0+incompatible
k8s.io/code-generator v0.0.0-20190511023357-639c964206c2
k8s.io/code-generator v0.0.0-00010101000000-000000000000
k8s.io/gengo v0.0.0-20190327210449-e17681d19d3a
k8s.io/helm v2.13.1+incompatible
k8s.io/klog v0.3.0
k8s.io/kube-openapi v0.0.0-20190401085232-94e1e7b7574c // indirect
k8s.io/klog v0.3.1
)

replace github.com/docker/distribution => github.com/2opremio/distribution v0.0.0-20190419185413-6c9727e5e5de

// The following pin these libs to `kubernetes-1.14.4` (by initially
// giving the version as that tag, and letting go mod fill in its idea of
// the version).
// The libs are thereby kept compatible with client-go v11, which is
// itself compatible with Kubernetes 1.14.

replace (
k8s.io/api => k8s.io/api v0.0.0-20190708174958-539a33f6e817
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
k8s.io/apiserver => k8s.io/apiserver v0.0.0-20190708180123-608cd7da68f7
k8s.io/client-go => k8s.io/client-go v11.0.0+incompatible
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20190311093542-50b561225d70
k8s.io/component-base => k8s.io/component-base v0.0.0-20190708175518-244289f83105
)
Loading