Skip to content

Commit

Permalink
Update generated files, add workaround for controller-tools
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri committed Jun 20, 2019
1 parent f146132 commit edcb829
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ 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/
# TODO(vincepri) Remove this line. This is a workaround until
# https://github.com/kubernetes-sigs/controller-tools/pull/230 is merged.
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go rbac
cp -f ./config/rbac/manager*.yaml ./config/ci/rbac/
cp -f ./config/manager/manager*.yaml ./config/ci/manager/

.PHONY: fmt
Expand Down
4 changes: 2 additions & 2 deletions config/ci/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# YAML string, with resources separated by document
# markers ("---").
resources:
- rbac_role_binding.yaml
- rbac_role.yaml
- manager_role_binding.yaml
- manager_role.yaml
10 changes: 5 additions & 5 deletions config/crds/cluster_v1alpha1_machinedeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ spec:
= RollingUpdate.
properties:
maxSurge:
anyOf:
- type: string
- type: integer
description: 'The maximum number of machines that can be scheduled
above the desired number of machines. Value can be an absolute
number (ex: 5) or a percentage of desired machines (ex: 10%).
Expand All @@ -91,10 +94,10 @@ spec:
new MachineSet can be scaled up further, ensuring that total
number of machines running at any time during the update is
at most 130% of desired machines.'
oneOf:
maxUnavailable:
anyOf:
- type: string
- type: integer
maxUnavailable:
description: 'The maximum number of machines that can be unavailable
during the update. Value can be an absolute number (ex: 5)
or a percentage of desired machines (ex: 10%). Absolute number
Expand All @@ -106,9 +109,6 @@ spec:
down further, followed by scaling up the new MachineSet, ensuring
that the total number of machines available at all times during
the update is at least 70% of desired machines.'
oneOf:
- type: string
- type: integer
type: object
type:
description: Type of deployment. Currently the only supported strategy
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
# YAML string, with resources separated by document
# markers ("---").
resources:
- rbac_role_binding.yaml
- rbac_role.yaml
- manager_role_binding.yaml
- manager_role.yaml

File renamed without changes.
File renamed without changes.

0 comments on commit edcb829

Please sign in to comment.