Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Changes required to fix validation failures when installing our CRDs …
Browse files Browse the repository at this point in the history
…via clusterctl (#291)

Co-authored-by: Jerry Jackson <jerry@weave.works>
  • Loading branch information
jrryjcksn and weave-e2e-quickstart committed Aug 13, 2020
1 parent 4f52b4a commit 4e38067
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -82,10 +82,10 @@ pkg/apis/wksprovider/controller/manifests/manifests_vfsdata.go: $(MANIFESTS)
go generate ./pkg/apis/wksprovider/controller/manifests

CRDS=$(shell find config/crd -name '*.yaml' -print)
pkg/apis/wksprovider/machine/os/crds_vfsdata.go: $(CRDS)
pkg/apis/wksprovider/machine/crds_vfsdata.go: $(CRDS)
go generate ./pkg/apis/wksprovider/machine/crds

generated: pkg/addons/assets/assets_vfsdata.go pkg/apis/wksprovider/controller/manifests/manifests_vfsdata.go pkg/apis/wksprovider/machine/scripts/scripts_vfsdata.go pkg/apis/wksprovider/machine/os/crds_vfsdata.go
generated: pkg/addons/assets/assets_vfsdata.go pkg/apis/wksprovider/controller/manifests/manifests_vfsdata.go pkg/apis/wksprovider/machine/scripts/scripts_vfsdata.go pkg/apis/wksprovider/machine/crds_vfsdata.go

cmd/wksctl/wksctl: $(DEPS) generated
cmd/wksctl/wksctl: cmd/wksctl/*.go
Expand Down
1 change: 1 addition & 0 deletions config/crd/cluster.x-k8s.io_clusters.yaml
Expand Up @@ -8,6 +8,7 @@ metadata:
creationTimestamp: null
name: clusters.cluster.x-k8s.io
spec:
preserveUnknownFields: false
additionalPrinterColumns:
- JSONPath: .status.phase
description: Cluster status such as Pending/Provisioning/Provisioned/Deleting/Failed
Expand Down
3 changes: 3 additions & 0 deletions config/crd/cluster.x-k8s.io_machinedeployments.yaml
Expand Up @@ -8,6 +8,7 @@ metadata:
creationTimestamp: null
name: machinedeployments.cluster.x-k8s.io
spec:
preserveUnknownFields: false
additionalPrinterColumns:
- JSONPath: .status.phase
description: MachineDeployment status such as ScalingUp/ScalingDown/Running/Failed/Unknown
Expand Down Expand Up @@ -149,6 +150,7 @@ spec:
= RollingUpdate.
properties:
maxSurge:
x-kubernetes-int-or-string: true
anyOf:
- type: integer
- type: string
Expand All @@ -165,6 +167,7 @@ spec:
number of machines running at any time during the update is
at most 130% of desired machines.'
maxUnavailable:
x-kubernetes-int-or-string: true
anyOf:
- type: integer
- type: string
Expand Down
2 changes: 2 additions & 0 deletions config/crd/cluster.x-k8s.io_machinehealthchecks.yaml
Expand Up @@ -8,6 +8,7 @@ metadata:
creationTimestamp: null
name: machinehealthchecks.cluster.x-k8s.io
spec:
preserveUnknownFields: false
additionalPrinterColumns:
- JSONPath: .spec.maxUnhealthy
description: Maximum number of unhealthy machines allowed
Expand Down Expand Up @@ -60,6 +61,7 @@ spec:
minLength: 1
type: string
maxUnhealthy:
x-kubernetes-int-or-string: true
anyOf:
- type: integer
- type: string
Expand Down
1 change: 1 addition & 0 deletions config/crd/cluster.x-k8s.io_machines.yaml
Expand Up @@ -8,6 +8,7 @@ metadata:
creationTimestamp: null
name: machines.cluster.x-k8s.io
spec:
preserveUnknownFields: false
additionalPrinterColumns:
- JSONPath: .spec.providerID
description: Provider ID
Expand Down
1 change: 1 addition & 0 deletions config/crd/cluster.x-k8s.io_machinesets.yaml
Expand Up @@ -8,6 +8,7 @@ metadata:
creationTimestamp: null
name: machinesets.cluster.x-k8s.io
spec:
preserveUnknownFields: false
additionalPrinterColumns:
- JSONPath: .status.replicas
description: Total number of non-terminated machines targeted by this machineset
Expand Down

0 comments on commit 4e38067

Please sign in to comment.