Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1 backports for noderef #1069

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f52769d
Remove duplicate checks for deletionTimestamp (#987)
vincepri Jun 7, 2019
89c59ff
Rename pkg/controller/controller (#998)
vincepri Jun 10, 2019
f9210ed
Add remote/util.go helpers to work with KubeConfig Secrets (#1004)
vincepri Jun 10, 2019
eb57785
Add remote.ClusterClient to access remote workload clusters (#1006)
vincepri Jun 11, 2019
5e064a5
Add events to MachineSet operations (#1012)
detiber Jun 12, 2019
0ddc8ce
Add patch to events rbac (#1021)
vincepri Jun 13, 2019
47611e2
Update some bazel dependencies (#1019)
detiber Jun 13, 2019
e035176
Update boilerplate check and generated files (#1010)
vincepri Jun 13, 2019
245a447
Add CLUSTER_API_KUBECONFIG_READY_TIMEOUT to clusterctl (#1026)
vincepri Jun 14, 2019
8591410
Add events to MachineDeployment operations (#1014)
detiber Jun 14, 2019
b56388a
Update controller-runtime and controller-tools (#1032)
detiber Jun 18, 2019
3eb8955
Support for wrapped RequeueAfterError/interface (#1020)
akutz Jun 18, 2019
0fe1ecd
Use klog in manager and setup controller-runtime logger (#1022)
vincepri Jun 18, 2019
5e60279
Bazel updates (#1043)
detiber Jun 19, 2019
9f2b502
clean up shell scripts in cluster-api (#1045)
tariq1890 Jun 19, 2019
3b55158
Update k8s/code-generator to latest release-1.13 (#1048)
vincepri Jun 20, 2019
be185f2
downgrade log of util.ExecuteCommand (#975)
jichenjc Jun 20, 2019
17dfd98
Make ClusterNetwork ClusterNetworkingConfig field optional within (#919)
davidewatson Jun 20, 2019
7137b60
NodeRef controller (#1011)
vincepri Jun 20, 2019
fd525a9
Update generated files, add workaround for controller-tools (#1050)
vincepri Jun 20, 2019
7e236c8
Update controller-tools to 0.1.11 (#1053)
vincepri Jun 20, 2019
b270c25
Update dep check (#1056)
vincepri Jun 21, 2019
6dd53a3
Fix register bootstrap options in alpha phases (#1064)
posox Jun 24, 2019
22eb26b
Use remote NodeRef in Machine and MachineSet controllers (#1052)
vincepri Jun 25, 2019
4d5c019
Bazel fixes
ncdc Jun 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ docs/book/node_modules/
*.tmp

# rbac and manager config for example provider
config/ci/rbac/rbac_role_binding.yaml
config/ci/rbac/rbac_role.yaml
config/ci/rbac/manager_role_binding.yaml
config/ci/rbac/manager_role.yaml
config/ci/manager/manager.yaml

90 changes: 61 additions & 29 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ required = [
# STANZAS BELOW ARE GENERATED AND MAY BE WRITTEN - DO NOT MODIFY BELOW THIS LINE.

[[constraint]]
name="sigs.k8s.io/controller-runtime"
version="v0.1.11"
name = "sigs.k8s.io/controller-runtime"
version = "v0.1.12"

[[constraint]]
name="sigs.k8s.io/controller-tools"
version="v0.1.9"
name = "sigs.k8s.io/controller-tools"
version = "v0.1.11"

[[constraint]]
name = "k8s.io/code-generator"
branch = "release-1.13"

# For dependency below: Refer to issue https://github.com/golang/dep/issues/1799
[[override]]
name = "gopkg.in/fsnotify.v1"
source = "https://github.com/fsnotify/fsnotify.git"
version="v1.4.7"
version = "v1.4.7"
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ deploy: manifests ## Deploy controller in the configured Kubernetes cluster in ~
.PHONY: manifests
manifests: ## Generate manifests e.g. CRD, RBAC etc.
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
cp -f ./config/rbac/rbac*.yaml ./config/ci/rbac/
cp -f ./config/rbac/manager*.yaml ./config/ci/rbac/
cp -f ./config/manager/manager*.yaml ./config/ci/manager/

.PHONY: fmt
Expand Down Expand Up @@ -92,15 +92,15 @@ clientset: ## Generate a typed clientset
cd ./vendor/k8s.io/code-generator/cmd && go install ./client-gen ./lister-gen ./informer-gen
$$GOPATH/bin/client-gen --clientset-name clientset --input-base sigs.k8s.io/cluster-api/pkg/apis \
--input cluster/v1alpha1 --output-package sigs.k8s.io/cluster-api/pkg/client/clientset_generated \
--go-header-file=./hack/boilerplate.go.txt
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
$$GOPATH/bin/lister-gen --input-dirs sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1 \
--output-package sigs.k8s.io/cluster-api/pkg/client/listers_generated \
--go-header-file=./hack/boilerplate.go.txt
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
$$GOPATH/bin/informer-gen --input-dirs sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1 \
--versioned-clientset-package sigs.k8s.io/cluster-api/pkg/client/clientset_generated/clientset \
--listers-package sigs.k8s.io/cluster-api/pkg/client/listers_generated \
--output-package sigs.k8s.io/cluster-api/pkg/client/informers_generated \
--go-header-file=./hack/boilerplate.go.txt
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
$(MAKE) gazelle

.PHONY: clean
Expand Down Expand Up @@ -129,6 +129,6 @@ docker-push-ci: docker-build-ci ## Build the docker image for ci

.PHONY: verify
verify:
./hack/verify_boilerplate.py
./hack/verify-boilerplate.sh
./hack/verify_clientset.sh
./hack/verify-bazel.sh
35 changes: 29 additions & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
# Use the git repository for bazel rules until a released version contains https://github.com/bazelbuild/rules_go/pull/2090
# http_archive(
# name = "io_bazel_rules_go",
# urls = [
# "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
# "https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
# ],
# sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d",
# )
git_repository(
name = "io_bazel_rules_go",
sha256 = "3743a20704efc319070957c45e24ae4626a05ba4b1d6a8961e87520296f1b676",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.18.4/rules_go-0.18.4.tar.gz",
remote = "https://github.com/bazelbuild/rules_go.git",
commit = "f2373c9fbd09586d8e591dda3c43d66445b2d7ca",
)

http_archive(
Expand All @@ -13,12 +22,26 @@ http_archive(
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
http_archive(
name = "bazel_skylib",
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
type = "tar.gz",
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz",
)

load("@bazel_skylib//lib:versions.bzl", "versions")

versions.check(
minimum_bazel_version = "0.23.0",
maximum_bazel_version = "1.0.0",
) # fails if not within range

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")

go_rules_dependencies()

go_register_toolchains(
go_version = "1.12.5",
go_version = "1.12.6",
)

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
Expand All @@ -35,5 +58,5 @@ go_repository(
name = "com_github_golangci_golangci-lint",
build_file_generation = "on",
importpath = "github.com/golangci/golangci-lint",
tag = "v1.16.0",
tag = "v1.17.1",
)
9 changes: 3 additions & 6 deletions build/run_in_workspace_with_goroot.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,15 @@ _workspace_binary_script = rule(
attrs = {
"cmd": attr.label(
mandatory = True,
allow_files = True,
single_file = True,
allow_single_file = True,
),
"root_file": attr.label(
mandatory = True,
allow_files = True,
single_file = True,
allow_single_file = True,
),
"go_bin": attr.label(
mandatory = True,
allow_files = True,
single_file = True,
allow_single_file = True,
),
},
executable = True,
Expand Down
Loading