Skip to content

Commit 1c10a3f

Browse files
vinceprik8s-ci-robot
authored andcommitted
Update generated files, add workaround for controller-tools (#1050)
Signed-off-by: Vince Prignano <[email protected]>
1 parent 9e89546 commit 1c10a3f

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ docs/book/node_modules/
3838
*.tmp
3939

4040
# rbac and manager config for example provider
41-
config/ci/rbac/rbac_role_binding.yaml
42-
config/ci/rbac/rbac_role.yaml
41+
config/ci/rbac/manager_role_binding.yaml
42+
config/ci/rbac/manager_role.yaml
4343
config/ci/manager/manager.yaml
4444

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ deploy: manifests ## Deploy controller in the configured Kubernetes cluster in ~
7272
.PHONY: manifests
7373
manifests: ## Generate manifests e.g. CRD, RBAC etc.
7474
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
75-
cp -f ./config/rbac/rbac*.yaml ./config/ci/rbac/
75+
# TODO(vincepri) Remove this line. This is a workaround until
76+
# https://github.com/kubernetes-sigs/controller-tools/pull/230 is merged.
77+
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go rbac
78+
cp -f ./config/rbac/manager*.yaml ./config/ci/rbac/
7679
cp -f ./config/manager/manager*.yaml ./config/ci/manager/
7780

7881
.PHONY: fmt

config/ci/rbac/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# YAML string, with resources separated by document
55
# markers ("---").
66
resources:
7-
- rbac_role_binding.yaml
8-
- rbac_role.yaml
7+
- manager_role_binding.yaml
8+
- manager_role.yaml

config/crds/cluster_v1alpha1_machinedeployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ spec:
7979
= RollingUpdate.
8080
properties:
8181
maxSurge:
82+
anyOf:
83+
- type: string
84+
- type: integer
8285
description: 'The maximum number of machines that can be scheduled
8386
above the desired number of machines. Value can be an absolute
8487
number (ex: 5) or a percentage of desired machines (ex: 10%).
@@ -91,10 +94,10 @@ spec:
9194
new MachineSet can be scaled up further, ensuring that total
9295
number of machines running at any time during the update is
9396
at most 130% of desired machines.'
94-
oneOf:
97+
maxUnavailable:
98+
anyOf:
9599
- type: string
96100
- type: integer
97-
maxUnavailable:
98101
description: 'The maximum number of machines that can be unavailable
99102
during the update. Value can be an absolute number (ex: 5)
100103
or a percentage of desired machines (ex: 10%). Absolute number
@@ -106,9 +109,6 @@ spec:
106109
down further, followed by scaling up the new MachineSet, ensuring
107110
that the total number of machines available at all times during
108111
the update is at least 70% of desired machines.'
109-
oneOf:
110-
- type: string
111-
- type: integer
112112
type: object
113113
type:
114114
description: Type of deployment. Currently the only supported strategy

config/rbac/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# YAML string, with resources separated by document
55
# markers ("---").
66
resources:
7-
- rbac_role_binding.yaml
8-
- rbac_role.yaml
7+
- manager_role_binding.yaml
8+
- manager_role.yaml
99

File renamed without changes.

pkg/controller/noderef/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ go_test(
4242
"//vendor/k8s.io/api/core/v1:go_default_library",
4343
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
4444
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
45+
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
4546
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
4647
"//vendor/k8s.io/client-go/kubernetes/fake:go_default_library",
4748
"//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library",

0 commit comments

Comments
 (0)