Skip to content

Commit 6d79463

Browse files
authored
Merge pull request #4893 from camilamacedo86/fix-confitions
🐛 (deploy-image/v1alpha1): drop patchStrategy/protobuf tags from Conditions
2 parents 202a630 + 3b129c2 commit 6d79463

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/book/src/getting-started/testdata/project/api/v1alpha1/memcached_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type MemcachedStatus struct {
5151
// Memcached.status.conditions.Message is a human readable message indicating details about the transition.
5252
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
5353

54-
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
54+
Conditions []metav1.Condition `json:"conditions,omitempty"`
5555
}
5656

5757
// +kubebuilder:object:root=true

hack/docs/internal/getting-started/generate_getting_started.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const newStatusAPI = `// Represents the observations of a Memcached's current st
265265
// Memcached.status.conditions.Message is a human readable message indicating details about the transition.
266266
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
267267
268-
Conditions []metav1.Condition ` + "`json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`"
268+
Conditions []metav1.Condition ` + "`json:\"conditions,omitempty\"`"
269269

270270
const sampleSizeFragment = `# TODO(user): edit the following value to ensure the number
271271
# of Pods/Instances your Operand must have on cluster

pkg/plugins/golang/deploy-image/v1alpha1/scaffolds/internal/templates/api/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ type {{ .Resource.Kind }}Status struct {
101101
// {{ .Resource.Kind }}.status.conditions.Message is a human readable message indicating details about the transition.
102102
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
103103
104-
Conditions []metav1.Condition ` + "`" + `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` + "`" + `
104+
Conditions []metav1.Condition ` + "`" + `json:"conditions,omitempty"` + "`" + `
105105
}
106106
107107
// +kubebuilder:object:root=true

testdata/project-v4-multigroup/api/example.com/v1alpha1/busybox_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type BusyboxStatus struct {
4848
// Busybox.status.conditions.Message is a human readable message indicating details about the transition.
4949
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
5050

51-
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
51+
Conditions []metav1.Condition `json:"conditions,omitempty"`
5252
}
5353

5454
// +kubebuilder:object:root=true

testdata/project-v4-multigroup/api/example.com/v1alpha1/memcached_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type MemcachedStatus struct {
5151
// Memcached.status.conditions.Message is a human readable message indicating details about the transition.
5252
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
5353

54-
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
54+
Conditions []metav1.Condition `json:"conditions,omitempty"`
5555
}
5656

5757
// +kubebuilder:object:root=true

testdata/project-v4-with-plugins/api/v1alpha1/busybox_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type BusyboxStatus struct {
4848
// Busybox.status.conditions.Message is a human readable message indicating details about the transition.
4949
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
5050

51-
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
51+
Conditions []metav1.Condition `json:"conditions,omitempty"`
5252
}
5353

5454
// +kubebuilder:object:root=true

testdata/project-v4-with-plugins/api/v1alpha1/memcached_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type MemcachedStatus struct {
5151
// Memcached.status.conditions.Message is a human readable message indicating details about the transition.
5252
// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
5353

54-
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
54+
Conditions []metav1.Condition `json:"conditions,omitempty"`
5555
}
5656

5757
// +kubebuilder:object:root=true

0 commit comments

Comments
 (0)