Skip to content

Commit 756e222

Browse files
Merge pull request #117298 from pohly/automated-cherry-pick-of-#117238-origin-release-1.27
Automated cherry pick of #117238: api: encode NamespacedName with lower case in JSON Kubernetes-commit: 36e62541001bc456372f1c52739526d0bfbc8a11
2 parents b1123d2 + cc852ec commit 756e222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/types/namespacedname.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ func (n NamespacedName) String() string {
4141
// MarshalLog emits a struct containing required key/value pair
4242
func (n NamespacedName) MarshalLog() interface{} {
4343
return struct {
44-
Name, Namespace string
44+
Name string `json:"name"`
45+
Namespace string `json:"namespace,omitempty"`
4546
}{
4647
Name: n.Name,
4748
Namespace: n.Namespace,

0 commit comments

Comments
 (0)