Skip to content

Commit fd525a9

Browse files
vinceprincdc
authored andcommitted
Update generated files, add workaround for controller-tools (kubernetes-sigs#1050)
Signed-off-by: Vince Prignano <[email protected]> (cherry picked from commit 1c10a3f)
1 parent 7137b60 commit fd525a9

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ deploy: manifests ## Deploy controller in the configured Kubernetes cluster in ~
6363
.PHONY: manifests
6464
manifests: ## Generate manifests e.g. CRD, RBAC etc.
6565
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
66-
cp -f ./config/rbac/rbac*.yaml ./config/ci/rbac/
66+
# TODO(vincepri) Remove this line. This is a workaround until
67+
# https://github.com/kubernetes-sigs/controller-tools/pull/230 is merged.
68+
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go rbac
69+
cp -f ./config/rbac/manager*.yaml ./config/ci/rbac/
6770
cp -f ./config/manager/manager*.yaml ./config/ci/manager/
6871

6972
.PHONY: fmt

config/ci/rbac/kustomization.yaml

Lines changed: 2 additions & 2 deletions
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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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)