Skip to content

Commit

Permalink
chore(crds): fix backup.deckhouse.io/cluster-config label (#500)
Browse files Browse the repository at this point in the history
Change backup label from backup.deckhouse.io/cluster-config="" to backup.deckhouse.io/cluster-config="true" in virtualmachineclass, clustervirtualimage.
---------
Signed-off-by: Maksim Fedotov <[email protected]>
  • Loading branch information
nevermarine authored Nov 6, 2024
1 parent ce8295c commit 838cb5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/core/v1alpha2/virtual_machine_class.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
// A resource cannot be deleted as long as it is used in one of the VMs.
//
// +kubebuilder:object:root=true
// +kubebuilder:metadata:labels={heritage=deckhouse,module=virtualization,backup.deckhouse.io/cluster-config=}
// +kubebuilder:metadata:labels={heritage=deckhouse,module=virtualization,backup.deckhouse.io/cluster-config=true}
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={virtualization},scope=Cluster,shortName={vmc,vmcs,vmclass,vmclasses},singular=virtualmachineclass
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="VirtualMachineClass phase."
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function generate::crds() {
if ! [[ " ${ALLOWED_RESOURCE_GEN_CRD[*]} " =~ [[:space:]]$(cat "$file" | yq '.spec.names.kind')[[:space:]] ]]; then
continue
fi
cp "$file" "./crds/${file/#"$OUTPUT_BASE/$PREFIX_GROUP"/}"
cp "$file" "./crds/$(echo $file | awk -Fio_ '{print $2}')"
done
}

Expand Down
2 changes: 1 addition & 1 deletion crds/clustervirtualimages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
heritage: deckhouse
module: virtualization
backup.deckhouse.io/cluster-config: ""
backup.deckhouse.io/cluster-config: "true"
spec:
group: virtualization.deckhouse.io
scope: Cluster
Expand Down
2 changes: 1 addition & 1 deletion crds/virtualmachineclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
labels:
backup.deckhouse.io/cluster-config: ""
backup.deckhouse.io/cluster-config: "true"
heritage: deckhouse
module: virtualization
name: virtualmachineclasses.virtualization.deckhouse.io
Expand Down

0 comments on commit 838cb5d

Please sign in to comment.