Skip to content

Commit d0d96a7

Browse files
add move-heirarchy label to LMT (#435)
1 parent 062d08a commit d0d96a7

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

api/v1alpha1/linodemachinetemplate_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type LinodeMachineTemplateResource struct {
3232

3333
// +kubebuilder:object:root=true
3434
// +kubebuilder:resource:path=linodemachinetemplates,scope=Namespaced,categories=cluster-api,shortName=lmt
35+
// +kubebuilder:metadata:labels="clusterctl.cluster.x-k8s.io/move-hierarchy=true"
3536

3637
// LinodeMachineTemplate is the Schema for the linodemachinetemplates API
3738
type LinodeMachineTemplate struct {

api/v1alpha2/linodemachinetemplate_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type LinodeMachineTemplateResource struct {
3333
// +kubebuilder:object:root=true
3434
// +kubebuilder:storageversion
3535
// +kubebuilder:resource:path=linodemachinetemplates,scope=Namespaced,categories=cluster-api,shortName=lmt
36+
// +kubebuilder:metadata:labels="clusterctl.cluster.x-k8s.io/move-hierarchy=true"
3637

3738
// LinodeMachineTemplate is the Schema for the linodemachinetemplates API
3839
type LinodeMachineTemplate struct {

config/crd/bases/infrastructure.cluster.x-k8s.io_linodemachinetemplates.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.14.0
7+
labels:
8+
clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
79
name: linodemachinetemplates.infrastructure.cluster.x-k8s.io
810
spec:
911
group: infrastructure.cluster.x-k8s.io

0 commit comments

Comments
 (0)