Skip to content

Commit

Permalink
Fix crd generation script (gardener#8789)
Browse files Browse the repository at this point in the history
  • Loading branch information
shafeeqes authored Nov 10, 2023
1 parent f0def5b commit 5b51330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/generate-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ generate_group () {
# etcd-druid, due to adverse interaction with VPA.
# See https://github.com/gardener/gardener/pull/6850 and https://github.com/gardener/gardener/pull/8560#discussion_r1347470394
# TODO(shreyas-s-rao): Remove this workaround as soon as the scale subresource is supported properly.
etcd_api_types_file="$(dirname "$0")/../vendor/github.com/gardener/etcd-druid/api/v1alpha1/types_etcd.go"
etcd_api_types_file="${package_path%;}/types_etcd.go"
sed -i '/\/\/ +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.labelSelector/d' "$etcd_api_types_file"
$generate
git checkout "$etcd_api_types_file"
Expand Down

0 comments on commit 5b51330

Please sign in to comment.