Skip to content

Commit

Permalink
Merge pull request #117298 from pohly/automated-cherry-pick-of-#11723…
Browse files Browse the repository at this point in the history
…8-origin-release-1.27

Automated cherry pick of #117238: api: encode NamespacedName with lower case in JSON

Kubernetes-commit: 36e62541001bc456372f1c52739526d0bfbc8a11
  • Loading branch information
k8s-publishing-bot committed May 4, 2023
2 parents b1123d2 + cc852ec commit 756e222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/types/namespacedname.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func (n NamespacedName) String() string {
// MarshalLog emits a struct containing required key/value pair
func (n NamespacedName) MarshalLog() interface{} {
return struct {
Name, Namespace string
Name string `json:"name"`
Namespace string `json:"namespace,omitempty"`
}{
Name: n.Name,
Namespace: n.Namespace,
Expand Down

0 comments on commit 756e222

Please sign in to comment.