Skip to content

Commit 3c22b43

Browse files
Merge pull request #2326 from Nordix/peppi-lotta/add-deprecation-notice-to-templateReference
⚠️ Deprecate Metal3data templateReference
2 parents 08e5b1e + ed01889 commit 3c22b43

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

api/v1beta1/metal3data_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ type Metal3DataSpec struct {
3535

3636
// TemplateReference refers to the Template the Metal3MachineTemplate refers to.
3737
// It can be matched against the key or it may also point to the name of the template
38-
// Metal3Data refers to
38+
// Metal3Data refers to.
39+
40+
// Deprecated: This field is deprecated and will be removed in a future release.
3941
// +optional
4042
TemplateReference string `json:"templateReference,omitempty"`
4143

api/v1beta1/metal3datatemplate_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ type Metal3DataTemplateSpec struct {
520520

521521
// TemplateReference refers to the Template the Metal3MachineTemplate refers to.
522522
// It can be matched against the key or it may also point to the name of the template
523-
// Metal3Data refers to
523+
// Metal3Data refers to.
524+
525+
// Deprecated: This field is deprecated and will be removed in a future release.
524526
// +optional
525527
TemplateReference string `json:"templateReference,omitempty"`
526528

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,8 @@ spec:
171171
type: object
172172
x-kubernetes-map-type: atomic
173173
templateReference:
174-
description: |-
175-
TemplateReference refers to the Template the Metal3MachineTemplate refers to.
176-
It can be matched against the key or it may also point to the name of the template
177-
Metal3Data refers to
174+
description: 'Deprecated: This field is deprecated and will be removed
175+
in a future release.'
178176
type: string
179177
required:
180178
- claim

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,8 @@ spec:
987987
type: object
988988
type: object
989989
templateReference:
990-
description: |-
991-
TemplateReference refers to the Template the Metal3MachineTemplate refers to.
992-
It can be matched against the key or it may also point to the name of the template
993-
Metal3Data refers to
990+
description: 'Deprecated: This field is deprecated and will be removed
991+
in a future release.'
994992
type: string
995993
required:
996994
- clusterName

0 commit comments

Comments
 (0)